Skip to content

Commit

Permalink
docs(nox,examples): Remove example references
Browse files Browse the repository at this point in the history
This removes all references to the examples section made through links.
It also sets nox to raise sphinx warnings as errors (using `sphinx-build
-W`).
  • Loading branch information
teald committed Aug 14, 2024
1 parent c2a3d73 commit 65872ac
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ This is the documentation for astrodata.

quickstart.rst
manuals/index
examples/index
developer/index
api_short

Expand Down
2 changes: 0 additions & 2 deletions docs/manuals/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Astrodata Manual
cheatsheet
usermanual/index
progmanual/index
../examples/index
full_api

This documentation provides different levels of information:
Expand All @@ -26,7 +25,6 @@ This documentation provides different levels of information:
- :doc:`usermanual/index` - How to code with astrodata objects
- :doc:`progmanual/index` - How to code for astrodata
- :doc:`full_api` - The full API documentation for developers.
- :doc:`../examples/index` - Examples of how to use astrodata

If you need support related to |astrodata|, see :ref:`ad_support`.

Expand Down
2 changes: 1 addition & 1 deletion docs/manuals/progmanual/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ For the programmer using |AstroData| to develop a data reduction pipeline, the
|AstroData| class should be subclassed to provide the functionality required
and to register the new class with the :func:`~astrodata.from_file` function.

Several examples may be found throughout the documentation (see |Examples|). A
Several examples may be found throughout the documentation. A
simple example is shown below as a complete, executable introduction.

.. code-block:: python
Expand Down
5 changes: 0 additions & 5 deletions docs/manuals/usermanual/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ The internal structure of the |AstroData| object makes uses of astropy's
:class:`~astropy.io.fits.Header`, the latter simply because it is a convenient
ordered dictionary.

Example location
----------------

The examples in this section can be found here: :ref:`user_structure_examples`.

Walkthrough
-----------

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def docs(session: nox.Session) -> None:
# TODO(teald): Add nitpicky flag to fix warnings. -- Issue #42
target = Path("_build")
session.run("rm", "-rf", target, external=True)
session.run("sphinx-build", "docs", target)
session.run("sphinx-build", "-W", "docs", target)


def use_devpi_server(func):
Expand Down

0 comments on commit 65872ac

Please sign in to comment.