diff options
author | 2018-04-10 22:45:51 +0200 | |
---|---|---|
committer | 2018-04-10 22:45:51 +0200 | |
commit | 5420551d340fc06146f2a8fdf7d69ade0195239d (patch) | |
tree | 786750b177fbf348835c816b066ab9c7b6e45087 /pysite/rst/__init__.py | |
parent | Moved all redirects into a folder and added one for github. (diff) | |
parent | Whoops, Flake8 (diff) |
Merge branch 'master' of github.com:discord-python/site
Diffstat (limited to 'pysite/rst/__init__.py')
-rw-r--r-- | pysite/rst/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pysite/rst/__init__.py b/pysite/rst/__init__.py index 815ad058..e0fc973e 100644 --- a/pysite/rst/__init__.py +++ b/pysite/rst/__init__.py @@ -2,7 +2,7 @@ from docutils.core import publish_parts from docutils.parsers.rst.roles import register_canonical_role -from pysite.rst.roles import icon_role, url_for_role +from pysite.rst.roles import icon_role, page_role, url_for_role def render(rst: str): @@ -12,4 +12,5 @@ def render(rst: str): register_canonical_role("icon", icon_role) +register_canonical_role("page", page_role) register_canonical_role("url_for", url_for_role) |