Skip to content

Commit

Permalink
Configs are now automatically documented using in source annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed Mar 29, 2024
1 parent a7867ce commit 017b092
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 67 deletions.
8 changes: 6 additions & 2 deletions docs/_templates/autoapi/python/module.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{% import 'macros.rst' as macros %}

{% if not obj.display %}
{% if not "config" in obj.name %}

:orphan:

{% endif %}
{% endif %}
{{ obj.name }}
{{ "=" * obj.name|length }}
Expand Down Expand Up @@ -57,13 +60,14 @@ Submodules
{% set visible_children = obj.children|selectattr("display")|rejectattr("imported")|list %}
{% endif %}
{% if visible_children %}
Overview
--------


{% set visible_classes = visible_children|selectattr("type", "equalto", "class")|list %}
{% set visible_functions = visible_children|selectattr("type", "equalto", "function")|list %}
{% set visible_attributes = visible_children|selectattr("type", "equalto", "data")|list %}
{% if "show-module-summary" in autoapi_options and (visible_classes or visible_functions) %}
Overview
--------
{% block classes scoped %}
{% if visible_classes %}
{{ macros.auto_summary(visible_classes, title="Classes") }}
Expand Down
6 changes: 6 additions & 0 deletions docs/source/config_options.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _configopts:

Configuration Options
#####################

.. include:: ./autoapi/numba_dpex/core/config/index.rst
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Data Parallel Extension for Numba*
programming_model
user_guide/index
autoapi/index
config_options
experimental/index
useful_links

Expand Down
65 changes: 0 additions & 65 deletions docs/source/user_guide/config.rst

This file was deleted.

0 comments on commit 017b092

Please sign in to comment.