Skip to content

Commit 9485165

Browse files
committed
Add note about placeholder link replacement
This adds a note to preprocess and test code where the placeholder link replacement can be found on the main site.
1 parent 85e65b1 commit 9485165

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

commands/preprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def is_ranges_placeholder(target):
179179
return False
180180

181181
def transform_ranges_placeholder(target, file, root):
182+
# Placeholder link replacement is implemented in the MediaWiki site JS at
183+
# https://en.cppreference.com/w/MediaWiki:Common.js
184+
182185
ranges = 'cpp/experimental/ranges' in file
183186
repl = (r'\1/cpp/experimental/ranges/\2' if ranges else r'\1/cpp/\2')
184187

tests/test_preprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ def test_is_external_link(self):
102102
self.assertEqual(False, is_external_link(' http://a'))
103103

104104
class TestPlaceholderLinks(unittest.TestCase):
105+
# Placeholder link replacement is implemented in the MediaWiki site JS at
106+
# https://en.cppreference.com/w/MediaWiki:Common.js
107+
105108
def test_is_ranges_placeholder(self):
106109
match = [
107110
'http://en.cppreference.com/w/cpp/ranges-placeholder/concepts/Assignable',

0 commit comments

Comments
 (0)