Code Monkey home page Code Monkey logo

sphinx-lesson's Introduction

Sphinx test lesson

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).

sphinx-lesson's People

Contributors

bast avatar mehimself avatar naoe-tatara avatar rkdarst avatar robertodr avatar wikfeldt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.