-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2fe082
commit be5327d
Showing
28 changed files
with
1,537 additions
and
125 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
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,21 @@ | ||
|
||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SPHINXPROJ = socceraction | ||
SOURCEDIR = . | ||
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,78 @@ | ||
a { | ||
color: #26b079; | ||
} | ||
|
||
.toctree-l1 a:active, .toctree-l1 a:hover { | ||
background-color: #676767; | ||
} | ||
|
||
.wy-nav-top { | ||
background-color: #2ac185; | ||
} | ||
|
||
.wy-menu-vertical li.toctree-l1.current>a { | ||
border-bottom: none; | ||
border-top: none; | ||
} | ||
|
||
.wy-nav-side { | ||
background-color: #414552; | ||
width: 300px; | ||
} | ||
|
||
/* make sure sidebar is wide enough */ | ||
.wy-side-scroll, .wy-menu-vertical, .wy-side-nav-search, .rst-versions { | ||
width: 300px; | ||
} | ||
|
||
.wy-nav-content { | ||
margin-left: 0px; | ||
} | ||
|
||
.wy-side-nav-search { | ||
background-color: #2ac185; | ||
} | ||
|
||
.wy-side-nav-search input[type=text] { | ||
border-color: #2ac185; | ||
} | ||
|
||
.wy-menu-vertical header, .wy-menu-vertical p.caption { | ||
color: #26b079; | ||
} | ||
|
||
.wy-menu-vertical li span.toctree-expand { | ||
color: #dedede; | ||
} | ||
|
||
.wy-menu-vertical li.current > a span.toctree-expand { | ||
color: #848484; | ||
} | ||
|
||
.wy-menu-vertical li:hover > a span.toctree-expand { | ||
color: #dedede; | ||
} | ||
|
||
.rst-content .section>img, .rst-content .section>a>img { | ||
margin-bottom: 5px; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.wy-nav-side { | ||
left: -300px; | ||
} | ||
.wy-nav-content { | ||
margin-left: 0px; | ||
} | ||
.wy-side-scroll, .wy-menu-vertical, .wy-side-nav-search, .rst-versions { | ||
width: auto; | ||
} | ||
} | ||
|
||
.red { | ||
color: red; | ||
} | ||
|
||
.green { | ||
color: green; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,68 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# | ||
# import os | ||
# import sys | ||
# sys.path.insert(0, os.path.abspath('.')) | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = 'socceraction' | ||
copyright = '2020, DTAI KU Leuven' | ||
author = 'Tom Decroos' | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = '0.2.1' | ||
|
||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [ | ||
'sphinx.ext.napoleon', | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.autosummary', | ||
'sphinx.ext.intersphinx', | ||
'nbsphinx', | ||
"sphinx_rtd_theme", | ||
] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = 'sphinx_rtd_theme' | ||
html_logo = "_static/logo.png" | ||
html_theme_options = { | ||
"collapse_navigation": False, | ||
"logo_only": True, | ||
} | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ['_static'] | ||
html_css_files = ["custom.css"] | ||
|
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,4 @@ | ||
==================== | ||
Changelog | ||
==================== | ||
|
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,102 @@ | ||
Developer guide | ||
================ | ||
|
||
This document lays out guidelines and advice for contributing to this project. | ||
If you're thinking of contributing, please start by reading this document and | ||
getting a feel for how contributing to this project works. If you have any | ||
questions, feel free to reach out to either `Tom Decroos`_, or `Pieter | ||
Robberechts`_, the primary maintainers. | ||
|
||
.. _Tom Decroos: https://tomdecroos.github.io | ||
.. _Pieter Robberechts: https://people.cs.kuleuven.be/~pieter.robberechts/ | ||
|
||
The guide is split into sections based on the type of contribution you're | ||
thinking of making. | ||
|
||
Code Contributions | ||
------------------ | ||
|
||
If you intend to contribute code, do not feel the need to sit on your | ||
contribution until it is perfectly polished and complete. It helps everyone | ||
involved for you to seek feedback as early as you possibly can. Submitting an | ||
early, unfinished version of your contribution for feedback can save you from | ||
putting a lot of work into a contribution that is not suitable for the | ||
project. | ||
|
||
|
||
Steps for Submitting Code | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
When contributing code, you'll want to follow this checklist: | ||
|
||
1. Fork the repository on GitHub. | ||
2. Run the tests to confirm they all pass on your system. If they don't, you'll | ||
need to investigate why they fail. If you're unable to diagnose this | ||
yourself, raise it as a bug report. | ||
3. Write tests that demonstrate your bug or feature. Ensure that they fail. | ||
4. Make your change. | ||
5. Run the entire test suite again, confirming that all tests pass *including | ||
the ones you just added*. | ||
6. Make sure your code follows the code style discussed below. | ||
7. Send a GitHub Pull Request to the main repository's ``master`` branch. | ||
GitHub Pull Requests are the expected method of code collaboration on this | ||
project. | ||
|
||
Code Style | ||
~~~~~~~~~~~~ | ||
|
||
The socceraction codebase uses the `PEP 8`_ code style. In addition, we have | ||
a few guidelines: | ||
|
||
- Line-length can exceed 79 characters, to 100, when convenient. | ||
- Line-length can exceed 100 characters, when doing otherwise would be *terribly* inconvenient. | ||
- Always use single-quoted strings (e.g. ``'#soccer'``), unless a single-quote occurs within the string. | ||
|
||
To ensure all code conforms to this format. You can format the code using | ||
`black`_ prior to committing. | ||
|
||
Docstrings are to follow the `numpydoc guidelines`_. | ||
|
||
.. _PEP 8: https://pep8.org/ | ||
.. _black: https://black.readthedocs.io/en/stable/ | ||
.. _numpydoc guidelines: https://numpydoc.readthedocs.io/en/latest/format.html | ||
|
||
Documentation Contributions | ||
--------------------------- | ||
|
||
Documentation improvements are always welcome! The documentation files live in | ||
the ``docs/`` directory of the codebase. They're written in | ||
`reStructuredText`_, and use `Sphinx`_ to generate the full suite of | ||
documentation. | ||
|
||
When contributing documentation, please do your best to follow the style of the | ||
documentation files. This means a soft-limit of 79 characters wide in your text | ||
files and a semi-formal, yet friendly and approachable, prose style. | ||
|
||
When presenting Python code, use single-quoted strings (``'hello'`` instead of | ||
``"hello"``). | ||
|
||
.. _reStructuredText: http://docutils.sourceforge.net/rst.html | ||
.. _Sphinx: http://sphinx-doc.org/index.html | ||
|
||
|
||
.. _bug-reports: | ||
|
||
Bug Reports | ||
----------- | ||
|
||
Bug reports are hugely important! Before you raise one, though, please check | ||
through the `GitHub issues`_, **both open and closed**, to confirm that the bug | ||
hasn't been reported before. Duplicate bug reports are a huge drain on the time | ||
of other contributors, and should be avoided as much as possible. | ||
|
||
.. _GitHub issues: https://github.com/ML-KULeuven/socceraction/issues | ||
|
||
|
||
Feature Requests | ||
---------------- | ||
|
||
Socceraction is not actively developed. It's primary use is to enable | ||
reproducability of our research. If you believe there is a feature missing, | ||
feel free to raise a feature request, but please do be aware that the | ||
overwhelming likelihood is that your feature request will not be accepted. |
Oops, something went wrong.