summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-09-13 01:55:56 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-09-13 01:55:56 +0200
commita923eff9a498af7780615a7dfaf6031eacf3510f (patch)
tree51fe9b468d64bea1af458fc4e8b6d77e46b1e7a9 /doc
parentba64ea22830dd8e627428d7a0002c4ff70cd408d (diff)
Doc: Use PascalCase names in hyperlinks
We were not consistently applying .lower() every time we construct an hyperlink, so there would be case mismatch. It works fine to keep the natural case for those links.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/tools/makerst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py
index 056e5ca57f..06b842d8e6 100755
--- a/doc/tools/makerst.py
+++ b/doc/tools/makerst.py
@@ -312,7 +312,7 @@ def rstize_text(text, cclass):
def make_type(t):
global class_names
if t in class_names:
- return ':ref:`' + t + '<class_' + t.lower() + '>`'
+ return ':ref:`' + t + '<class_' + t + '>`'
return t
@@ -332,7 +332,7 @@ def make_enum(t):
c = "@GlobalScope"
e = t
if c in class_names:
- return ':ref:`' + e + '<enum_' + c.lower() + '_' + e.lower() + '>`'
+ return ':ref:`' + e + '<enum_' + c + '_' + e + '>`'
return t