Skip to content

Commit

Permalink
Initial restructuring of API docs (#54)
Browse files Browse the repository at this point in the history
Also appropriately marks some symbols that
shouldn't be accessed externally as private.

Initial steps towards to addressing #33
  • Loading branch information
ncoghlan authored Oct 30, 2024
1 parent ff058d1 commit fc68c3b
Show file tree
Hide file tree
Showing 45 changed files with 162 additions and 173 deletions.
12 changes: 12 additions & 0 deletions docs/api/cli/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
venvstacks.cli
==============

.. warning::

The Python API is *NOT YET STABLE*.
Function, class, and method names may change between releases
without any deprecation period.

.. automodule:: venvstacks.cli

.. autofunction:: main
9 changes: 4 additions & 5 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ Python API

.. rubric:: Modules

.. autosummary::
:toctree:
.. toctree::

cli
pack_venv
stacks
cli/index
pack_venv/index
stacks/index
15 changes: 15 additions & 0 deletions docs/api/pack_venv/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
venvstacks.pack\_venv
=====================

.. warning::

The Python API is *NOT YET STABLE*.
Function, class, and method names may change between releases
without any deprecation period.

.. automodule:: venvstacks.pack_venv

.. autofunction:: convert_symlinks
.. autofunction:: create_archive
.. autofunction:: export_venv
.. autofunction:: get_archive_path
87 changes: 68 additions & 19 deletions docs/api/venvstacks.stacks.rst → docs/api/stacks/index.rst
Original file line number Diff line number Diff line change
@@ -1,46 +1,95 @@
venvstacks.stacks
=================

.. warning::

The Python API is *NOT YET STABLE*.
Function, class, and method names may change between releases
without any deprecation period.

.. automodule:: venvstacks.stacks

.. rubric:: High Level Interface

.. rubric:: Classes
.. autosummary::
:toctree:
:nosignatures:

StackSpec
BuildEnvironment

.. rubric:: Layer Metadata Components

.. autosummary::
:toctree:
:nosignatures:

LayerCategories
LayerSpecMetadata
LayerVariants
TargetPlatform
TargetPlatforms

.. rubric:: Archive Publishing Results

.. autosummary::
:toctree:
:nosignatures:

ApplicationEnv
ApplicationSpec
ArchiveBuildMetadata
ArchiveBuildRequest
ArchiveHashes
ArchiveMetadata
BuildEnvironment
PublishedArchivePaths
StackPublishingRequest
StackPublishingResult

.. rubric:: Layer Export Results

.. autosummary::
:toctree:
:nosignatures:

EnvironmentExportRequest
EnvironmentLock
EnvironmentLockMetadata
ExportMetadata
ExportedEnvironmentPaths
FrameworkEnv
StackExportRequest

.. rubric:: Layer Specifications

.. autosummary::
:toctree:
:nosignatures:

RuntimeSpec
FrameworkSpec
PackageIndexConfig
LayerCategories
LayerSpecMetadata
LayerVariants
PublishedArchivePaths
ApplicationSpec

.. rubric:: Layer Build Environments

.. autosummary::
:toctree:
:nosignatures:

ApplicationEnv
FrameworkEnv
RuntimeEnv
RuntimeSpec
StackExportRequest
StackPublishingRequest
StackPublishingResult
StackSpec
TargetPlatform
TargetPlatforms
EnvironmentLock
EnvironmentLockMetadata

.. rubric:: Build Process Configuration

.. autosummary::
:toctree:
:nosignatures:

PackageIndexConfig

.. rubric:: Exceptions

.. autosummary::
:toctree:
:nosignatures:

BuildEnvError
EnvStackError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.ApplicationEnv

.. autoclass:: ApplicationEnv


.. automethod:: __init__

.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.ApplicationSpec
.. autoclass:: ApplicationSpec


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.ArchiveBuildMetadata

.. autoclass:: ArchiveBuildMetadata


.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.ArchiveBuildRequest
.. autoclass:: ArchiveBuildRequest


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ venvstacks.stacks.ArchiveHashes

.. autoclass:: ArchiveHashes

.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ venvstacks.stacks.ArchiveMetadata

.. autoclass:: ArchiveMetadata

.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ venvstacks.stacks.BuildEnvironment

.. autoclass:: BuildEnvironment


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand All @@ -30,10 +26,6 @@ venvstacks.stacks.BuildEnvironment
~BuildEnvironment.select_layers
~BuildEnvironment.select_operations
~BuildEnvironment.venvstacks_to_build
~BuildEnvironment.write_archive_metadata
~BuildEnvironment.write_artifacts_manifest
~BuildEnvironment.write_env_metadata
~BuildEnvironment.write_export_manifest

.. rubric:: Attributes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.EnvironmentExportRequest
.. autoclass:: EnvironmentExportRequest


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.EnvironmentLock
.. autoclass:: EnvironmentLock


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.EnvironmentLockMetadata

.. autoclass:: EnvironmentLockMetadata


.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.ExportMetadata

.. autoclass:: ExportMetadata


.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.ExportedEnvironmentPaths

.. autoclass:: ExportedEnvironmentPaths


.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.FrameworkEnv
.. autoclass:: FrameworkEnv


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.FrameworkSpec
.. autoclass:: FrameworkSpec


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.LayerCategories

.. autoclass:: LayerCategories


.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.LayerSpecMetadata

.. autoclass:: LayerSpecMetadata


.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ venvstacks.stacks.LayerVariants

.. autoclass:: LayerVariants


.. automethod:: __init__

.. rubric:: Attributes

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.PackageIndexConfig
.. autoclass:: PackageIndexConfig


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.RuntimeEnv
.. autoclass:: RuntimeEnv


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ venvstacks.stacks.RuntimeSpec
.. autoclass:: RuntimeSpec


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ venvstacks.stacks.StackSpec

.. autoclass:: StackSpec

.. automethod:: __init__

.. rubric:: Methods

.. autosummary::
Expand Down
6 changes: 0 additions & 6 deletions docs/api/venvstacks.cli.main.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/api/venvstacks.cli.rst

This file was deleted.

Loading

0 comments on commit fc68c3b

Please sign in to comment.