Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

technical note

How I built this site

Installing Jupyter Book

I used the Jupyter Book - Getting Started docs as a reference.

cd ~/Desktop
uv init jb
cd jb
uv venv
source .venv/bin/activate
uv add jupyter-book
jupyter-book init

Now, open the ~/Desktop/jb folder with the VS Code test editor.

code .

Edit myst.yml as needed and autogenerate a table of contents using:

jupyter-book init --write-toc

Initialize Local Git

git add .
git commit -m 'intitial commit'

Create GitHub Repository

Create a new GitHub repo called jb and enable GitHub pages.
The ‘Build and Deployment’ source should be GitHub Actions and the git branch should be main.

Then push the local repo using the commands suggested by GH:

git remote add origin https://github.com/aubreymoore/jb.git
git branch -M main
git push -u origin main

Create a GitHub action in the local repo and push it to GH:

jupyter-book init --gh-pages
git add .
git commit -m 'added deploy.yml'
git push

Adding Sphinx documentation

use uv to enable automatic python code documentation using sphinx

Find me an example of a github repository template which contains a simple python package with tests and automated documentation provided by Sphinx.

example-sphinx-basic

palmoreck/example-python-package-and-sphinx-doc

docathon/sphinx-template

AlexIoannides/py-package-template