Open Alessandro-Barbieri opened 3 years ago
Yes, the docs are supposed to be built from full git tree. The docs are built on readthedocs (https://vexcl.readthedocs.io/en/latest/), so may be it is enough to point there?
It should be possible to provide a fallback here: https://github.com/ddemidov/vexcl/blob/master/docs/git_version.py#L37
for example, using environment variables (PV
in ebuild?). A less intrusive (and less Gentoo-specific) option would be to read the version from a file, like it is done here:
https://github.com/ddemidov/amgcl/blob/master/git_version.py#L57
The file could be written by the ebuild script I guess.
This looks good. I've added sphinx.ext.autodoc to docs/conf.py to save you one patch: 626aab93d5931cac2dd8887e625ea1bddf7611d9.
It looks like docs can be built only from git checkout