Skip to content

Commit

Permalink
Improvinf the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine TAVANT committed Jun 23, 2024
1 parent 6b5d18c commit 9c57cee
Show file tree
Hide file tree
Showing 12 changed files with 232 additions and 6 deletions.
26 changes: 26 additions & 0 deletions doc/_static/index_api.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions doc/_static/index_contribute.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions doc/_static/index_getting_started.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions doc/_static/index_user_guide.svg
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 doc/_static/overview_4types_of_docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

html_theme = "pydata_sphinx_theme"
html_theme_options = {
"gitlab_url": "https://gitlab.ecoco2.com/recherche/computation_toolbox",
"github_url": "https://github.com/GreenForecast-Squad/energetic-stress-production",
"announcement": f"<p>Last version is v{version}</p>",
}
html_static_path = ['_static']
Expand All @@ -51,7 +51,7 @@
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = False

html_title = f"{project} v{version} Manual"
html_title = f"{project} v{version}"


# -- nbsphinx extension configuration ------------------------------------------
Expand Down
11 changes: 11 additions & 0 deletions doc/developer_guide/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
How to contribute
=================

Want to contribute ? Have an idea or special need ? Head to the
`issue tracker`_ to get a feeling of what is planned and, better `open a new issue`_
to explain what you want or need to do.



.. _issue tracker: https://github.com/GreenForecast-Squad/energetic-stress-production/issues
.. _open a new issue: https://github.com/GreenForecast-Squad/energetic-stress-production/issues/new
15 changes: 15 additions & 0 deletions doc/getting_started/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Getting Started
===============

Installation
------------


Use Hatch to install the package.


Examples of use
===============

See the tutorials in the
:doc:`../user_guide/index` !
85 changes: 83 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,92 @@
Welcome to Energetic Stress Production's documentation!
=======================================================


Welcome to the documentation of the Energetic Stress Production project.

The objective of this project is to predict the French Electricity Mix for the next few days.

.. grid:: 1 2 2 2

.. grid-item-card:: Getting started
:text-align: center

.. image:: /_static/index_getting_started.svg
:width: 100px

Getting started
^^^^^^^^^^^^^^^
Check out the getting started guides. They contain an
introduction to the main concepts and links to additional tutorials.
+++

.. button-ref:: getting_started/index
:expand:
:color: secondary
:click-parent:


.. grid-item-card:: User guide
:text-align: center

.. image:: /_static/index_user_guide.svg
:width: 100px

User guide
^^^^^^^^^^
The user guide provides in-depth information on the
key concepts with useful background information and explanation.
+++

.. button-ref:: user_guide/index
:expand:
:color: secondary
:click-parent:

.. grid-item-card:: API reference
:text-align: center

.. image:: /_static/index_api.svg
:width: 100px

API reference
^^^^^^^^^^^^^
The reference guide contains a detailed description of
the API. The reference describes how the methods work and which parameters can
be used. It assumes that you have an understanding of the key concepts.
+++

.. button-ref:: src/modules
:expand:
:color: secondary
:click-parent:

.. grid-item-card:: Developer guide
:text-align: center

.. image:: /_static/index_contribute.svg
:width: 100px

Developer guide
^^^^^^^^^^^^^^^
Saw a typo in the documentation? Want to improve
existing functionalities? The contributing guidelines will guide
you through the process of improving the project.
+++

.. button-ref:: developer_guide/contributing
:expand:
:color: secondary
:click-parent:


.. toctree::
:maxdepth: 2
:maxdepth: 1
:caption: Contents:


getting_started/index
user_guide/index
developer_guide/contributing
src/modules

Indices and tables
Expand Down
4 changes: 2 additions & 2 deletions doc/src/modules.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
energy_forecast
===============
API reference
=============

.. toctree::
:maxdepth: 4
Expand Down
13 changes: 13 additions & 0 deletions doc/user_guide/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
User Guide
==========
Interested in learning more about the project ?

Check the notebooks below to get started
on specific topics, or head over to the :doc:`../src/modules` for a complete overview
of the package.

.. toctree::
:maxdepth: 3
:caption: Common use cases

notebooks/index
23 changes: 23 additions & 0 deletions doc/user_guide/notebooks/index.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Example notebook"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 9c57cee

Please sign in to comment.