-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add comments as attributes of classes used instead of actual comments
- Loading branch information
1 parent
41a80d9
commit 904bba3
Showing
12 changed files
with
461 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,3 +143,6 @@ content/contests/ | |
content/tmp/* | ||
|
||
# End of https://www.gitignore.io/api/django | ||
|
||
# Docs | ||
docs/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SPHINXPROJ = PDP | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# -*- coding: utf-8 -*- | ||
# -- Path setup -------------------------------------------------------------- | ||
|
||
import os | ||
import sys | ||
import django | ||
import sphinx_rtd_theme | ||
|
||
sys.path.insert(0, os.path.abspath('../..')) | ||
|
||
os.environ["DJANGO_SETTINGS_MODULE"] = "pdpjudge.settings" | ||
django.setup() | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = 'PDP' | ||
copyright = '2019, Vaibhav Sinha, Prateek Kumar, Vishwak Srinivasan' | ||
author = 'Vaibhav Sinha, Prateek Kumar, Vishwak Srinivasan' | ||
|
||
# The short X.Y version | ||
version = '' | ||
# The full version, including alpha/beta/rc tags | ||
release = '' | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.githubpages', | ||
] | ||
|
||
autodoc_member_order = 'bysource' | ||
source_suffix = '.rst' | ||
master_doc = 'index' | ||
language = None | ||
|
||
exclude_patterns = [] | ||
pygments_style = 'sphinx' | ||
|
||
html_theme = 'sphinx_rtd_theme' | ||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Forms and input pre-processing | ||
============================== | ||
|
||
.. automodule:: judge.forms | ||
|
||
.. autoclass:: NewContestForm | ||
:members: | ||
|
||
.. autoclass:: NewProblemForm | ||
:members: | ||
|
||
.. autoclass:: NewSubmissionForm | ||
:members: | ||
|
||
.. autoclass:: NewCommentForm | ||
:members: | ||
|
||
.. autoclass:: AddPersonToContestForm | ||
:members: | ||
|
||
.. autoclass:: AddTestCaseForm | ||
:members: | ||
|
||
.. autoclass:: EditProblemForm | ||
:members: | ||
|
||
.. autoclass:: DeletePersonFromContest | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Handlers and database management | ||
================================ | ||
|
||
.. automodule:: judge.handler | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Welcome to PDP's documentation! | ||
=============================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
models | ||
forms | ||
views | ||
handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Models and Database Schema | ||
========================== | ||
|
||
.. automodule:: judge.models | ||
|
||
.. autoclass:: Contest | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: Problem | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: Person | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: ContestPerson | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: Submission | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: TestCase | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: SubmissionTestCase | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: Comment | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned | ||
|
||
.. autoclass:: PersonProblemFinalScore | ||
:members: | ||
:exclude-members: DoesNotExist, MultipleObjectsReturned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Views and page rendering | ||
======================== | ||
|
||
.. automodule:: judge.views | ||
:members: |
Oops, something went wrong.