Replies: 5 comments 5 replies
-
These variables can be included in your regular documentation prose using the substitutions that Sphinx provides Where do you expect to be able to see this version information on a Furo documentation page? It is possible to use an f-string to include it in the |
Beta Was this translation helpful? Give feedback.
-
That git revision hash comes from the Read the Docs theme's tight integration with the things that Read the Docs does: https://github.com/readthedocs/sphinx_rtd_theme/blob/d64dadf1ceec4f9ff6c1ca2d3ea4c3d0fdb0e8d2/sphinx_rtd_theme/footer.html#L33 I'm not sure I want to include that level of integration with RTD. I'll give it some thought about what extent I want to expose stuff that RTD provides to themes. |
Beta Was this translation helpful? Give feedback.
-
I see this was closed yesterday @pradyunsg but I don't see a resolution in the comments. Did you just decide not to fix this? |
Beta Was this translation helpful? Give feedback.
-
Hmm... I'm leaning towards letting end users inject their own chunk of raw Jinja2 template stuff, into the footer. That would enable folks to inject their own Jinja content that is tightly coupled with how RTD does things if that's what they want. Based on some discussions with the RTD folks at PyCon, they seem to want to move in the direction of reducing coupling with the Sphinx build and doing things more on the transport/page-serve time (eg: building out https://github.com/readthedocs/addons, and unblocking more non-Sphinx usage) and want to discourage use of RTD-isms at build time overall, so doing this by default feels a bit out of line with that. |
Beta Was this translation helpful? Give feedback.
-
Interesting! I'll have to investigate, but that does sound like a reasonable way forward. Thanks for reopening this issue. |
Beta Was this translation helpful? Give feedback.
-
Sphinx supports configuration variables
version
andrelease
. I set these in myconf.py
file but they do not appear to be rendered into the page in the furo theme. I tried to grep the theme source but couldn't find this anywhere, whereas I do see wherecopyright
is rendered. I can of course sneak this into mycopyright
but it doesn't look fantastic. I think I could modifypage.html
but that's a lot of work to support a standard Sphinx setting.Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions