ports/games/angband/files/patch-docs_conf.py
Adriaan de Groot e6a0f339de games/angband: update to 4.2.2, latest upstream
The release notes are at
	https://github.com/angband/angband/releases/tag/4.2.2

Angband looks like it's in the process or a project-reorganization.
Sources have moved to github; the official site is being changes
as well. Docs have gone to sphinx, and build looks like it's moving
to CMake -- but incomplete.

This update pulls in the changes to distribution and build so far:
- MASTER_SITES is set explicitly; upstream rolls a release tarball,
  and I don't want to grab the GH auto-rolled one.
- ncurses needs some linker-flag-magic because it's linked into an
  intermediate static library.
- The manual is now built with sphinx. Upstream wants the "better"
  sphinx theme, but that isn't packaged; I picked a different one
  at random. Since the generated HTML is installed without its
  supporting stylesheets or javascript, the difference is unimportant.

Play-tested in text (ncurses) and X11 modes, at least to the point
that I enter the dungeon and get eaten by a grue.
2021-07-05 01:01:17 +02:00

16 lines
544 B
Python

--- docs/conf.py.orig 2021-07-03 22:02:46 UTC
+++ docs/conf.py
@@ -53,10 +53,10 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-from better import better_theme_path
+from sphinx_rtd_theme import get_html_theme_path
-html_theme_path = [better_theme_path]
-html_theme = "better"
+html_theme_path = [get_html_theme_path()]
+html_theme = "sphinx_rtd_theme"
html_title = "<img> The Angband Manual"
html_short_title = "Home"