Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Extensions for building lecture handouts & slides with Sphinx.

Notifications You must be signed in to change notification settings

hackbrightacademy/sphinx-lectern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

𓂉 sphinx-lectern

Extensions for building lecture handouts & slides with Sphinx.

Start with one document ➡️ instantly generate lecture handouts and slides

😎 Features

  • Reveal.js!
  • Automatic syntax highlighting with Pygments
  • Show examples of console/terminal output
  • Include code from external files
  • Hint boxes!
  • Render diagrams, graphs, math equations
  • ...and more!

⚡️ Install

# With pipenv
pipenv install -e git+https://github.com/hackbrightacademy/sphinx-lectern.git#egg=sphinx-lectern

# With pip
pip install git+https://github.com/hackbrightacademy/sphinx-lectern.git#egg=sphinx-lectern

📚 Docs

Wanna learn more? Check out our docs here.

Just... uh... don't be too disappointed that there's not much there 😬

lectern_substitutions = {
    # Python executable & version
    "pyname": "Python 3",
    "py": "python3",
    "pyi": "`python3`",
    "pycmd": "`python3`:cmd:",
    # iPython
    "ipyname": "IPython",
    "ipy": "ipython3",
    "ipyi": "`ipython3`",
    "ipycmd": "`ipython3`:cmd:",
    # PIP
    "pipname": "Pip 3",
    "pip": "pip3",
    "pipi": "`pip3`",
    "pipcmd": "`pip3`:cmd:",
    # Virtualenv manager
    "venvname": "Virtualenv",
    "venv": "virtualenv",
    "venvi": "`virtualenv`",
    "venvcmd": "`virtualenv`:cmd:",
    # Text editor
    "editorname": "VS Code",
    "editor": "code",
    "editori": "`code`",
    "editcmd": "`code`:cmd:",
}