Skip to content

Commit

Permalink
Add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisyeh96 committed Mar 26, 2024
1 parent dd05501 commit 23ab5e5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ We use the following Sphinx extensions to build our documentation site:
```python
napoleon_custom_sections = [("Returns", "params_style")]
```
- [Furo theme](https://pradyunsg.me/furo/)
## Coding style guide
Expand Down
11 changes: 9 additions & 2 deletions docs/_static/custom.css

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,22 @@

# sphinx.ext.napoleon
# - document multiple return variables
napoleon_custom_sections = [("Returns", "params_style")]
napoleon_custom_sections = [('Returns', 'params_style')]

# myst_parser
# - use $...$ for inline, $$...$$ for display, and \$ for an actual dollar sign
myst_enable_extensions = [
"dollarmath"
'dollarmath'
]

# sphinx.ext.mathjax
# - add common LaTeX macros
mathjax3_config = {
'tex': {
'macros': {
'E': "{\\mathbb{E}}",
'R': "{\\mathbb{R}}",
'Z': "{\\mathbb{Z}}",
'E': '{\\mathbb{E}}',
'R': '{\\mathbb{R}}',
'Z': '{\\mathbb{Z}}',
},
# Use AMS numbering rules and support labeled equations.
# See https://docs.mathjax.org/en/latest/input/tex/eqnumbers.html
Expand All @@ -91,7 +91,9 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

# left-sidebar title
html_title = "SustainGym"
html_title = 'SustainGym'
html_logo = 'logo.png'
html_favicon = 'favicon.ico'

# include custom CSS
html_static_path = ['_static']
Expand All @@ -104,7 +106,7 @@
# add edit button
# see https://pradyunsg.me/furo/customisation/edit-button/
html_theme_options = {
"source_repository": "https://github.com/chrisyeh96/sustaingym/",
"source_branch": "main",
"source_directory": "docs/",
'source_repository': 'https://github.com/chrisyeh96/sustaingym/',
'source_branch': 'main',
'source_directory': 'docs/',
}
Binary file added docs/favicon.ico
Binary file not shown.
Binary file added docs/logo.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 docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
furo==2023.9.10
furo==2024.01.29
myst-parser==2.0.0
sphinx==7.2.5
sphinx==7.2.6
sphinx-autoapi==3.0.0
sphinx-copybutton==0.5.2

0 comments on commit 23ab5e5

Please sign in to comment.