Skip to content

Commit

Permalink
new documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed Jul 21, 2023
1 parent 18e34ae commit 46510fb
Show file tree
Hide file tree
Showing 49 changed files with 1,554 additions and 326 deletions.
25 changes: 20 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
image: latest
os: ubuntu-22.04
tools:
python: "3.10"

python:
version: 3.8
sphinx:
configuration: docs/conf.py

conda:
file: docs/environment.yml
formats:
- epub
- pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
26 changes: 3 additions & 23 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,8 @@ older python versions.

Coding style
------------
Stick as much as possible to
`PEP8 <https://www.python.org/dev/peps/pep-0008/>`__ for general
guidelines in term of coding conventions and to
`PEP257 <https://www.python.org/dev/peps/pep-0257/>`__ for typical
docstring conventions. You can also have a look to `Python
anti-pattern <https://docs.quantifiedcode.com/python-anti-patterns/>`__.

Main guidelines from PEP8
-------------------------
PEP8 coding conventions are:

- Use 4 spaces per indentation level.
- Limit all lines to a maximum of 100 characters.
- Separate top-level function and class definitions with two blank
lines.
- Make sure that all variables are used.
- Imports should be grouped in the following order:

- Standard library imports.
- Related third party imports.
- Local application/library specific imports.
- A blank line between each group of imports.
The pyrfu package uses the `Black code style <https://black.readthedocs
.io/en/stable/the_black_code_style/current_style.html>`__ .

Use Linters
------------
Expand All @@ -65,7 +45,7 @@ or `there <https://realpython.com/python-code-quality/>`__.
Also, a lot of features can also be provided natively or by installing
plugins with your IDE (PyCharm, Spyder, Eclipse, etc.).

To be accepted to ``pyrfu`` every new code as to get a pylint score higher than 9/10.
To be accepted to ``pyrfu`` every new code as to get a pylint score of 10/10.

Documentation
-------------
Expand Down
7 changes: 4 additions & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
SPHINXBUILD = python -msphinx
SPHINXPROJ = speasy
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
Expand All @@ -17,4 +18,4 @@ help:
# 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)" $(ALLSPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/example_mms_b_e_j_nb_thumbnail.png
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/example_mms_eis_nb_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added docs/_static/quick-overview_nb_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 46510fb

Please sign in to comment.