Skip to content

Commit

Permalink
Docs: Update Sphinx and make some fixes/improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhynes7 committed Dec 29, 2022
1 parent 94a9ae8 commit 4772143
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 35 deletions.
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Circle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Circle
========================

.. autoclass:: skspatial.objects.Circle


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Cylinder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Cylinder
==========================

.. autoclass:: skspatial.objects.Cylinder


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Line
======================

.. autoclass:: skspatial.objects.Line


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.LineSegment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.LineSegment
=============================

.. autoclass:: skspatial.objects.LineSegment


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Plane.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Plane
=======================

.. autoclass:: skspatial.objects.Plane


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Point.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Point
=======================

.. autoclass:: skspatial.objects.Point


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Points.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Points
========================

.. autoclass:: skspatial.objects.Points


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Sphere.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Sphere
========================

.. autoclass:: skspatial.objects.Sphere


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Triangle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Triangle
==========================

.. autoclass:: skspatial.objects.Triangle


Methods
-------
.. autosummary::
Expand Down
3 changes: 0 additions & 3 deletions docs/source/api_reference/skspatial.objects.Vector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
skspatial.objects.Vector
========================

.. autoclass:: skspatial.objects.Vector


Methods
-------
.. autosummary::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sphinx==5.3.0
numpydoc==1.1.0
Sphinx==6.0.0
numpydoc==1.5.0
sphinx-bootstrap-theme==0.8.1
sphinx-gallery==0.9.0
4 changes: 2 additions & 2 deletions src/skspatial/objects/circle.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def best_fit(cls, points: array_like) -> Circle:
If there are fewer than three points.
If the points are collinear.
Reference
---------
References
----------
https://meshlogic.github.io/posts/jupyter/curve-fitting/fitting-a-circle-to-cluster-of-3d-points/
Examples
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ commands =
commands =
poetry install --with base_test
poetry run pytest tests/unit/ --cov=skspatial --cov-report=xml

# For local development only.
[testenv:docs]
commands =
pip install -r docs/source/requirements.txt
sphinx-build docs/source/ docs/build/

0 comments on commit 4772143

Please sign in to comment.