Skip to content

Commit

Permalink
Merge pull request #182 from dstansby/api-ref
Browse files Browse the repository at this point in the history
Add API ref section to docs
  • Loading branch information
dstansby committed May 22, 2023
2 parents 33e6703 + a5e9428 commit 7b46030
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 76 deletions.
12 changes: 4 additions & 8 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,16 @@ build:
os: ubuntu-20.04
tools:
python: "3.9"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
# golang: "1.17"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: doc/requirements.txt
- method: pip
path: .
extra_requirements:
- docs
39 changes: 0 additions & 39 deletions doc/api.rst

This file was deleted.

14 changes: 4 additions & 10 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys

sys.path.insert(0, os.path.abspath("."))
sys.path.insert(0, os.path.abspath("../"))
sys.path.insert(0, os.path.abspath('../..'))

import cdflib._version
import cdflib

# -- Project information -----------------------------------------------------

Expand Down Expand Up @@ -46,7 +39,8 @@
'sphinx.ext.napoleon',
'sphinx.ext.autosummary',
'sphinx_copybutton',
'sphinx.ext.linkcode'
'sphinx.ext.linkcode',
'sphinx_automodapi.automodapi',
]

numpydoc_class_members_toctree = False
Expand Down Expand Up @@ -85,7 +79,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'furo'
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
15 changes: 1 addition & 14 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,5 @@ What can cdflib do?
:maxdepth: 1
:caption: Contents:

api
modules/cdfread
modules/cdfwrite
modules/cdfepoch
modules/xarray
modules/index
development



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
10 changes: 10 additions & 0 deletions doc/modules/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
API Reference
=============

.. toctree::
:maxdepth: 1

cdfread
cdfwrite
cdfepoch
xarray
3 changes: 0 additions & 3 deletions doc/requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ docs =
sphinx
xarray
sphinx-automodapi
# Sphinx themes
sphinx-copybutton
sphinx_rtd_theme
furo

[tool:pytest]
minversion = 3.9
Expand Down

0 comments on commit 7b46030

Please sign in to comment.