doc/user: add a hack to get to the git version
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 1 Aug 2018 23:30:57 +0000 (09:30 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 2 Aug 2018 01:22:11 +0000 (11:22 +1000)
commit72cd8c15ecd7bf01070fd2af09ec0c6c84fa779a
tree799a476fd420dd4a5d7a53907841a24a07776788
parent0f55a09ad5af376ae35edf8c9f53b9d7ef3a6b12
doc/user: add a hack to get to the git version

meson doesn't have configuration_data() in vcs_tag so we can only replace one
string. sphinx cannot include things in-line.

Since we want the git version to be replaced in random places, we need to put
it into rst_prolog in conf.py - but that's where we neet to replace other
things too. Work around this by generating a mini python module that returns
the git version, then call that in conf.py.

Side-bonus: we now have access to the full commit and the abbreviated commit.
Not that anything actually uses this...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/user/conf.py.in
doc/user/device-quirks.rst
doc/user/git_version.py.in [new file with mode: 0644]
doc/user/index.rst
doc/user/meson.build