Skip to content

Commit 388926a

Browse files
committed
final update
1 parent 8a94e83 commit 388926a

File tree

15 files changed

+40
-24
lines changed

15 files changed

+40
-24
lines changed

docs/_templates/autoapi/index.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
===================================
2-
Scaleway SDK Python Documentations
3-
===================================
1+
API Reference
2+
=============
3+
4+
This page contains auto-generated API reference documentation [#f1]_.
45

56
.. toctree::
6-
:maxdepth: 4
7+
:titlesonly:
8+
9+
{% for page in pages|selectattr("is_top_level_object") %}
10+
{{ page.include_path }}
11+
{% endfor %}
712

8-
autoapi/index
13+
.. [#f1] Created with `sphinx-autoapi <https://github.com/readthedocs/sphinx-autoapi>`_

docs/_templates/autoapi/macros.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
{% macro auto_summary(objs, title='') -%}
33

44
.. list-table:: {{ title }}
5-
:header-rows: 0
6-
:widths: auto
5+
:header-rows: 0
6+
:widths: auto
77

88
{% for obj in objs %}
99
* - obj.name

docs/_templates/autoapi/python/attribut.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% extends "python/data.rst" %}

docs/_templates/autoapi/python/class.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% import 'macros.rst' as macros %}
21
{% if obj.display %}
32
{% if is_own_page %}
43
{{ obj.id }}
@@ -82,7 +81,9 @@ Classes
8281

8382
.. autoapisummary::
8483

85-
{{ macros.auto_summary(visible_classes, title="Classes") }}
84+
{% for klass in visible_classes %}
85+
{{ klass.id }}
86+
{% endfor %}
8687

8788

8889
{% endif %}
@@ -100,4 +101,4 @@ Methods
100101

101102
{% endif %}
102103
{% endif %}
103-
{% endif %}
104+
{% endif %}

docs/_templates/autoapi/python/data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535

3636
{{ obj.docstring|indent(3) }}
3737
{% endif %}
38-
{% endif %}
38+
{% endif %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{% extends "python/class.rst" %}
1+
{% extends "python/class.rst" %}

docs/_templates/autoapi/python/function.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919
{{ obj.docstring|indent(3) }}
2020
{% endif %}
21-
{% endif %}
21+
{% endif %}

docs/_templates/autoapi/python/method.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919
{{ obj.docstring|indent(3) }}
2020
{% endif %}
21-
{% endif %}
21+
{% endif %}

docs/_templates/autoapi/python/module.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% import 'macros.rst' as macros %}
21
{% if obj.display %}
32
{% if is_own_page %}
43
{{ obj.id }}
@@ -92,12 +91,16 @@ Classes
9291
.. toctree::
9392
:hidden:
9493

95-
{{ macros.auto_summary(visible_classes, title="Classes") }}
94+
{% for klass in visible_classes %}
95+
{{ klass.include_path }}
96+
{% endfor %}
9697

9798
{% endif %}
9899
.. autoapisummary::
99100

100-
{{ macros.auto_summary(visible_classes, title="Classes") }}
101+
{% for klass in visible_classes %}
102+
{{ klass.id }}
103+
{% endfor %}
101104
{% endif %}
102105

103106

@@ -150,4 +153,4 @@ Functions
150153
{{ obj_item.render()|indent(3) }}
151154
{% endfor %}
152155
{% endif %}
153-
{% endif %}
156+
{% endif %}

0 commit comments

Comments
 (0)