Skip to content

Commit 017b092

Browse files
author
Diptorup Deb
committed
Configs are now automatically documented using in source annotations
1 parent a7867ce commit 017b092

File tree

4 files changed

+13
-67
lines changed

4 files changed

+13
-67
lines changed

docs/_templates/autoapi/python/module.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{% import 'macros.rst' as macros %}
22

33
{% if not obj.display %}
4+
{% if not "config" in obj.name %}
5+
46
:orphan:
57

8+
{% endif %}
69
{% endif %}
710
{{ obj.name }}
811
{{ "=" * obj.name|length }}
@@ -57,13 +60,14 @@ Submodules
5760
{% set visible_children = obj.children|selectattr("display")|rejectattr("imported")|list %}
5861
{% endif %}
5962
{% if visible_children %}
60-
Overview
61-
--------
63+
6264

6365
{% set visible_classes = visible_children|selectattr("type", "equalto", "class")|list %}
6466
{% set visible_functions = visible_children|selectattr("type", "equalto", "function")|list %}
6567
{% set visible_attributes = visible_children|selectattr("type", "equalto", "data")|list %}
6668
{% if "show-module-summary" in autoapi_options and (visible_classes or visible_functions) %}
69+
Overview
70+
--------
6771
{% block classes scoped %}
6872
{% if visible_classes %}
6973
{{ macros.auto_summary(visible_classes, title="Classes") }}

docs/source/config_options.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. _configopts:
2+
3+
Configuration Options
4+
#####################
5+
6+
.. include:: ./autoapi/numba_dpex/core/config/index.rst

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Data Parallel Extension for Numba*
4848
programming_model
4949
user_guide/index
5050
autoapi/index
51+
config_options
5152
experimental/index
5253
useful_links
5354

docs/source/user_guide/config.rst

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)