Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cms/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def __init__(self):
self.max_submission_length = 100000
self.max_input_length = 5000000
self.stl_path = "/usr/share/doc/stl-manual/html/"
self.fp_doc_path = "/usr/share/doc/fp_doc/"
self.c_guide_path = "/usr/share/doc/c_guide/"
self.allow_questions = True
# Prefix of 'iso-codes'[1] installation. It can be found out
# using `pkg-config --variable=prefix iso-codes`, but it's
Expand Down
2 changes: 2 additions & 0 deletions cms/server/ContestWebServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2218,4 +2218,6 @@ def get_content_type(self):
(r"/testing", UserTestInterfaceHandler),
(r"/printing", PrintingHandler),
(r"/stl/(.*)", StaticFileGzHandler, {"path": config.stl_path}),
(r"/fp_doc/(.*)", StaticFileGzHandler, {"path": config.fp_doc_path}),
(r"/c_guide/(.*)", StaticFileGzHandler, {"path": config.c_guide_path}),
]
9 changes: 9 additions & 0 deletions cms/server/po/lt.po
Original file line number Diff line number Diff line change
Expand Up @@ -1189,3 +1189,12 @@ msgstr "Prisijungti dalyvio vardu"

msgid "You will receive your login details via email."
msgstr "Prisijungimo duomenis gausite el. paštu."

msgid "FP documentation"
msgstr "Free Pascal dokumentacija"

msgid "C guide"
msgstr "standartinės bibliotekos gidas"

msgid "cppreference"
msgstr "cppreference dokumentacija"
7 changes: 6 additions & 1 deletion cms/server/templates/contest/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ <h1>{{ _("Documentation") }}</h1>

<h2>{{ _("Programming languages and libraries") }}</h2>

<a href="{{ url_root }}/stl/index.html">{{ _("Standard Template Library") }}</a>
<h3>C</h3>
<a href="{{ url_root }}/c_guide/index.html">{{ _("C guide") }}</a>
<h3>C++</h3>
<a href="{{ url_root }}/stl/index.html">{{ _("cppreference") }}</a>
<h3>Pascal</h3>
<a href="{{ url_root }}/fp_doc/index.html">{{ _("FP documentation") }}</a>

<h2>{{ _("Submission details for compilation") }}</h2>

Expand Down