Browse Source

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.
Rémi Verschelde 7 years ago
parent
commit
a923eff9a4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      doc/tools/makerst.py

+ 2 - 2
doc/tools/makerst.py

@@ -312,7 +312,7 @@ def rstize_text(text, cclass):
 def make_type(t):
 def make_type(t):
     global class_names
     global class_names
     if t in class_names:
     if t in class_names:
-        return ':ref:`' + t + '<class_' + t.lower() + '>`'
+        return ':ref:`' + t + '<class_' + t + '>`'
     return t
     return t
 
 
 
 
@@ -332,7 +332,7 @@ def make_enum(t):
         c = "@GlobalScope"
         c = "@GlobalScope"
         e = t
         e = t
     if c in class_names:
     if c in class_names:
-        return ':ref:`' + e + '<enum_' + c.lower() + '_' + e.lower() + '>`'
+        return ':ref:`' + e + '<enum_' + c + '_' + e + '>`'
     return t
     return t