From c354777a36e384232c2a118662f263afb89c2ae7 Mon Sep 17 00:00:00 2001 From: Stephannie Jimenez Date: Wed, 23 Feb 2022 11:58:47 -0500 Subject: [PATCH] Fix style issues in rendered page --- spec/API_specification/array_object.rst | 2 ++ spec/API_specification/constants.rst | 1 + spec/API_specification/searching_functions.rst | 1 + spec/API_specification/set_functions.rst | 1 + spec/API_specification/statistical_functions.rst | 1 + spec/API_specification/utility_functions.rst | 1 + spec/_templates/attribute.rst | 5 +++++ spec/_templates/property.rst | 5 +++++ 8 files changed, 17 insertions(+) create mode 100644 spec/_templates/attribute.rst create mode 100644 spec/_templates/property.rst diff --git a/spec/API_specification/array_object.rst b/spec/API_specification/array_object.rst index 9c54990f7..55a8ff0ab 100644 --- a/spec/API_specification/array_object.rst +++ b/spec/API_specification/array_object.rst @@ -256,6 +256,7 @@ Attributes .. autosummary:: :toctree: generated + :template: property.rst array.dtype array.device @@ -275,6 +276,7 @@ Methods .. autosummary:: :toctree: generated + :template: property.rst array.__abs__ array.__add__ diff --git a/spec/API_specification/constants.rst b/spec/API_specification/constants.rst index eab159c9d..aa278a360 100644 --- a/spec/API_specification/constants.rst +++ b/spec/API_specification/constants.rst @@ -17,6 +17,7 @@ Objects in API .. autosummary:: :toctree: generated + :template: attribute.rst e inf diff --git a/spec/API_specification/searching_functions.rst b/spec/API_specification/searching_functions.rst index 18289466a..b8a2b39a5 100644 --- a/spec/API_specification/searching_functions.rst +++ b/spec/API_specification/searching_functions.rst @@ -23,6 +23,7 @@ Objects in API .. autosummary:: :toctree: generated + :template: method.rst argmax argmin diff --git a/spec/API_specification/set_functions.rst b/spec/API_specification/set_functions.rst index 1f287fece..4ba2ad424 100644 --- a/spec/API_specification/set_functions.rst +++ b/spec/API_specification/set_functions.rst @@ -19,6 +19,7 @@ Objects in API .. autosummary:: :toctree: generated + :template: method.rst unique_all unique_counts diff --git a/spec/API_specification/statistical_functions.rst b/spec/API_specification/statistical_functions.rst index 68e6830e2..d87f5d25a 100644 --- a/spec/API_specification/statistical_functions.rst +++ b/spec/API_specification/statistical_functions.rst @@ -22,6 +22,7 @@ Objects in API .. autosummary:: :toctree: generated + :template: method.rst max mean diff --git a/spec/API_specification/utility_functions.rst b/spec/API_specification/utility_functions.rst index 2a9f411bf..887819194 100644 --- a/spec/API_specification/utility_functions.rst +++ b/spec/API_specification/utility_functions.rst @@ -22,6 +22,7 @@ Objects in API .. autosummary:: :toctree: generated + :template: method.rst all any diff --git a/spec/_templates/attribute.rst b/spec/_templates/attribute.rst new file mode 100644 index 000000000..30d21295b --- /dev/null +++ b/spec/_templates/attribute.rst @@ -0,0 +1,5 @@ +.. currentmodule:: {{ module }} + +{{ name.split('.')[-1] | underline }} + +.. autodata:: {{ name }} diff --git a/spec/_templates/property.rst b/spec/_templates/property.rst new file mode 100644 index 000000000..baf31cea3 --- /dev/null +++ b/spec/_templates/property.rst @@ -0,0 +1,5 @@ +.. currentmodule:: {{ module }} + +{{ name.split('.')[-1] | underline }} + +.. auto{{ objtype }}:: {{ objname }} \ No newline at end of file