|
|
@ -22,8 +22,6 @@ import re
|
|
|
|
import shlex # pylint:disable=unused-import
|
|
|
|
import shlex # pylint:disable=unused-import
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'docs'))
|
|
|
|
|
|
|
|
from gen_changelog import generate_changelog
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Support :dfhack-keybind:`command` ------------------------------------
|
|
|
|
# -- Support :dfhack-keybind:`command` ------------------------------------
|
|
|
|
# this is a custom directive that pulls info from dfhack.init-example
|
|
|
|
# this is a custom directive that pulls info from dfhack.init-example
|
|
|
@ -180,19 +178,23 @@ def all_keybinds_documented():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Actually call the docs generator and run test
|
|
|
|
# Actually call the docs generator and run test
|
|
|
|
generate_changelog()
|
|
|
|
|
|
|
|
write_script_docs()
|
|
|
|
write_script_docs()
|
|
|
|
all_keybinds_documented()
|
|
|
|
all_keybinds_documented()
|
|
|
|
|
|
|
|
|
|
|
|
# -- General configuration ------------------------------------------------
|
|
|
|
# -- General configuration ------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'docs', 'sphinx_extensions'))
|
|
|
|
|
|
|
|
|
|
|
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
|
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
|
|
needs_sphinx = '1.8'
|
|
|
|
needs_sphinx = '1.8'
|
|
|
|
|
|
|
|
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
# ones.
|
|
|
|
# ones.
|
|
|
|
extensions = ['sphinx.ext.extlinks']
|
|
|
|
extensions = [
|
|
|
|
|
|
|
|
'sphinx.ext.extlinks',
|
|
|
|
|
|
|
|
'dfhack.changelog',
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
# This config value must be a dictionary of external sites, mapping unique
|
|
|
|
# This config value must be a dictionary of external sites, mapping unique
|
|
|
|
# short alias names to a base URL and a prefix.
|
|
|
|
# short alias names to a base URL and a prefix.
|
|
|
|