Skip to content

van-richard/CodingNotes

Repository files navigation

CodingNotes

CodingNotes is a Sphinx and Jupyter Book documentation site containing practical notes on command-line tools, HPC, Python, molecular simulation, and scientific software.

Published site: https://van-richard.github.io/CodingNotes/

Local Setup

Clone the repository:

git clone https://github.com/van-richard/CodingNotes.git
cd CodingNotes

Conda

conda create --name codingnotes python pip
conda activate codingnotes
python -m pip install --upgrade pip

venv

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip

Install Requirements

python -m pip install -r requirements.txt

To deploy with build.sh, also install ghp-import:

python -m pip install ghp-import

Build

Build the HTML documentation locally:

sphinx-build . _build/html

Open _build/html/index.html in a browser to inspect the result.

Deploy

GitHub Actions builds the documentation for pull requests and automatically deploys _build/html to GitHub Pages after changes are pushed to main. The workflow is defined in .github/workflows/pages.yml.

In the repository settings, configure GitHub Pages to use GitHub Actions as its source.

For a manual deployment, build.sh remains available. It builds the site and publishes _build/html with ghp-import:

./build.sh

Before running it, activate the project environment, install ghp-import, and ensure the working tree is ready to publish. The script also updates _external/amberassist when that optional repository is available and pushes the generated site, so it should be treated as a deployment command rather than a local build command.

Repository Layout

  • index.md: site landing page
  • notebooks/: authored Markdown pages and Jupyter notebooks
  • static/ and _static/: images, videos, scripts, styles, and other static resources
  • assets/: custom CSS, JavaScript, and HTML theme templates
  • _toc.yml: external table-of-contents configuration
  • conf.py: Sphinx configuration
  • requirements.txt: Python documentation dependencies
  • build.sh: build and GitHub Pages deployment script
  • .github/workflows/pages.yml: automated documentation build and Pages deployment
  • _build/: generated documentation output
  • jupyter_execute/: generated notebook execution artifacts

Maintenance Notes

  • Keep authored content and source assets tracked in Git.
  • Do not commit _build/, jupyter_execute/, doctrees, notebook checkpoints, or local virtual environments.
  • Update _toc.yml when adding, moving, or removing documentation pages.
  • Run a clean local build before deployment and review all Sphinx warnings.
  • Verify external files referenced from _external/amberassist are available before building pages that use literalinclude.

About

Things I've learning in Computational Chemistry

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors