Skip to content

Commit 12fc1e5

Browse files
committed
adding layout.html template
1 parent 0ea6888 commit 12fc1e5

File tree

3 files changed

+32
-36
lines changed

3 files changed

+32
-36
lines changed

docs/source/_contributing.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributing to PINA
44
First off, thanks for taking the time to contribute to **PINA**! 🎉 Your help makes the project better for everyone. This document outlines the process for contributing, reporting issues, suggesting features, and submitting pull requests.
55

66
Table of Contents
7-
=================
7+
------------------------
88

99
1. `How to Contribute`_
1010
2. `Reporting Bugs`_
@@ -14,7 +14,7 @@ Table of Contents
1414
6. `Community Standards`_
1515

1616
How to Contribute
17-
=================
17+
------------------------
1818

1919
You can contribute in several ways:
2020

@@ -26,7 +26,7 @@ You can contribute in several ways:
2626
We encourage all contributions, big or small!
2727

2828
Reporting Bugs
29-
==============
29+
------------------------
3030

3131
If you find a bug, please open an `issue <https://github.com/mathLab/PINA/issues>`_ and include:
3232

@@ -38,7 +38,7 @@ If you find a bug, please open an `issue <https://github.com/mathLab/PINA/issues
3838
- Environment info (OS, Python version, dependencies, etc.)
3939

4040
Suggesting Enhancements
41-
=======================
41+
------------------------
4242

4343
We welcome new ideas! If you have an idea to improve PINA:
4444

@@ -50,7 +50,7 @@ We welcome new ideas! If you have an idea to improve PINA:
5050
3. If you are not sure about (something of) the enhancement, we suggest opening a discussion to collaborate on it with the PINA community.
5151

5252
Pull Request Process
53-
====================
53+
------------------------
5454

5555
Before submitting a PR:
5656

@@ -87,14 +87,14 @@ Pull Request Checklist
8787
4. Pull request is linked to an open issue (if applicable)
8888

8989
Code Style & Guidelines
90-
=======================
90+
------------------------
9191

9292
- Follow PEP8 for Python code.
9393
- Use descriptive commit messages (e.g. ``Fix parser crash on empty input``).
9494
- Write clear docstrings for public classes, methods, and functions.
9595
- Keep functions small and focused; do one thing and do it well.
9696

9797
Community Standards
98-
===================
98+
------------------------
9999

100100
By participating in this project, you agree to abide by our Code of Conduct. We are committed to maintaining a welcoming and inclusive community.

docs/source/_templates/layout.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% extends "!layout.html" %}
2+
3+
{%- block footer %}
4+
<footer class="footer" style="border-top: 1px solid #ccc; padding-top: 10px">
5+
<div class="container">
6+
<div id="credits" style="width: 50%; float: left">
7+
<p>
8+
{% trans copyright=copyright|e %}&#169; Copyright {{ copyright }}, <a
9+
href="https://github.com/mathLab/PINA/">PINA Developers</a>.{% endtrans %}<br />
10+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> and the <a
11+
href="https://pydata-sphinx-theme.readthedocs.io/en/stable/">PyData Theme</a>.<br />
12+
</p>
13+
</div>
14+
</div>
15+
</div>
16+
</footer>
17+
{%- endblock %}

docs/source/conf.py

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,19 @@
1414

1515
import sys
1616
import os
17-
import sphinx_rtd_theme
17+
import time
1818
import importlib.metadata
1919

2020

2121
# -- Project information -----------------------------------------------------
2222
_DISTRIBUTION_METADATA = importlib.metadata.metadata("pina-mathlab")
2323
project = _DISTRIBUTION_METADATA["Name"]
24-
copyright = _DISTRIBUTION_METADATA["License-File"]
24+
copyright = f'2021-{time.strftime("%Y")}'
2525
author = "PINA Contributors"
2626
version = _DISTRIBUTION_METADATA["Version"]
2727

2828

29-
sys.path.insert(
30-
0, os.path.abspath("../sphinx_extensions")
31-
)
29+
sys.path.insert(0, os.path.abspath("../sphinx_extensions"))
3230

3331
# -- General configuration ------------------------------------------------
3432

@@ -54,7 +52,7 @@
5452
exclude_patterns = ["build", "docstrings", "nextgen", "Thumbs.db", ".DS_Store"]
5553

5654
# The reST default role (used for this markup: `text`) to use for all documents.
57-
# default_role = 'literal'
55+
default_role = "literal"
5856

5957
# Generate the API documentation when building
6058
autosummary_generate = True
@@ -71,21 +69,6 @@
7169
),
7270
}
7371

74-
# nitpicky = True
75-
# nitpick_ignore = [
76-
# ("py:meth", "lightning.pytorch.core.module.LightningModule.log"),
77-
# ("py:meth", "lightning.pytorch.core.module.LightningModule.log_dict"),
78-
# ("py:exc", "MisconfigurationException"),
79-
# ("py:func", "torch.inference_mode"),
80-
# ("py:func", "torch.no_grad"),
81-
# ("py:class", "torch.utils.data.DistributedSampler"),
82-
# ("py:class", "pina.model.layers.convolution.BaseContinuousConv"),
83-
# ("py:class", "Module"),
84-
# ("py:class", "torch.nn.modules.loss._Loss"), # TO FIX
85-
# ("py:class", "torch.optim.LRScheduler"), # TO FIX
86-
# ]
87-
88-
8972
# Add any paths that contain templates here, relative to this directory.
9073
templates_path = ["_templates"]
9174

@@ -148,13 +131,6 @@
148131
# Theme options are theme-specific and customize the look and feel of a theme
149132
# further. For a list of options available for each theme, see the
150133
# documentation.
151-
# html_theme_options = {}
152-
153-
# Add any paths that contain custom themes here, relative to this directory.
154-
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
155-
156-
# The name of an image file (relative to this directory) to place at the top
157-
# of the sidebar.
158134
html_logo = "index_files/PINA_logo.png"
159135
html_theme_options = {
160136
"icon_links": [
@@ -183,6 +159,10 @@
183159
"header_links_before_dropdown": 8,
184160
}
185161

162+
html_context = {
163+
"default_mode": "light",
164+
}
165+
186166
# If not ''i, a 'Last updated on:' timestamp is inserted at every page bottom,
187167
# using the given strftime format.
188168
html_last_updated_fmt = "%b %d, %Y"
@@ -256,7 +236,6 @@
256236
"PINA Documentation",
257237
author,
258238
"pina",
259-
"One line description of project.",
260239
"Miscellaneous",
261240
),
262241
]

0 commit comments

Comments
 (0)