-
Notifications
You must be signed in to change notification settings - Fork 41
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
Sphinx: Unable to disable making man pages #2155
Comments
Of course, |
Is part of our requirements file - https://github.com/longturn/freeciv21/blob/master/docs/requirements.txt |
This commit fixes the handling of the `FREECIV_ENABLE_MANPAGES` option, leveraging the fact, that an `option` call is a no-op if the value is already set. While here, allow users on non-Unix systems to build manpages. Closes longturn#2155
It is for the readthedocs website (https://longturn.readthedocs.io/en/latest/index.html). The end user mostly doesnt need that build unless for some reason they want to have a local copy of that website. They'll get all the information from text files without the manpage compile.. |
It was noted in longturn#2155 that when packaging Freeciv21, sphinx_rtd_theme and sphinx_last_updated_by_git were needed at build time to create the man pages. The rtd theme is obviously only needed for HTML output and last_updated_by_git doesn't seem to be used with the man pages. Make them both optional by checking if they can be imported when evaluating the config. This will allow package maintainers to ship man pages even when if of the two packages are missing from their distribution.
It was noted in longturn#2155 that when packaging Freeciv21, sphinx_rtd_theme and sphinx_last_updated_by_git were needed at build time to create the man pages. The rtd theme is obviously only needed for HTML output and last_updated_by_git doesn't seem to be used with the man pages. Make them both optional by checking if they can be imported when evaluating the config. This will allow package maintainers to ship man pages even when one of the two packages are missing from their distribution.
It was noted in #2155 that when packaging Freeciv21, sphinx_rtd_theme and sphinx_last_updated_by_git were needed at build time to create the man pages. The rtd theme is obviously only needed for HTML output and last_updated_by_git doesn't seem to be used with the man pages. Make them both optional by checking if they can be imported when evaluating the config. This will allow package maintainers to ship man pages even when one of the two packages are missing from their distribution.
This commit fixes the handling of the `FREECIV_ENABLE_MANPAGES` option, leveraging the fact, that an `option` call is a no-op if the value is already set. While here, allow users on non-Unix systems to build manpages. Closes #2155
It was noted in longturn#2155 that when packaging Freeciv21, sphinx_rtd_theme and sphinx_last_updated_by_git were needed at build time to create the man pages. The rtd theme is obviously only needed for HTML output and last_updated_by_git doesn't seem to be used with the man pages. Make them both optional by checking if they can be imported when evaluating the config. This will allow package maintainers to ship man pages even when one of the two packages are missing from their distribution.
This commit fixes the handling of the `FREECIV_ENABLE_MANPAGES` option, leveraging the fact, that an `option` call is a no-op if the value is already set. While here, allow users on non-Unix systems to build manpages. Closes longturn#2155
Describe the bug
When people compile the code for themselves in master, they should be able to disable making the RTD man pages, or ignore it when there is a error.
To Reproduce
Steps to reproduce the behavior:
sphinx_rtd_theme
in system.-DFREECIV_ENABLE_MANPAGES
flag toOFF
in CMakeExpected behavior
Man pages are skipped with the flag.
Screenshots
Platform and version (please complete the following information):
Additional context
It works in stable without this error, with the same PKGBUILD on arch.
The text was updated successfully, but these errors were encountered: