Skip to content
Open
1 change: 1 addition & 0 deletions doc/manual/substitutions.dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.. |DOMjudge| replace:: DOMjudge
.. |baseurlteam| replace:: https://example.com/domjudge/team
.. |problemseturlteam| replace:: https://example.com/domjudge/team/problems
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to mention the URL? It's in the menu, nobody should need to enter more than the base URL anyway.

.. |SOURCESIZE| replace:: 256
.. |COMPILETIME| replace:: 30
Expand Down
5 changes: 4 additions & 1 deletion doc/manual/substitutions.py.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# @configure_input@

baseurl_separator = '/' if '@BASEURL@'[-1]!='/' else ''

rst_prolog = """
.. |DOMjudge| replace:: @PACKAGE_NAME@

.. |phpversion| replace:: @PHPVERSION@
.. |baseurlteam| replace:: @BASEURL@%steam
.. |problemseturlteam| replace:: @BASEURL@%steam/problems

.. |SOURCESIZE| replace:: 256
.. |COMPILETIME| replace:: 30
.. |PROCLIMIT| replace:: 64

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