1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
Description: Do not download from github
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2020-05-16
Index: lammps-4Feb2025/doc/Makefile
===================================================================
--- lammps-4Feb2025.orig/doc/Makefile
+++ lammps-4Feb2025/doc/Makefile
@@ -69,7 +69,7 @@ help:
# ------------------------------------------
clean-all: clean
- rm -rf $(BUILDDIR)/docenv $(MATHJAX) $(BUILDDIR)/LAMMPS.mobi $(BUILDDIR)/LAMMPS.epub $(BUILDDIR)/Manual.pdf
+ rm -rf $(BUILDDIR)/docenv $(BUILDDIR)/LAMMPS.mobi $(BUILDDIR)/LAMMPS.epub $(BUILDDIR)/Manual.pdf
clean: clean-spelling
rm -rf $(BUILDDIR)/html $(BUILDDIR)/epub $(BUILDDIR)/latex $(BUILDDIR)/doctrees $(BUILDDIR)/doxygen/xml $(BUILDDIR)/doxygen-warn.log $(BUILDDIR)/doxygen/Doxyfile $(SPHINXCONFIG)/conf.py $(BUILDDIR)/fasthtml
@@ -86,7 +86,7 @@ $(SPHINXCONFIG)/conf.py: $(SPHINXCONFIG)
globbed-tocs:
$(PYTHON) $(BUILDDIR)/utils/make-globbed-tocs.py -d $(RSTDIR)
-html: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
+html: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py
@if [ "$(HAS_BASH)" == "NO" ] ; then echo "bash was not found at $(OSHELL)! Please use: $(MAKE) SHELL=/path/to/bash" 1>&2; exit 1; fi
@$(MAKE) $(MFLAGS) -C graphviz all
@(\
@@ -116,7 +116,7 @@ html: xmlgen globbed-tocs $(VENV) $(SPHI
@rm -rf html/PDF/.[sg]*
@echo "Build finished. The HTML pages are in doc/html."
-fasthtml: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
+fasthtml: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK)
@if [ "$(HAS_BASH)" == "NO" ] ; then echo "bash was not found at $(OSHELL)! Please use: $(MAKE) SHELL=/path/to/bash" 1>&2; exit 1; fi
@$(MAKE) $(MFLAGS) -C graphviz all
@mkdir -p fasthtml
Index: lammps-4Feb2025/doc/utils/sphinx-config/conf.py.in
===================================================================
--- lammps-4Feb2025.orig/doc/utils/sphinx-config/conf.py.in
+++ lammps-4Feb2025/doc/utils/sphinx-config/conf.py.in
@@ -52,7 +52,6 @@ extensions = [
'sphinx.ext.autodoc',
'lammps_theme',
'sphinxcontrib.jquery',
- 'sphinxfortran.fortran_domain',
'sphinx_tabs.tabs',
'table_from_list',
'tab_or_note',
@@ -280,9 +279,9 @@ if 'epub' in sys.argv:
else:
html_math_renderer = 'mathjax'
-# use relative path for mathjax, so it is looked for in the
-# html tree and the manual becomes readable when offline
-mathjax_path = 'mathjax/es5/tex-mml-chtml.js'
+# use absolute local path for mathjax, so the manual becomes readable when offline
+# note config=MML_CHTML (per original upstream) does not render correctly in firefox
+mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
# hack to enable use of \AA in :math:
# add :lammps: role for inline LAMMPS code highlight
|