Skip to content

Commit 900e90f

Browse files
Replaced content in template files
Replaced the content in the source-lit template files with the content that exists in the source-app and source-pytorch template folders.
1 parent 489bac7 commit 900e90f

File tree

5 files changed

+90
-5
lines changed

5 files changed

+90
-5
lines changed
Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
../../../source-pytorch/_templates/autosummary/module.rst
1+
{{ name | escape | underline }}
2+
3+
.. currentmodule:: {{ fullname }}
4+
5+
{% block functions %}
6+
{% if functions %}
7+
.. rubric:: Functions
8+
9+
.. autosummary::
10+
:nosignatures:
11+
{% for item in functions %}
12+
{{ item }}
13+
{%- endfor %}
14+
{% endif %}
15+
{% endblock %}
16+
17+
{% block classes %}
18+
{% if classes %}
19+
.. rubric:: Classes
20+
21+
.. autosummary::
22+
:nosignatures:
23+
{% for item in classes %}
24+
{{ item }}
25+
{%- endfor %}
26+
{% endif %}
27+
{% endblock %}
28+
29+
{% block exceptions %}
30+
{% if exceptions %}
31+
.. rubric:: Exceptions
32+
33+
.. autosummary::
34+
:nosignatures:
35+
{% for item in exceptions %}
36+
{{ item }}
37+
{%- endfor %}
38+
{% endif %}
39+
{% endblock %}
40+
41+
.. automodule:: {{ fullname }}
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
../../source-app/_templates/classtemplate.rst
1+
.. role:: hidden
2+
:class: hidden-section
3+
.. currentmodule:: {{ module }}
4+
5+
6+
{{ name | underline }}
7+
8+
.. autoclass:: {{ name }}
9+
:members:
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
../../source-app/_templates/classtemplate_no_index.rst
1+
:orphan:
2+
3+
.. role:: hidden
4+
:class: hidden-section
5+
.. currentmodule:: {{ module }}
6+
7+
8+
{{ name | underline }}
9+
10+
.. autoclass:: {{ name }}
11+
:members:
12+
:noindex:
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
../../source-app/_templates/layout.html
1+
{% extends "!layout.html" %}
2+
<link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html" />
3+
4+
{% block footer %}
5+
{{ super() }}
6+
<script script type="text/javascript">
7+
var collapsedSections = ['App Building Skills', 'Practical Examples', 'Common Workflows', 'Core API Reference', 'Addons API Reference', 'Glossary'];
8+
</script>
9+
10+
{% endblock %}
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
../../source-app/_templates/theme_variables.jinja
1+
{%- set external_urls = {
2+
'github': 'https://github.com/Lightning-AI/lightning',
3+
'github_issues': 'https://github.com/Lightning-AI/lightning/issues',
4+
'contributing': 'https://github.com/Lightning-AI/lightning/blob/master/.github/CONTRIBUTING.md',
5+
'governance': 'https://github.com/Lightning-AI/lightning/blob/master/docs/source-pytorch/governance.rst',
6+
'docs': 'https://lightning.rtfd.io/en/latest',
7+
'twitter': 'https://twitter.com/PyTorchLightnin',
8+
'discuss': 'https://pytorch-lightning.slack.com',
9+
'tutorials': 'https://pt-lightning.readthedocs.io/en/latest/#tutorials',
10+
'previous_pytorch_versions': 'https://pt-lightning.rtfd.io/en/latest/',
11+
'home': 'https://lightning.ai/',
12+
'get_started': 'https://pt-lightning.readthedocs.io/en/latest/introduction_guide.html',
13+
'features': 'https://pt-lightning.rtfd.io/en/latest/',
14+
'blog': 'https://www.pytorchlightning.ai/blog',
15+
'resources': 'https://pt-lightning.readthedocs.io/en/latest/#community-examples',
16+
'support': 'https://pt-lightning.rtfd.io/en/latest/',
17+
}
18+
-%}

0 commit comments

Comments
 (0)