A standard Sphinx setup with Markdown to evaluate for Alemira
- Create a GitHub account and log into GitHub in your browser.
- Install Git (use defaults in the installer if in doubt).
- Install the latest Python - in the installer, select "Add Python 3.9 to PATH".
- Install VS Code.
- In VS Code, press F1, type "terminal default", select Terminal: Select Default Profile, and change the default terminal type from PowerShell to Command Prompt (cmd).
- Clone this repository from VS Code: click "Source Control" in the left sidebar, then select to clone repository; optionally configure GitHub integration along the way).
- Open a new terminal in VS Code (Terminal | New Terminal). Make sure you're in the root of the cloned repository (C:\some-path\sphinx-playground).
- In the terminal, run
py -m venv .
- In the terminal, run
Scripts\activate
. - In the terminal, run
pip install -r requirements.txt
. - In the terminal, run
Scripts\deactivate
.
- Open a terminal in VS Code. Make sure you're in the root of the cloned repository (C:\some-path\sphinx-playground).
- In the terminal, run
Scripts\activate
. - In the terminal, run
sphinx-autobuild source build/html
. From now on, when you make changes to documentation and save them, they will be automatically built to HTML. - Open http://127.0.0.1:8000 in the browser: this is where you can see the generated HTML documentation.
- Edit Markdown (.md) files in the
source
directory or its subdirectories. - If necessary, create new Markdown files in the
source
directory or its subdirectories. When you create a new file, add it to the{toctree}
block inbuild/html/index.html
- this will add the file to the table of contents. - When ready, commit and push your changes to Git.
- When you're done working with the documentation:
- Press
Ctrl+C
in the terminal to stop watching your source files for changes. - Run
Scripts\deactivate
in the terminal.
- Boostrap a Sphinx project
- Enable Markdown authoring
- Understand and document how to use Sphinx directives
- Provide required packages as requirements.txt (Ekaterina shouldn't need to run each pip command separately):
pip install sphinx pip install sphinx-rtd-theme pip install myst-parser
- Document how to use this repository.
- Provide syntax samples and links to syntax references and tutorials
- Enable auto-build on changes.