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.19.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

sphinx_lesson-0.8.19-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_lesson-0.8.19.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sphinx_lesson-0.8.19.tar.gz
Algorithm Hash digest
SHA256 acf1a75fa38c21cd6e479465e17766f64beb482e4c3874fe8415c44e36261029
MD5 23b7eb07076213bcc84c8986d3d64c42
BLAKE2b-256 69074a4c66a0f1ec2eb285ed0557d8a7a20c79cc70f88468781fcbd52a65fae4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sphinx_lesson-0.8.19-py3-none-any.whl
Algorithm Hash digest
SHA256 9f8fe51a61cbcfc3a9b57916abe15dbd4654cb5f0d9d1e7492a37fec27fe95ff
MD5 3f3cd12e29f2aa08678cb30aa23199a4
BLAKE2b-256 64b93722452e063feb0c3be53d7465a3d1779da8ae34656c9a131b3346018c4a

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