5

I am using sphinx and I would like to show the version of my project from conf.py on my main page for documentation.

mzjn
  • 45,711
  • 11
  • 120
  • 232
kaosar
  • 141
  • 11

2 Answers2

5

You can use :Version: |version| in your rst

kaosar
  • 141
  • 11
0

I actually never use Python Sphinx, but I remember seeing a similar question on SO. After searching through, I found the Q+A here

So you could output the config value directly into your index.rst master doc.

user1252280
  • 373
  • 1
  • 7
  • 22
  • I tried that but it didnt seem to show on generated HTML page. I am using forked version of read the docs theme. I instead found a different method and much more simpler. I just use `:Version: |version|` in my rst. – kaosar Jun 13 '16 at 22:48