Skip to content

Commit

Permalink
Updates Sphinx to 7+, use myst-parser instead of m2r2.
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoFara committed Jun 30, 2024
1 parent 5fde45d commit 7bf185d
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .idea/pylinkage.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You will need to have your own fork for this project if you want to submit pull

We use unittest. You can use it in two ways:

* Just run ``python3 -m unittest discover .`` from the main folder.
* Just run ``python -m unittest discover`` from the main folder.
* For users of PyCharm, use the "All Tests" configuration.

## Release
Expand Down
6 changes: 4 additions & 2 deletions pylinkage/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ def circle_intersect(circle1, circle2, tol=0.0):
:type circle2: tuple[float, float, float]
:param tol: distance under which two points are considered equal (Default value = 0.0)
:type tol: float
:returns: the intersections of two circles.
Can be:
:returns: the intersections of two circles. Can be:
- (0, ) when no intersection.
- (1, (float, float)) if the intersection is one point.
- (2, (float, float), (float, float)) for two points of intersection.
- (3, (float, float, float)) if the intersection is a circle.
:rtype: tuple[int] | tuple[int, tuple[float, float]] |
tuple[int, tuple[float, float], tuple[float, float]] | tuple[int, tuple[float, float, float]]
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

-r requirements.txt

sphinx==6.2.1
sphinx==7.3.7
sphinx-rtd-theme>=1.2.0
m2r2>=0.3.0
myst-parser>=3.0.1
bump2version>=1.0.0
3 changes: 2 additions & 1 deletion sphinx/changeloglink.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.. mdinclude:: ../CHANGELOG.md
.. include:: ../CHANGELOG.md
:parser: myst_parser.sphinx_
2 changes: 2 additions & 0 deletions sphinx/code_of_conductlink.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.. include:: ../CODE_OF_CONDUCT.md
:parser: myst_parser.sphinx_
2 changes: 1 addition & 1 deletion sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# Use docstrings
'sphinx.ext.autodoc',
# Useful for markdown integration
'm2r2',
'myst_parser',
'sphinx.ext.githubpages'
]

Expand Down
1 change: 1 addition & 0 deletions sphinx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Welcome to pylinkage's documentation!
Source Code <https://github.com/HugoFara/pylinkage>
Download on PyPi <https://pypi.org/project/pylinkage/>
Get Support <https://github.com/HugoFara/pylinkage/issues>
Code of Conduct <code_of_conductlink.rst>

.. include:: readmelink.rst

Expand Down
3 changes: 2 additions & 1 deletion sphinx/readmelink.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.. mdinclude:: ../README.md
.. include:: ../README.md
:parser: myst_parser.sphinx_

0 comments on commit 7bf185d

Please sign in to comment.