From ef1531c4058dca3aac5b040c4ed8f804b512fe7d Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 8 Jul 2020 21:55:19 +0200 Subject: [PATCH] Remapping urls --- docs/pylib/create_toctree.py | 2 ++ docs/source/Coding/Coding-Introduction.md | 2 +- docs/source/Evennia-Introduction.md | 2 +- docs/source/Howto/Howto-Overview.md | 24 +++++++++---------- .../Howto/Starting/Part2/Game-Planning.md | 2 +- .../Tutorial-for-basic-MUSH-like-game.md | 2 +- 6 files changed, 18 insertions(+), 16 deletions(-) diff --git a/docs/pylib/create_toctree.py b/docs/pylib/create_toctree.py index 8984fd368d..3b691c94c8 100644 --- a/docs/pylib/create_toctree.py +++ b/docs/pylib/create_toctree.py @@ -86,6 +86,7 @@ def create_toctree(): ref_doc_regex = re.compile(r"\[(?P[\w -]+?)\]:\s+?(?P.+?)(?=$|\n)", re.I + re.S + re.U) def _sub(match): + # inline reference links grpdict = match.groupdict() txt, url = grpdict['txt'], grpdict['url'] @@ -111,6 +112,7 @@ def create_toctree(): return f"[{txt}]({urlout})" def _sub_doc(match): + # reference links set at the bottom of the page grpdict = match.groupdict() txt, url = grpdict['txt'], grpdict['url'] diff --git a/docs/source/Coding/Coding-Introduction.md b/docs/source/Coding/Coding-Introduction.md index fd30b9c742..99475026c5 100644 --- a/docs/source/Coding/Coding-Introduction.md +++ b/docs/source/Coding/Coding-Introduction.md @@ -7,7 +7,7 @@ Here are some pointers to get you going. ### Start with the tutorial -It's highly recommended that you jump in on the [Starting Tutorial](Howto/Starting/Starting-Part1). Even if +It's highly recommended that you jump in on the [Starting Tutorial](../Howto/Starting/Starting-Part1). Even if you only the beginning or some part of it, it covers much of the things needed to get started. ### Python diff --git a/docs/source/Evennia-Introduction.md b/docs/source/Evennia-Introduction.md index 0a18df3611..8d526b520d 100644 --- a/docs/source/Evennia-Introduction.md +++ b/docs/source/Evennia-Introduction.md @@ -100,7 +100,7 @@ generation and more - RSS feeds can be echoed to in-game channels (things like Twitter can easily be added) - Several different databases supported (SQLite3, MySQL, PostgreSQL, ...) -For more extensive feature information, see the [Developer Central](Developer-Central). +For more extensive feature information, see the [Evennia Component overview](Component/Component-Overview). ## What you need to know to work with Evennia diff --git a/docs/source/Howto/Howto-Overview.md b/docs/source/Howto/Howto-Overview.md index 88d1f1594d..d79efb2286 100644 --- a/docs/source/Howto/Howto-Overview.md +++ b/docs/source/Howto/Howto-Overview.md @@ -15,18 +15,18 @@ in mind for your own game, this will give you a good start. ### Part 1: What we have 1. [Introduction & Overview](Starting/Starting-Part1) -1. [Building stuff](Part1/Building-Quickstart) -1. [The Tutorial World](Part1/Tutorial-World-Introduction) -1. [Python basics](Part1/Python-basic-introduction) -1. [Game dir overview](Part1/Gamedir-Overview) -1. [Python classes and objects](Part1/Python-classes-and-objects) -1. [Accessing the Evennia library](Part1/Evennia-Library-Overview) -1. [Typeclasses - Persistent objects](Part1/Learning-Typeclasses) -1. [Making our first own commands](Part1/Adding-Commands) -1. [Parsing and replacing default Commands](Part1/More-on-Commands) -1. [Creating things](Part1/Creating-Things) -1. [Searching for things](Part1/Searching-Things) -1. [Advanced searching with Django queries](Part1/Django-queries) +1. [Building stuff](Starting/Part1/Building-Quickstart) +1. [The Tutorial World](Starting/Part1/Tutorial-World-Introduction) +1. [Python basics](Starting/Part1/Python-basic-introduction) +1. [Game dir overview](Starting/Part1/Gamedir-Overview) +1. [Python classes and objects](Starting/Part1/Python-classes-and-objects) +1. [Accessing the Evennia library](Starting/Part1/Evennia-Library-Overview) +1. [Typeclasses - Persistent objects](Starting/Part1/Learning-Typeclasses) +1. [Making our first own commands](Starting/Part1/Adding-Commands) +1. [Parsing and replacing default Commands](Starting/Part1/More-on-Commands) +1. [Creating things](Starting/Part1/Creating-Things) +1. [Searching for things](Starting/Part1/Searching-Things) +1. [Advanced searching with Django queries](Starting/Part1/Django-queries) ### Part 2: What we want diff --git a/docs/source/Howto/Starting/Part2/Game-Planning.md b/docs/source/Howto/Starting/Part2/Game-Planning.md index 36878bc827..553d766e10 100644 --- a/docs/source/Howto/Starting/Part2/Game-Planning.md +++ b/docs/source/Howto/Starting/Part2/Game-Planning.md @@ -125,7 +125,7 @@ gloss over this bit and jump directly to **World Building**. Vice versa, many "g tend to jump directly to this part without doing the **Planning** first. Neither way is good and *will* lead to you having to redo all your hard work at least once, probably more. -Evennia's [Developer Central](Developer-Central) tries to help you with this bit of development. We +Evennia's [Evennia Component overview](../../../Component/Component-Overview) tries to help you with this bit of development. We also have a slew of [Tutorials](Tutorials) with worked examples. Evennia tries hard to make this part easier for you, but there is no way around the fact that if you want anything but a very basic Talker-type game you *will* have to bite the bullet and code your game (or find a coder willing to diff --git a/docs/source/Howto/Starting/Tutorial-for-basic-MUSH-like-game.md b/docs/source/Howto/Starting/Tutorial-for-basic-MUSH-like-game.md index 1b2416737d..250b508e09 100644 --- a/docs/source/Howto/Starting/Tutorial-for-basic-MUSH-like-game.md +++ b/docs/source/Howto/Starting/Tutorial-for-basic-MUSH-like-game.md @@ -651,4 +651,4 @@ specific player (or npc) and automatically compare their relevant attributes to To continue from here, you can take a look at the [Tutorial World](Part1/Tutorial-World-Introduction). For more specific ideas, see the [other tutorials and hints](Tutorials) as well -as the [Developer Central](Developer-Central). \ No newline at end of file +as the [Evennia Component overview](../../Component/Component-Overview). \ No newline at end of file