Open phockett opened 2 years ago
Global substitutions? jupyterbook.org/content/content-blocks.html#define-substitutions-for-your-whole-book
In testing Nov. 2022 this is working nicely, EXCEPT NEED TO USE "string" for subs in _config.yml
in general, otherwise sometimes get syntax issues.
Added general notebook setup script, 6bc38bb715feab2d93bfe6b246b607d2ad8b0bec
For more on build chain methods and customisations (currently can't pass env vars directly):
Currently just thinking about a method to pass ENV vars through build chain for HTML vs. PDF figure config (https://github.com/phockett/Quantum-Metrology-with-Photoelectrons-Vol3/issues/2), but other issues might crop up later. Have done this type of thing in the past for ePSdata work with nbconvert & Sphinx native build chain.
TODO: test some methods, check ePSdata methods.
UPDATE: actually passing env vars to build chain is OK,
e.g.
export BUILDENV=pdf
jupyter-book build --builder pdflatex
unset BUILDENV
Works as expected, and buildEnv = os.getenv('BUILDENV')
works in notebook or scripts. Now using this to fix Plotly figure glue() issues, see https://github.com/phockett/Quantum-Metrology-with-Photoelectrons-Vol3/issues/2.
To do, probably first.
General setup & config notes: https://github.com/phockett/Quantum-Metrology-with-Photoelectrons-Vol3/tree/main/notes/jupyter_book