Command line interface for working with Sphinx projects.
Project description
PLCT CLI App
This Command-Line Interface (CLI) app, named PLCT (Petlja Learning Content Tools), provides a set of commands to streamline the management and generation of learning content using Sphinx.
Installation
-
Clone the repository:
pip install plct-cli
Commands
build
Generate learning content using Sphinx-build.
plct build [-so <sphinx-options>] [-sf <sphinx-files>]
-so
,--sphinx-options
: Specify additional options for Sphinx-build.-sf
,--sphinx-files
: Specify filenames for Sphinx-build.
preview
Preview learning content using Sphinx-autobuild.
plct preview [-so <sphinx-options>]
-so
,--sphinx-options
: Specify additional options for Sphinx-autobuild.
publish
Publish learning content.
plct publish
clean
Clean the generated output directory.
plct clean
get_markdown
Generate markdown files from the source directory.
plct get_markdown
Configuration
The app tries to determine the command arguments (source and output directories) of the sphinx command based on the project file structure. You can also specify these configurations plct config.yaml
.
Usage
For detailed information about each command, use the --help
option:
plct [COMMAND] --help
Examples
Build Command
plct build
This command generates learning content using Sphinx with additional options and specific filenames.
Preview Command
plct preview
This command previews learning content with additional Sphinx-autobuild options.
Publish Command
plct publish
This command publishes learning content, copying it to the "docs" directory.
Clean Command
plct clean
This command cleans the generated output directory.
Get Markdown Command
plct get_markdown
This command zips all markdown files from the source directory.
License
This CLI app is licensed under the MIT License. Feel free to customize and extend it according to your needs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plct_cli-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50aa47ddf9f43db906209521c2cfdceed4b08120b89b2de5588dc29379d9ffa3 |
|
MD5 | bdf17743e2744ee851bab05ea6e2973c |
|
BLAKE2b-256 | 09f63237cec620567fc10f9b5de9d2168c6b089227c8769239d777a5249b916e |