Skip to content

Commit

Permalink
Restructure API Reference content to improve left sidebar (#1598)
Browse files Browse the repository at this point in the history
* split pv_modeling.rst into a directory

The left sidebar in pydata-sphinx-theme reflects document hierarchy, without considering in-page headers.  To get those headers into the sidebar, we have to rework the document hierarchy such that the former in-page headers are now reflected in the document structure.  Not ideal, but it's the only way I've found so far.

* split up effects_on_output and irradiance; use top-level toctree folder

* add dropped entries from merge

* put back ADR entries

* put back astm_e1036
  • Loading branch information
kandersolar authored Dec 20, 2022
1 parent f5fc123 commit 8006813
Show file tree
Hide file tree
Showing 25 changed files with 382 additions and 331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pvlib/spa_c_files/spa_tester.c

# generated documentation
docs/sphinx/source/reference/generated
docs/sphinx/source/reference/*/generated
docs/sphinx/source/savefig
docs/sphinx/source/gallery

Expand Down
54 changes: 0 additions & 54 deletions docs/sphinx/source/reference/effects_on_pv_system_output.rst

This file was deleted.

13 changes: 13 additions & 0 deletions docs/sphinx/source/reference/effects_on_pv_system_output/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. currentmodule:: pvlib

Effects on PV System Output
===========================

.. toctree::
:maxdepth: 2

loss-models
snow
soiling
shading
spectrum
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. currentmodule:: pvlib

Loss models
-----------

.. autosummary::
:toctree: ../generated/

pvsystem.combine_loss_factors
pvsystem.dc_ohms_from_percent
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. currentmodule:: pvlib

Shading
-------

.. autosummary::
:toctree: ../generated/

shading.masking_angle
shading.masking_angle_passias
shading.sky_diffuse_passias
12 changes: 12 additions & 0 deletions docs/sphinx/source/reference/effects_on_pv_system_output/snow.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. currentmodule:: pvlib

Snow
----

.. autosummary::
:toctree: ../generated/

snow.coverage_nrel
snow.fully_covered_nrel
snow.dc_loss_nrel
snow.loss_townsend
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. currentmodule:: pvlib

Soiling
-------

.. autosummary::
:toctree: ../generated/

soiling.hsu
soiling.kimber
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. currentmodule:: pvlib

Spectrum
--------

.. autosummary::
:toctree: ../generated/

spectrum.spectrl2
spectrum.get_example_spectral_response
spectrum.get_am15g
spectrum.calc_spectral_mismatch_field
6 changes: 3 additions & 3 deletions docs/sphinx/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ API reference
solarposition
clearsky
airmass_atmospheric
irradiance
pv_modeling
effects_on_pv_system_output
irradiance/index
pv_modeling/index
effects_on_pv_system_output/index
tracking
iotools
forecasting
Expand Down
71 changes: 0 additions & 71 deletions docs/sphinx/source/reference/irradiance.rst

This file was deleted.

12 changes: 12 additions & 0 deletions docs/sphinx/source/reference/irradiance/class-methods.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. currentmodule:: pvlib

Methods for irradiance calculations
-----------------------------------

.. autosummary::
:toctree: ../generated/

pvsystem.PVSystem.get_irradiance
pvsystem.PVSystem.get_aoi
pvsystem.PVSystem.get_iam
tracking.SingleAxisTracker.get_irradiance
11 changes: 11 additions & 0 deletions docs/sphinx/source/reference/irradiance/clearness-index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. currentmodule:: pvlib

Clearness index models
----------------------

.. autosummary::
:toctree: ../generated/

irradiance.clearness_index
irradiance.clearness_index_zenith_independent
irradiance.clearsky_index
17 changes: 17 additions & 0 deletions docs/sphinx/source/reference/irradiance/components.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. currentmodule:: pvlib

Decomposing and combining irradiance
------------------------------------

.. autosummary::
:toctree: ../generated/

irradiance.get_extra_radiation
irradiance.aoi
irradiance.aoi_projection
irradiance.poa_horizontal_ratio
irradiance.beam_component
irradiance.poa_components
irradiance.get_ground_diffuse
irradiance.dni
irradiance.complete_irradiance
16 changes: 16 additions & 0 deletions docs/sphinx/source/reference/irradiance/decomposition.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. currentmodule:: pvlib

.. _dniestmodels:

DNI estimation models
---------------------

.. autosummary::
:toctree: ../generated/

irradiance.disc
irradiance.dirint
irradiance.dirindex
irradiance.erbs
irradiance.campbell_norman
irradiance.gti_dirint
13 changes: 13 additions & 0 deletions docs/sphinx/source/reference/irradiance/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. currentmodule:: pvlib

Irradiance
==========

.. toctree::
:maxdepth: 2

class-methods
components
transposition
decomposition
clearness-index
16 changes: 16 additions & 0 deletions docs/sphinx/source/reference/irradiance/transposition.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. currentmodule:: pvlib

Transposition models
--------------------

.. autosummary::
:toctree: ../generated/

irradiance.get_total_irradiance
irradiance.get_sky_diffuse
irradiance.isotropic
irradiance.perez
irradiance.haydavies
irradiance.klucher
irradiance.reindl
irradiance.king
Loading

0 comments on commit 8006813

Please sign in to comment.