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.

View it on github pages.

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. Start a live-compiled service for your compiled site for local development:

    make livehtml
  5. 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.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

sphinx_lesson-0.8.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_lesson-0.8.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for sphinx_lesson-0.8.1.tar.gz
Algorithm Hash digest
SHA256 81db5e73150ed51580946726b8ffc9c5eadbebed859be3c04df9be72837a7093
MD5 fcfde3d76e44b9d494f7eea8a2e05972
BLAKE2b-256 f2144da5db2b42c9308ad2c895ce921c67263119deda4fea01ed564b1d861d11

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: sphinx_lesson-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for sphinx_lesson-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdf7834057b82dbe6491e08d8af3178b9679d6f4123a5b7fb8a1156637410816
MD5 7c7198e66273b2665c438bed31cb118f
BLAKE2b-256 af1e6e71895447af02a79408123b150165705fd348089235d60ba6bc6947268a

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