Skip to content

Commit

Permalink
Fix autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Dang🤖 authored and andyndang committed Mar 5, 2021
1 parent a558260 commit 6888034
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 39 deletions.
2 changes: 0 additions & 2 deletions docs/changelog.rst

This file was deleted.

33 changes: 7 additions & 26 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,44 +65,26 @@
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
"autoapi.extension",
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.autosummary",
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx_autodoc_typehints",
"sphinx.ext.coverage",
"sphinx.ext.doctest",
"sphinx.ext.ifconfig",
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"sphinx_rtd_theme",
"recommonmark",
]

autoapi_type = 'python'
autoapi_dirs = ['../src']

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]


# To configure AutoStructify
def setup(app):
from recommonmark.transform import AutoStructify

app.add_config_value(
"recommonmark_config",
{
"auto_toc_tree_section": "Contents",
"enable_eval_rst": True,
"enable_math": True,
"enable_inline_math": True,
},
True,
)
app.add_transform(AutoStructify)


# The suffix of source filenames.
source_suffix = [".rst", ".md"]
source_suffix = [".rst"]

# The encoding of source files.
# source_encoding = 'utf-8-sig'
Expand Down Expand Up @@ -247,7 +229,6 @@ def setup(app):
# Output file base name for HTML help builder.
htmlhelp_basename = "whylogs_python-doc"


# -- Options for LaTeX output --------------------------------------------------

latex_elements = {
Expand Down
14 changes: 4 additions & 10 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. whylogs documentation master file
:github_url: https://github.com/whylabs/whylogs

whylogs
whylogs API reference
==================

*Profile and monitor your ML data pipeline end-to-end*
Expand All @@ -15,13 +15,12 @@ your data, read our :ref:`intro` and our :ref:`getting_started` guide.
This site is a work in progress. If you have questions, ask them in our `Slack channel <http://join.slack.whylabs.ai/>`__!

.. toctree::
:maxdepth: 5
:maxdepth: 2

overview
getting_started
concepts
auto_examples/index
Changelog <changelog>
Examples <auto_examples/index>
License <license>

Indices and tables
Expand All @@ -30,8 +29,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

.. toctree::
:maxdepth: 2

api/modules
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ sphinx-autoapi>=1.4.0
autoapi>=2.0.1
sphinx-autorun >= 1.1.1
sphinx-gallery >= 0.8.0
pillow
pillow
sphinx_autodoc_typehints

0 comments on commit 6888034

Please sign in to comment.