Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update links #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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: 1 addition & 1 deletion docs/judge/setting_up_a_judge.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ connecting it to the site. It expects problems to be placed on the host under
`/mnt/problems/judge.yml`.

```shell-session
$ git clone --recursive https://github.com/DMOJ/judge.git
$ git clone --recursive https://github.com/DMOJ/judge-server.git
$ cd judge/.docker
$ make judge-tier1
$ docker run \
Expand Down
2 changes: 1 addition & 1 deletion docs/site/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ You should see `(dmojsite)` prepended to your shell. Henceforth, `(dmojsite)` co
Now, fetch the site source code. If you plan to install a judge [from PyPI](https://pypi.org/project/dmoj/), check out a matching version of the site repository. For example, for judge v4.0.0:

```shell-session
(dmojsite) $ git clone https://github.com/DMOJ/site.git
(dmojsite) $ git clone https://github.com/DMOJ/online-judge.git
(dmojsite) $ cd site
(dmojsite) $ git checkout v4.0.0 # only if planning to install a judge from PyPI, otherwise skip this step
(dmojsite) $ git submodule init
Expand Down
4 changes: 2 additions & 2 deletions docs/site/mathoid.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ The DMOJ platform is capable of rendering LaTeX math for constraints and formula
For example, [this problem](https://dmoj.ca/problem/fibonacci) makes extensive use of this functionality to present
crisp math rendering in browsers.

The DMOJ makes use of the [Wikimedia Mathoid](https://github.com/wikimedia/mathoid) project to render math.
The DMOJ makes use of the [Wikimedia Mathoid](https://github.com/wikimedia/mediawiki-services-mathoid) project to render math.

## Installing Mathoid

Follow the [installation instructions](https://github.com/wikimedia/mathoid) of Mathoid. Moving forward, we'll assume that
Follow the [installation instructions](https://github.com/wikimedia/mediawiki-services-mathoid) of Mathoid. Moving forward, we'll assume that
you are running Mathoid on `localhost:8888`.

## Configuring DMOJ to use Mathoid
Expand Down
2 changes: 1 addition & 1 deletion docs/site/pdfoid.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Install `exiftool`, which is used to set PDF titles.
$ apt install exiftool
```

Install [ChromeDriver](https://chromedriver.chromium.org/downloads), a special version of the Chromium engine needed by
Install [ChromeDriver](https://developer.chrome.com/docs/chromedriver/downloads), a special version of the Chromium engine needed by
Selenium to create PDFs.

```shell-session
Expand Down
2 changes: 1 addition & 1 deletion docs/site/user_data_download.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ DMOJ_USER_DATA_DOWNLOAD_RATELIMIT = datetime.timedelta(days=1)
```

Also, uncomment the relevant section in your Nginx configuration if you wish to take
advantage of Nginx's [X-Accel-Redirect](https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/#x-accel-redirect)
advantage of Nginx's [X-Accel-Redirect](https://github.com/nginxinc/nginx-wiki/blob/master/source/start/topics/examples/x-accel.rst#x-accel-redirect)
feature.

```nginx
Expand Down
16 changes: 8 additions & 8 deletions sample_files/local_settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#####################################
########## Django settings ##########
#####################################
# See <https://docs.djangoproject.com/en/3.2/ref/settings/>
# See <https://docs.djangoproject.com/en/4.2/ref/settings/>
# for more info and help. If you are stuck, you can try Googling about
# Django - many of these settings below have external documentation about them.
#
Expand All @@ -24,15 +24,15 @@
)

# Caching. You can use memcached or redis instead.
# Documentation: <https://docs.djangoproject.com/en/3.2/topics/cache/>
# Documentation: <https://docs.djangoproject.com/en/4.2/topics/cache/>
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
}

# Your database credentials. Only MySQL is supported by DMOJ.
# Documentation: <https://docs.djangoproject.com/en/3.2/ref/databases/>
# Documentation: <https://docs.djangoproject.com/en/4.2/ref/databases/>
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
Expand All @@ -48,11 +48,11 @@
}

# Sessions.
# Documentation: <https://docs.djangoproject.com/en/3.2/topics/http/sessions/>
# Documentation: <https://docs.djangoproject.com/en/4.2/topics/http/sessions/>
#SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'

# Internationalization.
# Documentation: <https://docs.djangoproject.com/en/3.2/topics/i18n/>
# Documentation: <https://docs.djangoproject.com/en/4.2/topics/i18n/>
LANGUAGE_CODE = 'en-ca'
DEFAULT_USER_TIME_ZONE = 'America/Toronto'
USE_I18N = True
Expand All @@ -74,7 +74,7 @@
#########################################
########## Email configuration ##########
#########################################
# See <https://docs.djangoproject.com/en/3.2/topics/email/#email-backends>
# See <https://docs.djangoproject.com/en/4.2/topics/email/#email-backends>
# for more documentation. You should follow the information there to define
# your email settings.

Expand Down Expand Up @@ -116,7 +116,7 @@
################################################
########## Static files configuration ##########
################################################
# See <https://docs.djangoproject.com/en/3.2/howto/static-files/>.
# See <https://docs.djangoproject.com/en/4.2/howto/static-files/>.

# Change this to somewhere more permanent, especially if you are using a
# webserver to serve the static files. This is the directory where all the
Expand Down Expand Up @@ -252,7 +252,7 @@


## ======== Logging Settings ========
# Documentation: https://docs.djangoproject.com/en/3.2/ref/settings/#logging
# Documentation: https://docs.djangoproject.com/en/4.2/ref/settings/#logging
# https://docs.python.org/3/library/logging.config.html#configuration-dictionary-schema
LOGGING = {
'version': 1,
Expand Down
4 changes: 2 additions & 2 deletions sample_files/problem_markdown_example.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ Optional: an explanation of how the Sample Output was produced goes here, clarif

A prime number has exactly two divisors: ~1~ and itself. The prime numbers in ~A~ are ~2, 3~ and ~5~, so the output is ~2 + 3 + 5 = 10~.

[1]: https://google.ca
[2]: https://www.google.ca/doodle4google/images/splashes/featured.png
[1]: https://www.google.ca/
[2]: https://doodles.google.ca/d4g/images/splashes/featured.png
Loading