Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: make external packages optional
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.
- Loading branch information