Skip to content

Sphinx walk through for a repository. Holds some python utilities, notebook utilities and markdown utilities

License

Notifications You must be signed in to change notification settings

franklinselva/sphinx-walkthrough

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPHINX Walkthrough

This is a walkthrough of the SPHINX workflow. It is intended to be a quick reference guide. The python work used in this repository is based on a different repository and the credits for the code go to the original authors. The original repository can be found here

Setup

The workflow is divided into 3 steps:

  1. Generate Markdowns for the python directory
# Preprocessing: Generate markdown files from the original scripts
# In root directory,
bash scripts/generate_markdown.sh doc/pages
  1. To embed the code into markdown files, run the following command:
npm i -g markdown-autodocs
markdown-autodocs -c code-block -o doc/pages/*

The package is also available as github action. The action can be found here.

  1. To setup sphinx, run the following commands:
# In Ubuntu 20.04
sudo apt-get install texlive texlive-latex-extra pandoc
python3 -m pip install -r requirements.txt
cd doc
make html

About

Sphinx walk through for a repository. Holds some python utilities, notebook utilities and markdown utilities

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 97.6%
  • Shell 1.2%
  • Other 1.2%