Skip to content

Commit

Permalink
Revert "Revert "Merge branch 'feature/documentation-restructuring' in…
Browse files Browse the repository at this point in the history
…to develop""

This reverts commit b8cc3c4.
  • Loading branch information
spjuhel committed Nov 15, 2024
1 parent b8cc3c4 commit de6d4bd
Show file tree
Hide file tree
Showing 24 changed files with 124 additions and 71 deletions.
18 changes: 18 additions & 0 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
:root {

.navbar-brand {
height: 7rem;
max-height: 7rem;
}

}

.bd-page-width {
max-width: 98rem;
}


html {
--pst-font-size-base: 18px;
--pst-header-height: 7rem;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions doc/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Could be nice to have an API section homepage
22 changes: 20 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinx.ext.ifconfig",
"sphinx_design",
"myst_nb",
"sphinx_markdown_tables",
"readthedocs_ext.readthedocs",
Expand Down Expand Up @@ -123,12 +124,26 @@

# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = "sphinx_book_theme"
html_theme = "pydata_sphinx_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# html_theme_options = {}
html_theme_options = {
"header_links_before_dropdown": 7,
"icon_links": [
{
# Label for this link
"name": "GitHub",
# URL where the link will redirect
"url": "https://github.com/CLIMADA-project", # required
# Icon class (if "type": "fontawesome"), or path to local image (if "type": "local")
"icon": "fa-brands fa-square-github",
# The type of image to be used (see below for details)
"type": "fontawesome",
}
],
}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
Expand All @@ -154,6 +169,9 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

html_css_files = [
"css/custom.css",
]
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# html_last_updated_fmt = '%b %d, %Y'
Expand Down
7 changes: 7 additions & 0 deletions doc/development/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
====================
Developer guide
====================

Landing page of the Development section

Introduce the section and links to all Development guides
60 changes: 60 additions & 0 deletions doc/getting-started/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
===================
Getting started
===================

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



Are you already working with conda ? proceed to install CLIMADA by executing the following line in the terminal::

conda create -n climada_env -c conda-forge climada

Each time you will want to work with CLIMADA, simply activate the environnment::

conda activate climada_env

You are good to go!


.. seealso::

You don't have conda installed or you are looking for advaced installation instructions ? Look up our `detailed instructions <http://www.python.org>`__ on CLIMADA installation.


.. dropdown:: How does CLIMADA compute impacts ?
:color: primary
:icon: unlock

And some content!

.. dropdown:: How do you create an Hazard ?
:color: primary
:icon: unlock

And some content!

.. dropdown:: How do we define an exposure ?
:color: primary
:icon: unlock

And some content!

.. dropdown:: How do we model vulnerability ?
:color: primary
:icon: unlock

And some content!

.. dropdown:: Do you want to quantify the uncertainties ?
:color: primary
:icon: unlock

And some content!

.. dropdown:: Compare adaptation measures and assess their cost effectiveness
:color: primary
:icon: unlock

And some content!
74 changes: 8 additions & 66 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,73 +47,15 @@ Jump right in:
with CLIMADA. If not, see https://www.gnu.org/licenses/.


.. toctree::
:hidden:

GitHub Repositories <https://github.com/CLIMADA-project>
CLIMADA Petals <https://climada-petals.readthedocs.io/en/stable/>
Weather and Climate Risks Group <https://wcr.ethz.ch/>


.. toctree::
:maxdepth: 1
:caption: User Guide
:hidden:

guide/Guide_Introduction
Getting Started <guide/Guide_get_started>
guide/install
Running CLIMADA on Euler <guide/Guide_Euler>


.. toctree::
:caption: API Reference
:hidden:

Python Modules <climada/climada>


.. toctree::
:maxdepth: 2
:caption: Tutorials
:hidden:

Overview <tutorial/1_main_climada>
Python Introduction <tutorial/0_intro_python>
Hazard <tutorial/hazard>
Exposures <tutorial/exposures>
Impact <tutorial/impact>
Uncertainty Quantification <tutorial/unsequa>
tutorial/climada_engine_Forecast
tutorial/climada_util_calibrate
Google Earth Engine <tutorial/climada_util_earth_engine>
tutorial/climada_util_api_client


.. toctree::
:maxdepth: 1
:caption: Developer Guide
:hidden:

Development with Git <guide/Guide_Git_Development>
guide/Guide_CLIMADA_Tutorial
guide/Guide_Configuration
guide/Guide_Testing
guide/Guide_continuous_integration_GitHub_actions
guide/Guide_Review
guide/Guide_PythonDos-n-Donts
guide/Guide_Exception_Logging
Performance and Best Practices <guide/Guide_Py_Performance>
CLIMADA Coding Conventions <guide/Guide_CLIMADA_conventions>
Building the Documentation <README>


.. toctree::
:caption: Miscellaneous
:hidden:

README <misc/README>
Getting started <getting-started/index>
User Guide <user-guide/index>
Development <development/index>
API <api/index>
Authors <misc/AUTHORS>
Changelog <misc/CHANGELOG>
List of Authors <misc/AUTHORS>
Contribution Guide <misc/CONTRIBUTING>
misc/citation
Contribute <misc/CONTRIBUTING>
CLIMADA Petals <https://climada-petals.readthedocs.io/en/stable/>
Weather and Climate Risks Group <https://wcr.ethz.ch/>
2 changes: 1 addition & 1 deletion doc/misc/AUTHORS.md
2 changes: 1 addition & 1 deletion doc/misc/CHANGELOG.md
2 changes: 1 addition & 1 deletion doc/misc/CONTRIBUTING.md
7 changes: 7 additions & 0 deletions doc/user-guide/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
===================
User guide
===================

Landing page of User guide

Introduce the tutorials and links to them

0 comments on commit de6d4bd

Please sign in to comment.