You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* use `` in places where bare ` were used previously
* fix missing references and other sphinx errors
* change json code-blocks to use comments to indicate the types of things
* updated some docs that referred to unsupported installation methods
* remove link to distutils, and fix old setuptools link
* rename "target directory" to "installation directory"
Copy file name to clipboardExpand all lines: docs/External contest formats.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ As for the second set of needs, the philosophy is that CMS should not force upon
19
19
At the moment, CMS comes with two loaders pre-installed:
20
20
21
21
* :file:`italy_yaml`, for tasks/users stored in the "Italian Olympiad" format.
22
-
* :file:`polygon_xml`, for tasks made with `Polygon <https://polygon.codeforces.com/>`_.
22
+
* :file:`polygon_xml`, for tasks made with `Polygon <https://polygon.codeforces.com/>`__.
23
23
24
24
The first one is not particularly suited for general use (see below for more details), so, if you don't want to migrate to one of the aforementioned formats then we encourage you to **write a loader** for your favorite format and then get in touch with CMS authors to have it accepted in CMS. See the file :gh_blob:`cmscontrib/loaders/base_loader.py` for some hints.
25
25
@@ -171,7 +171,7 @@ The following are optional keys that must be present for some task type or score
171
171
Polygon format
172
172
==============
173
173
174
-
`Polygon <https://polygon.codeforces.com>`_ is a popular platform for the creation of tasks, and a task format, used among others by Codeforces.
174
+
`Polygon <https://polygon.codeforces.com>`__ is a popular platform for the creation of tasks, and a task format, used among others by Codeforces.
175
175
176
176
Since Polygon doesn't support CMS directly, some task parameters cannot be set using the standard Polygon configuration. The importer reads from an optional file :file:`cms_conf.py` additional configuration specifics to CMS. Additionally, user can add file named contestants.txt to allow importing some set of users.
The above commands provide a very essential Pascal environment. Consider installing the following packages for additional units: `fp-units-base`, `fp-units-fcl`, `fp-units-misc`, `fp-units-math` and `fp-units-rtl`.
84
+
The above commands provide a very essential Pascal environment. Consider installing the following packages for additional units: ``fp-units-base``, ``fp-units-fcl``, ``fp-units-misc``, ``fp-units-math`` and ``fp-units-rtl``.
85
85
86
86
Arch Linux
87
87
----------
@@ -130,10 +130,10 @@ First obtain the source code of CMS. Download :gh_download:`CMS release`
130
130
Alternatively, if you like living at the bleeding edge, check out the CMS
Copy file name to clipboardExpand all lines: docs/RankingWebServer.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ RWS doesn't use the PostgreSQL database. Instead, it stores its data in :file:`/
52
52
53
53
The intended way to get data to RWS is to have the rest of CMS send it. The service responsible for that is ProxyService (PS for short). When PS is started for a certain contest, it will send the data for that contest to all RWSs it knows about (i.e. those in its configuration). This data includes the contest itself (its name, its begin and end times, etc.), its tasks, its users and teams, and the submissions received so far. Then it will continue to send new submissions as soon as they are scored and it will update them as needed (for example when a user uses a token). Note that hidden users (and their submissions) will not be sent to RWS.
54
54
55
-
There are also other ways to insert data into RWS: send custom HTTP requests or directly write JSON files. For the former, the script `cmsRWSHelper` can be used to handle the low level communication.
55
+
There are also other ways to insert data into RWS: send custom HTTP requests or directly write JSON files. For the former, the script ``cmsRWSHelper`` can be used to handle the low level communication.
Copy file name to clipboardExpand all lines: docs/Running CMS.rst
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Finally you have to create the database schema for CMS, by running:
51
51
Configuring CMS
52
52
===============
53
53
54
-
There are two configuration files, one for CMS itself and one for the rankings. Samples for both files are in the directory :gh_tree:`config/`. You want to copy them to the same file names but without the ``.sample`` suffix (that is, to :file:`config/cms.toml` and :file:`config/cms_ranking.toml`) before modifying them.
54
+
There are two configuration files, one for CMS itself and one for the rankings. Samples for both files are in the directory :gh_tree:`config/`. To modify them, first install CMS (using, for example, ``./install.py cms``) and then modify the files in :samp:`{install_dir}/etc/`.
55
55
56
56
* :file:`cms.toml` is intended to be the same on all machines; all configurations options are explained in the file; of particular importance is the definition of ``core_services``, that specifies where and how many services are going to be run, and the connecting line for the database, in which you need to specify the name of the user created above and its password.
57
57
@@ -69,12 +69,10 @@ If you are organizing a real contest, you must also change ``secret_key`` to a r
69
69
70
70
As the name implies, the value of ``secret_key`` must be kept confidential. If a contestant knows it (for example because you are using the default value), they may be easily able to log in as another contestant.
71
71
72
-
The configuration files get copied automatically by the ``prerequisites.py`` script, so you can either run ``sudo ./prerequisites.py install`` again (answering "Y" when questioned about overwriting old configuration files) or you could simply edit the previously installed configuration files (which are usually found in ``/usr/local/etc/`` or ``/etc/``), if you do not plan on running that command ever again.
73
-
74
72
Running CMS
75
73
===========
76
74
77
-
Here we will assume you installed CMS. If not, you should replace all commands path with the appropriate local versions (for example, ``cmsLogService`` becomes :gh_blob:`./scripts/cmsLogService`).
75
+
You must install CMS (using, for example, ``./install.py cms``) before continuing. Note that if you didn't activate CMS's virtual environment, you need to prefix all commands with :samp:`{install_dir}/bin/`.
78
76
79
77
At this point, you should have CMS installed on all the machines you want run services on, with the same configuration file, and a running PostgreSQL instance. To run CMS, you need a contest in the database. To create a contest, follow :doc:`these instructions <Creating a contest>`.
80
78
@@ -106,7 +104,7 @@ You should now be able to start exploring the admin interface, by default at htt
106
104
107
105
cmsAddAdmin name
108
106
109
-
CMS will create an admin account with username "name" and a random password that will be printed by the command. You can log in with this credentials, and then use the admin interface to modify the account or add other accounts.
107
+
CMS will create an admin account with username "name" and a random password that will be printed by the command. You can log in with these credentials, and then use the admin interface to modify the account or add other accounts.
110
108
111
109
.. _running-cms_recommended-setup:
112
110
@@ -117,8 +115,8 @@ Starting CMS by systemd
117
115
If your system runs ``systemd``, you can start parts of CMS as systemd services.
118
116
They are usually managed by the user instance of systemd for the ``cmsuser`` account.
119
117
120
-
:samp:`./install.py --dir={target} systemd` installs the following services under
121
-
``~/.config/systemd/user/``:
118
+
:samp:`./install.py --dir={install_dir} systemd` installs the following
119
+
services under ``~/.config/systemd/user/``:
122
120
123
121
* ``cms-logging.service`` that starts the ``cmsLogService``.
0 commit comments