Skip to main content

Sphinx extension for CodeRefinery lessons

Project description

This is a Sphinx extension for software-carpentry style lessons. It is designed as a replacement for the Jekyll-based software templates.

Features

  • Sphinx, including power from all of its extensions.

  • ReST

  • Markdown via the myst_parser parser, so has access to all Sphinx directives natively

  • Jupyter as a source format, including executing the notebook (via myst_nb).

  • Automatically building via Github Actions and automatic deployment to Github Pages. Included workflow file builds all branches, so you can also preview pull requests.

  • Directives for exercises/prereq/etc, works in both ReST and md.

  • The Sphinx part can be separated into a separately installable and versionable Python package, so we don’t need git sub-modules.

  • Execute code cells in markdown (via myst_nb).

  • Consists of sub-extensions for substitutions. Adding sphinx_lesson as an extension will bring in these:

    • sphinx_lesson.directives (the core directives)

    • sphinx_lesson.md_transforms (reprocess some other markdown format into myst_nb format)

    • myst_nb (not developed by us)

Host Site Locally for Development

  1. Create a virtual python environment:

    python -m venv venv
  2. Activate the virtual environment:

    source activate venv/bin/activate
  3. Install python packages:

    pip install -r requirements.txt
  4. Build local files (this can also be used for deployment):

    make html
    # Output in _build/html/
    make clean html             # clean + full rebuild
  5. Or, start a live-compiled service for your compiled site for local development:

    make livehtml

    Then view created site in your browser at http://localhost:8000 (follow the link in your console).

Status

In beta use by CodeRefinery and active development. External users would be fine (but let us know so we know to keep things stable).

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

sphinx_lesson-0.8.7.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

sphinx_lesson-0.8.7-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_lesson-0.8.7.tar.gz.

File metadata

  • Download URL: sphinx_lesson-0.8.7.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for sphinx_lesson-0.8.7.tar.gz
Algorithm Hash digest
SHA256 c0cbb64383dbe4920a5aab89e7973dfdb97dfdb7e402624734c2df25971dd4f0
MD5 130095337f6f2c3d0f8aab46bbc4b0a0
BLAKE2b-256 18e4132ceb52137bd08dbec11a58f7a05110f95221002f3133b4b28b43944785

See more details on using hashes here.

Provenance

File details

Details for the file sphinx_lesson-0.8.7-py3-none-any.whl.

File metadata

  • Download URL: sphinx_lesson-0.8.7-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for sphinx_lesson-0.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 66c9c19a04cfe85b1b9e1219dbae979dc3c0f2a89d55f3053b400b668ed34062
MD5 12cdc358a1cd2ca4f7280490b04fc7a8
BLAKE2b-256 98f068d6701c8b7c5a86c841f4ada997e76e010f7b6567e47fe064650a966895

See more details on using hashes here.

Provenance

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