X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=conf.py;h=61bc5ef2bbe79c864900403ffbc589baf12675be;hb=95b5702817b987123d71d432f81eeb0c7101b59c;hp=5d882f2bdcab2c10cfd7122e1c5a90ddef6eb16c;hpb=a94081289bc21041a8daac44d8c8b6714a831281;p=ibg.git diff --git a/conf.py b/conf.py index 5d882f2..61bc5ef 100644 --- a/conf.py +++ b/conf.py @@ -22,6 +22,8 @@ import codecs # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, ".") +import tools.sphinxpatch + from tools.inform import InformLexer from tools.transcript import TranscriptLexer @@ -40,6 +42,7 @@ def setup(app): # ones. extensions = [ 'sphinx.ext.todo', + 'sphinx.ext.extlinks', 'tools.blockdiag', ] @@ -107,6 +110,14 @@ default_role = "any" # output. They are ignored by default. #show_authors = False +# Global definitions. +rst_prolog = open("config/defs.rst").read() + +# External links. +extlinks = { + 'dm4': ("http://inform-fiction.org/manual/html/%s", ""), +} + # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'friendly' @@ -229,7 +240,7 @@ htmlhelp_basename = 'IBG' # -- Options for LaTeX output --------------------------------------------- # Title page information. -latex_image = "harry1" +latex_image = "harry_col" latex_image_title = "First Steps" latex_image_info = "(watercolour and crayon on paper, 2002) Harry Firth (2000-)" latex_image_path = os.path.join('images', latex_image + '.png') @@ -288,7 +299,7 @@ latex_documents = [ #latex_use_parts = False # If true, show page references after internal links. -latex_show_pagerefs = False +latex_show_pagerefs = True # If true, show URL addresses after external links. #latex_show_urls = False