Remapping urls

This commit is contained in:
Griatch 2020-07-08 21:55:19 +02:00
parent 3b87cffed6
commit ef1531c405
6 changed files with 18 additions and 16 deletions

View file

@ -86,6 +86,7 @@ def create_toctree():
ref_doc_regex = re.compile(r"\[(?P<txt>[\w -]+?)\]:\s+?(?P<url>.+?)(?=$|\n)", re.I + re.S + re.U) ref_doc_regex = re.compile(r"\[(?P<txt>[\w -]+?)\]:\s+?(?P<url>.+?)(?=$|\n)", re.I + re.S + re.U)
def _sub(match): def _sub(match):
# inline reference links
grpdict = match.groupdict() grpdict = match.groupdict()
txt, url = grpdict['txt'], grpdict['url'] txt, url = grpdict['txt'], grpdict['url']
@ -111,6 +112,7 @@ def create_toctree():
return f"[{txt}]({urlout})" return f"[{txt}]({urlout})"
def _sub_doc(match): def _sub_doc(match):
# reference links set at the bottom of the page
grpdict = match.groupdict() grpdict = match.groupdict()
txt, url = grpdict['txt'], grpdict['url'] txt, url = grpdict['txt'], grpdict['url']

View file

@ -7,7 +7,7 @@ Here are some pointers to get you going.
### Start with the tutorial ### 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. you only the beginning or some part of it, it covers much of the things needed to get started.
### Python ### Python

View file

@ -100,7 +100,7 @@ generation and more
- RSS feeds can be echoed to in-game channels (things like Twitter can easily be added) - RSS feeds can be echoed to in-game channels (things like Twitter can easily be added)
- Several different databases supported (SQLite3, MySQL, PostgreSQL, ...) - 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 ## What you need to know to work with Evennia

View file

@ -15,18 +15,18 @@ in mind for your own game, this will give you a good start.
### Part 1: What we have ### Part 1: What we have
1. [Introduction & Overview](Starting/Starting-Part1) 1. [Introduction & Overview](Starting/Starting-Part1)
1. [Building stuff](Part1/Building-Quickstart) 1. [Building stuff](Starting/Part1/Building-Quickstart)
1. [The Tutorial World](Part1/Tutorial-World-Introduction) 1. [The Tutorial World](Starting/Part1/Tutorial-World-Introduction)
1. [Python basics](Part1/Python-basic-introduction) 1. [Python basics](Starting/Part1/Python-basic-introduction)
1. [Game dir overview](Part1/Gamedir-Overview) 1. [Game dir overview](Starting/Part1/Gamedir-Overview)
1. [Python classes and objects](Part1/Python-classes-and-objects) 1. [Python classes and objects](Starting/Part1/Python-classes-and-objects)
1. [Accessing the Evennia library](Part1/Evennia-Library-Overview) 1. [Accessing the Evennia library](Starting/Part1/Evennia-Library-Overview)
1. [Typeclasses - Persistent objects](Part1/Learning-Typeclasses) 1. [Typeclasses - Persistent objects](Starting/Part1/Learning-Typeclasses)
1. [Making our first own commands](Part1/Adding-Commands) 1. [Making our first own commands](Starting/Part1/Adding-Commands)
1. [Parsing and replacing default Commands](Part1/More-on-Commands) 1. [Parsing and replacing default Commands](Starting/Part1/More-on-Commands)
1. [Creating things](Part1/Creating-Things) 1. [Creating things](Starting/Part1/Creating-Things)
1. [Searching for things](Part1/Searching-Things) 1. [Searching for things](Starting/Part1/Searching-Things)
1. [Advanced searching with Django queries](Part1/Django-queries) 1. [Advanced searching with Django queries](Starting/Part1/Django-queries)
### Part 2: What we want ### Part 2: What we want

View file

@ -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 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. *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 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 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 Talker-type game you *will* have to bite the bullet and code your game (or find a coder willing to

View file

@ -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 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 more specific ideas, see the [other tutorials and hints](Tutorials) as well
as the [Developer Central](Developer-Central). as the [Evennia Component overview](../../Component/Component-Overview).