Skip to content

Commit 337cf8e

Browse files
committed
Initial new structure
1 parent 242f1f3 commit 337cf8e

24 files changed

+71
-71
lines changed

doc/_static/css/custom.css

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:root {
2+
3+
.navbar-brand {
4+
height: 7rem;
5+
max-height: 7rem;
6+
}
7+
8+
}
9+
10+
.bd-page-width {
11+
max-width: 98rem;
12+
}
13+
14+
15+
html {
16+
--pst-font-size-base: 18px;
17+
--pst-header-height: 7rem;
18+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

doc/api/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Could be nice to have an API section homepage

doc/conf.py

+19-2
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,26 @@
123123

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

128128
# Theme options are theme-specific and customize the look and feel of a theme
129129
# further. For a list of options available for each theme, see the
130130
# documentation.
131-
# html_theme_options = {}
131+
html_theme_options = {
132+
"header_links_before_dropdown": 7,
133+
"icon_links": [
134+
{
135+
# Label for this link
136+
"name": "GitHub",
137+
# URL where the link will redirect
138+
"url": "https://github.com/CLIMADA-project", # required
139+
# Icon class (if "type": "fontawesome"), or path to local image (if "type": "local")
140+
"icon": "fa-brands fa-square-github",
141+
# The type of image to be used (see below for details)
142+
"type": "fontawesome",
143+
}
144+
],
145+
}
132146

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

171+
html_css_files = [
172+
"css/custom.css",
173+
]
157174
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158175
# using the given strftime format.
159176
# html_last_updated_fmt = '%b %d, %Y'

doc/development/index.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
====================
2+
Developer guide
3+
====================
4+
5+
Landing page of the Development section
6+
7+
Introduce the section and links to all Development guides

doc/getting-started/index.rst

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
===================
2+
Getting started
3+
===================
4+
5+
Landing page of Getting Started section
6+
7+
8+
Should give the very brief info on how to install and links towards the slightly more detailled pages

doc/index.rst

+8-66
Original file line numberDiff line numberDiff line change
@@ -47,73 +47,15 @@ Jump right in:
4747
with CLIMADA. If not, see https://www.gnu.org/licenses/.
4848

4949

50-
.. toctree::
51-
:hidden:
52-
53-
GitHub Repositories <https://github.com/CLIMADA-project>
54-
CLIMADA Petals <https://climada-petals.readthedocs.io/en/stable/>
55-
Weather and Climate Risks Group <https://wcr.ethz.ch/>
56-
57-
5850
.. toctree::
5951
:maxdepth: 1
60-
:caption: User Guide
61-
:hidden:
62-
63-
guide/Guide_Introduction
64-
Getting Started <guide/Guide_get_started>
65-
guide/install
66-
Running CLIMADA on Euler <guide/Guide_Euler>
67-
68-
69-
.. toctree::
70-
:caption: API Reference
71-
:hidden:
72-
73-
Python Modules <climada/climada>
74-
7552

76-
.. toctree::
77-
:maxdepth: 2
78-
:caption: Tutorials
79-
:hidden:
80-
81-
Overview <tutorial/1_main_climada>
82-
Python Introduction <tutorial/0_intro_python>
83-
Hazard <tutorial/hazard>
84-
Exposures <tutorial/exposures>
85-
Impact <tutorial/impact>
86-
Uncertainty Quantification <tutorial/unsequa>
87-
tutorial/climada_engine_Forecast
88-
tutorial/climada_util_calibrate
89-
Google Earth Engine <tutorial/climada_util_earth_engine>
90-
tutorial/climada_util_api_client
91-
92-
93-
.. toctree::
94-
:maxdepth: 1
95-
:caption: Developer Guide
96-
:hidden:
97-
98-
Development with Git <guide/Guide_Git_Development>
99-
guide/Guide_CLIMADA_Tutorial
100-
guide/Guide_Configuration
101-
guide/Guide_Testing
102-
guide/Guide_continuous_integration_GitHub_actions
103-
guide/Guide_Review
104-
guide/Guide_PythonDos-n-Donts
105-
guide/Guide_Exception_Logging
106-
Performance and Best Practices <guide/Guide_Py_Performance>
107-
CLIMADA Coding Conventions <guide/Guide_CLIMADA_conventions>
108-
Building the Documentation <README>
109-
110-
111-
.. toctree::
112-
:caption: Miscellaneous
113-
:hidden:
114-
115-
README <misc/README>
53+
Getting started <getting-started/index>
54+
User Guide <user-guide/index>
55+
Development <development/index>
56+
API <api/index>
57+
Authors <misc/AUTHORS>
11658
Changelog <misc/CHANGELOG>
117-
List of Authors <misc/AUTHORS>
118-
Contribution Guide <misc/CONTRIBUTING>
119-
misc/citation
59+
Contribute <misc/CONTRIBUTING>
60+
CLIMADA Petals <https://climada-petals.readthedocs.io/en/stable/>
61+
Weather and Climate Risks Group <https://wcr.ethz.ch/>

doc/misc/AUTHORS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../AUTHORS.md
1+
../../AUTHORS.md

doc/misc/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../CHANGELOG.md
1+
../../CHANGELOG.md

doc/misc/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../CONTRIBUTING.md
1+
../../CONTRIBUTING.md

doc/user-guide/index.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
===================
2+
User guide
3+
===================
4+
5+
Landing page of User guide
6+
7+
Introduce the tutorials and links to them

0 commit comments

Comments
 (0)