Skip to main content

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

  1. Clone the repository:

    pip install plct-cli
    

Commands

build

Generate learning content using sphinx-build. You have the option to pass specific options to Sphinx using the -so flag. If no options are passed, they will be deduced or read from the plct_config file.

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

Starts a local server using sphinx-autobuild. The root of this server corresponds to the root of the generated content. This allows you to edit files in the source directory and see the changes reflected in real-time on the server, as it will automatically refresh the content.

plct preview [-so <sphinx-options>]
  • -so, --sphinx-options: Specify additional options for Sphinx-autobuild.

publish

Publish learning content. Provides an easy way to create doc folder that can be used as the root for git hub pages.

plct publish

clean

Clean the generated output directory.

plct clean

get_markdown

Command zips all 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.

License

This CLI app is licensed under the MIT License. Feel free to customize and extend it according to your needs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plct_cli-0.0.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

plct_cli-0.0.4-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file plct_cli-0.0.4.tar.gz.

File metadata

  • Download URL: plct_cli-0.0.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for plct_cli-0.0.4.tar.gz
Algorithm Hash digest
SHA256 111336bc138f79ff3b682945f5c1a4b8d59620fdf7c527c4c65c468ef7a78568
MD5 e99a1afbd9517194eca29300e489432a
BLAKE2b-256 03751254df97e4b990b0efd6e188b3df6079dab1af94d2b52752f74911094191

See more details on using hashes here.

File details

Details for the file plct_cli-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: plct_cli-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for plct_cli-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6ba0cc1d733f932e7a6304eed0f971aaaacc38ca7081699830cf5284c948f49b
MD5 cd51be1410a64d9a977f8d8664c14c5b
BLAKE2b-256 90b5b4761cca6b634dd50f5de776c8d339c57c07d20b311bfd38a7ee4d928353

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page