Skip to content

#33 rtd documentation #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
558f58c
Adds RTD files and dependencies
josh-silvas Jun 21, 2021
1927dd8
Adds RTD requirements
josh-silvas Jun 21, 2021
f5f9357
Adds sphinx callback for RTD to run apidoc generator.
josh-silvas Jun 21, 2021
02e60f4
Update getting_started/index.rst line lengh
josh-silvas Jun 21, 2021
888c12e
Updates docs/conf.py with correct root directory.
josh-silvas Jun 21, 2021
3ec327e
Adds import of diffsync library
josh-silvas Jun 21, 2021
66919a9
Updates path imports
josh-silvas Jun 21, 2021
8bf41b3
Updates doc requirements.txt
josh-silvas Jun 21, 2021
77eb691
Add invoke commands for documentation.
josh-silvas Jun 22, 2021
ef16cae
Adds small changes for tests.
josh-silvas Jun 22, 2021
dc9f57b
Move doc requirements into pyproject.toml
josh-silvas Jun 22, 2021
2691199
Adds toml to optional poetry install
josh-silvas Jun 22, 2021
1b7e07e
Updates toml version
josh-silvas Jun 22, 2021
665dd0d
Update example titles.
josh-silvas Jun 22, 2021
4edb610
Update documentation and homepage reference in pyproject.toml to poin…
josh-silvas Jun 22, 2021
63865d0
Update docs/source/conf.py
josh-silvas Jun 22, 2021
65e19ca
Convert from sphinx to mkdocs as per the standard.
josh-silvas Jun 23, 2021
3960411
Updates poetry.extras for the docs
josh-silvas Jun 23, 2021
09fac74
Adds doc dependencies in as optional
josh-silvas Jun 23, 2021
9885456
Revert to sphinx
josh-silvas Jun 23, 2021
811af15
Fixes separate pages for api reference.
josh-silvas Jun 23, 2021
ca2a51e
Removes api_doc invoke function as this is now handled via a sphinx c…
josh-silvas Jun 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes separate pages for api reference.
Updates README.md to address rendering error.
Adds build directory to .gitignore
  • Loading branch information
josh-silvas committed Jun 23, 2021
commit 811af15298c2bec5247f600d4f365ce339fb192f
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,6 @@ fabric.properties
.vscode/*

*.code-workspace

## Sphinx Documentation ##
docs/build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A.sync_from(B)
A.sync_to(B)
```

You may wish to peruse the [`diffsync` GitHub topic](https://github.com/topics/diffsync) for examples of projects using this library.
You may wish to peruse the `diffsync` [GitHub topic](https://github.com/topics/diffsync) for examples of projects using this library.

# Getting started

Expand Down
2 changes: 1 addition & 1 deletion diffsync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DiffSyncModel(BaseModel):
This class has several underscore-prefixed class variables that subclasses should set as desired; see below.

NOTE: The groupings _identifiers, _attributes, and _children are mutually exclusive; any given field name can
be included in **at most** one of these three tuples.
be included in **at most** one of these three tuples.
"""

_modelname: ClassVar[str] = "diffsyncmodel"
Expand Down
7 changes: 7 additions & 0 deletions docs/source/api/diffsync.diff.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diffsync.diff
=============

.. automodule:: diffsync.diff
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/diffsync.enum.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diffsync.enum
=============

.. automodule:: diffsync.enum
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/diffsync.exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diffsync.exceptions
===================

.. automodule:: diffsync.exceptions
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/diffsync.helpers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diffsync.helpers
================

.. automodule:: diffsync.helpers
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/diffsync.logging.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diffsync.logging
================

.. automodule:: diffsync.logging
:members:
:undoc-members:
:show-inheritance:
56 changes: 9 additions & 47 deletions docs/source/api/diffsync.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,12 @@ API Reference
:show-inheritance:


diffsync.diff
-------------

.. automodule:: diffsync.diff
:members:
:undoc-members:
:show-inheritance:

diffsync.enum
-------------

.. automodule:: diffsync.enum
:members:
:undoc-members:
:show-inheritance:

diffsync.exceptions
-------------------

.. automodule:: diffsync.exceptions
:members:
:undoc-members:
:show-inheritance:

diffsync.helpers
----------------

.. automodule:: diffsync.helpers
:members:
:undoc-members:
:show-inheritance:

diffsync.logging
----------------

.. automodule:: diffsync.logging
:members:
:undoc-members:
:show-inheritance:

diffsync.utils
--------------

.. automodule:: diffsync.utils
:members:
:undoc-members:
:show-inheritance:
.. toctree::
:maxdepth: 4

diffsync.diff
diffsync.enum
diffsync.exceptions
diffsync.helpers
diffsync.logging
diffsync.utils
7 changes: 7 additions & 0 deletions docs/source/api/diffsync.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diffsync.utils
==============

.. automodule:: diffsync.utils
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def remove_module_docstring(app, what, name, obj, options, lines):

def run_apidoc(_):
"""Adds the sphinx-apidoc command as a callback during the build process."""
main(["-MTf", "-t", f"{CURR_DIR}/template/api", "-o", f"{CURR_DIR}/api", f"{ROOT_DIR}/{TOOL_CONFIG['name']}"])
main(["-MTfe", "-t", f"{CURR_DIR}/template/api", "-o", f"{CURR_DIR}/api", f"{ROOT_DIR}/{TOOL_CONFIG['name']}"])


def setup(app):
Expand Down
9 changes: 9 additions & 0 deletions docs/source/template/api/module.rst_t
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{%- if show_headings %}
{{- basename | e | heading }}

{% endif -%}
.. automodule:: {{ qualname }}
{%- for option in automodule_options %}
:{{ option }}:
{%- endfor %}