From aff2944f28418bb71095daf57159d7146d9e4f62 Mon Sep 17 00:00:00 2001 From: lethosor Date: Wed, 8 Jul 2020 00:12:05 -0400 Subject: [PATCH] Add "scripts-" prefix to generated scripts subpage anchors --- conf.py | 2 +- docs/Core.rst | 2 +- docs/Introduction.rst | 2 +- index.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf.py b/conf.py index 47d1c0c58..1c5ef9853 100644 --- a/conf.py +++ b/conf.py @@ -151,7 +151,7 @@ def write_script_docs(): 'gui': 'GUI Scripts', 'modtools': 'Scripts for Modders'} for k in head: - title = ('.. _{k}:\n\n{l}\n{t}\n{l}\n\n' + title = ('.. _scripts-{k}:\n\n{l}\n{t}\n{l}\n\n' '.. include:: /scripts/{a}about.txt\n\n' '.. contents::\n\n').format( k=k, t=head[k], diff --git a/docs/Core.rst b/docs/Core.rst index 4e65f4dda..9cad075f4 100644 --- a/docs/Core.rst +++ b/docs/Core.rst @@ -408,7 +408,7 @@ All matching init files will be executed in alphebetical order. A world being loaded can mean a fortress, an adventurer, or legends mode. These files are best used for non-persistent commands, such as setting -a `fix ` script to run on `repeat`. +a `fix ` script to run on `repeat`. .. _onUnload.init: diff --git a/docs/Introduction.rst b/docs/Introduction.rst index 22033d528..52675d364 100644 --- a/docs/Introduction.rst +++ b/docs/Introduction.rst @@ -20,7 +20,7 @@ enhancements by default, and more can be enabled. There are also many tools You can even add third-party scripts and plugins to do almost anything! For modders, DFHack makes many things possible. Custom reactions, new -interactions, magic creature abilities, and more can be set through `modtools` +interactions, magic creature abilities, and more can be set through `scripts-modtools` and custom raws. Non-standard DFHack scripts and inits can be stored in the raw directory, making raws or saves fully self-contained for distribution - or for coexistence in a single DF install, even with incompatible components. diff --git a/index.rst b/index.rst index 8c1e9d86d..b3498d432 100644 --- a/index.rst +++ b/index.rst @@ -20,7 +20,7 @@ enhancements by default, and more can be enabled. There are also many tools You can even add third-party scripts and plugins to do almost anything! For modders, DFHack makes many things possible. Custom reactions, new -interactions, magic creature abilities, and more can be set through `modtools` +interactions, magic creature abilities, and more can be set through `scripts-modtools` and custom raws. Non-standard DFHack scripts and inits can be stored in the raw directory, making raws or saves fully self-contained for distribution - or for coexistence in a single DF install, even with incompatible components.