Skip to content

Commit a5b3e35

Browse files
committed
Create link for problem set page
We need to duplicate the code for the BASEURL separator, and python3 doesn't have an easy way to do this simpler.
1 parent cf2478c commit a5b3e35

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/manual/substitutions.dist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.. |DOMjudge| replace:: DOMjudge
88
99
.. |baseurlteam| replace:: https://example.com/domjudge/team
10+
.. |problemseturlteam| replace:: https://example.com/domjudge/team/problems
1011
1112
.. |SOURCESIZE| replace:: 256
1213
.. |COMPILETIME| replace:: 30

doc/manual/substitutions.py.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# @configure_input@
22

3+
baseurl_separator = '/' if '@BASEURL@'[-1]!='/' else ''
4+
35
rst_prolog = """
46
.. |DOMjudge| replace:: @PACKAGE_NAME@
57

68
.. |phpversion| replace:: @PHPVERSION@
79
.. |baseurlteam| replace:: @BASEURL@%steam
10+
.. |problemseturlteam| replace:: @BASEURL@%steam/problems
811

912
.. |SOURCESIZE| replace:: 256
1013
.. |COMPILETIME| replace:: 30
1114
.. |PROCLIMIT| replace:: 64
1215

13-
""" % ('/' if '@BASEURL@'[-1]!='/' else '')
16+
""" % (baseurl_separator, baseurl_separator)

0 commit comments

Comments
 (0)