Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extension for variable substitution #49

Open
tbekolay opened this issue Nov 23, 2019 · 0 comments
Open

Add extension for variable substitution #49

tbekolay opened this issue Nov 23, 2019 · 0 comments

Comments

@tbekolay
Copy link
Member

One slightly annoying part of the Nengo Loihi docs is that we have to change several strings in the documentation when the NxSDK version changes. It would be nice if instead that version number could be part of the conf.py file, or some other location, and substituted in so that it's always updated everywhere, and updated easily.

ReST / Sphinx has the ability to replace text (see http://www.sphinx-doc.org/en/2.0/usage/restructuredtext/basics.html#substitutions) but this does not work inside code blocks. Here is a quick Sphinx extension to do it; we should add that extension (with a few minor tweaks) to Nengo Sphinx Theme and use it where appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant