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

Build fails when using Sphinx tags #76

Open
vancheese opened this issue Nov 25, 2019 · 1 comment
Open

Build fails when using Sphinx tags #76

vancheese opened this issue Nov 25, 2019 · 1 comment

Comments

@vancheese
Copy link

I am using sphinx tags to hide/show contents on different branches.
This works using sphinx-build to build individual branches with all options
However, if I add tag options to the at the start of the build_main argv (e.g., '-t{}'.format(current_name)' ) in build in sphinx.py I get an git.exc.InvalidGitRepositoryError

There is no error with the sphinx build_main input as I can manually build a version of the documentation from ipython with the same command
sphinx-err-0e3hl05f.log

@seiferma
Copy link

seiferma commented May 2, 2020

I am experiencing a similar error. As far as I understand the code, it exports the files into a temporary directory and runs the build there. This process does not seem to copy the .git folder. Therefore, no git repository is available during the build of the branch.

To support extensions that require access to the underlying git repository, the export process would have to be changed from a simple snapshot to a full checkout. I do not know, how much effort this would require nor if I am correct in the first place.

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

No branches or pull requests

2 participants