Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,33 @@ jobs:

- name: Build
run: cd build; make -j4

# The manual is Sphinx now, and nothing else in this workflow would notice
# if it stopped building. -W turns Sphinx's warnings into errors, so a
# broken cross-reference or a malformed table fails the pull request
# rather than reaching the web site; --keep-going reports all of them
# instead of stopping at the first.
doc:
runs-on: ubuntu-22.04
# Both ends of the Python range, because they do not resolve to the
# same Sphinx and the two do not report the same things. Sphinx 9
# requires Python 3.11, so pip gives 3.9 the newest 7.x instead --
# and 7.x reported 13 duplicate-target warnings that 9.x does not.
# Testing only the newer one meant a clean CI while a contributor on
# an older python saw a wall of warnings.
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.11']
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Build the manual
run: make -C doc html SPHINXEXTRA="-W --keep-going"

- name: Check every internal link and anchor resolves
run: python3 doc/utils/link-check.py doc/html
23 changes: 17 additions & 6 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,20 @@ python Python wrapper on SPARTA as a library
src source files
tools pre- and post-processing tools

Point your browser at any of these files to get started:

doc/Manual.html the SPARTA manual
doc/Section_intro.html hi-level introduction to SPARTA
doc/Section_start.html how to build and use SPARTA
doc/Developer.pdf SPARTA developer guide
The manual is built from reStructuredText sources in doc/src with
Sphinx, which is installed into a virtualenv on the first build, so the
only prerequisite is a python3 with venv. The targets are:

make -C doc html the manual, in doc/html
make -C doc pdf doc/html/Manual.pdf (needs latexmk and pdflatex)
make -C doc fasthtml quick per-page preview, in doc/fasthtml (needs
pandoc); "make -C doc fasthtml/read_surf.html"
rebuilds just that page, for checking an edit
make -C doc check verify every internal link and anchor resolves

"make -C doc" on its own lists these with the rest. Then point your
browser at any of these files to get started:

doc/html/Manual.html the SPARTA manual
doc/html/Section_intro.html hi-level introduction to SPARTA
doc/html/Section_start.html how to build and use SPARTA
14 changes: 7 additions & 7 deletions data/README
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ and are read by the surf_react command.
These are the doc pages for various commands which describe the format
of the corresponding files:

species = doc/species.html
species.vib = doc/species.html
vss/vhs/hs = doc/collide.html
tce = doc/react.html
sdata = doc/read_surf.html
stl = doc/Section_tools.html#stl2surf
surf = doc/surf_react.html
species = doc/html/species.html
species.vib = doc/html/species.html
vss/vhs/hs = doc/html/collide.html
tce = doc/html/react.html
sdata = doc/html/read_surf.html
stl = doc/html/Section_tools.html#stl2surf
surf = doc/html/surf_react.html
9 changes: 9 additions & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/html
/doctrees
/latex
/latexdoctrees
/fasthtml
/docenv
*.pyc
__pycache__
/utils/sphinx-config/_static/mathjax
Binary file removed doc/Eqs/GS_list.png
Binary file not shown.
37 changes: 0 additions & 37 deletions doc/Eqs/GS_list.tex

This file was deleted.

Binary file removed doc/Eqs/PS_list.png
Binary file not shown.
29 changes: 0 additions & 29 deletions doc/Eqs/PS_list.tex

This file was deleted.

Binary file removed doc/Eqs/arrhenius.jpg
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/arrhenius.tex

This file was deleted.

Binary file removed doc/Eqs/arrhenius_2.png
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/arrhenius_2.tex

This file was deleted.

Binary file removed doc/Eqs/cell_timestep.jpg
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/cell_timestep.tex

This file was deleted.

Binary file removed doc/Eqs/diffuse_normal.jpg
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/diffuse_normal.tex

This file was deleted.

Binary file removed doc/Eqs/impulsive_phi.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/impulsive_phi.tex

This file was deleted.

Binary file removed doc/Eqs/impulsive_softsphere.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/impulsive_softsphere.tex

This file was deleted.

Binary file removed doc/Eqs/impulsive_step.JPG
Binary file not shown.
15 changes: 0 additions & 15 deletions doc/Eqs/impulsive_step.tex

This file was deleted.

Binary file removed doc/Eqs/impulsive_tempvar.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/impulsive_tempvar.tex

This file was deleted.

Binary file removed doc/Eqs/impulsive_theta.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/impulsive_theta.tex

This file was deleted.

Binary file removed doc/Eqs/impulsive_u0.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/impulsive_u0.tex

This file was deleted.

Binary file removed doc/Eqs/k_energy.png
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/k_energy.tex

This file was deleted.

Binary file removed doc/Eqs/k_kisliuk.png
Binary file not shown.
10 changes: 0 additions & 10 deletions doc/Eqs/k_kisliuk.tex

This file was deleted.

Binary file removed doc/Eqs/lambda.png
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/lambda.tex

This file was deleted.

Binary file removed doc/Eqs/lambda_old.jpg
Binary file not shown.
Binary file removed doc/Eqs/qk_dissociation.jpg
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/qk_dissociation.tex

This file was deleted.

Binary file removed doc/Eqs/qk_exchange.jpg
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/qk_exchange.tex

This file was deleted.

Binary file removed doc/Eqs/tau.jpg
Binary file not shown.
Binary file removed doc/Eqs/tau.png
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/tau.tex

This file was deleted.

Binary file removed doc/Eqs/td_barrier_Tnorm.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/td_barrier_Tnorm.tex

This file was deleted.

Binary file removed doc/Eqs/td_barrier_dist.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/td_barrier_dist.tex

This file was deleted.

Binary file removed doc/Eqs/td_bond.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/td_bond.tex

This file was deleted.

Binary file removed doc/Eqs/td_initenergy.JPG
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/td_initenergy.tex

This file was deleted.

Binary file removed doc/Eqs/time_counter.png
Binary file not shown.
9 changes: 0 additions & 9 deletions doc/Eqs/time_counter.tex

This file was deleted.

Loading
Loading