Skip to content

Commit 880cba3

Browse files
committed
chore(lib): moved Sphinx directive from docs to sphinxext
1 parent fbf5f42 commit 880cba3

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
when using one of those extras, but as they were not part of the public API,
1919
we do not consider this to be a **breaking change**.
2020
[#542](https://github.com/jeertmans/manim-slides/pull/542)
21+
- Moved `manim_slides.docs.manim_slides_directive` to `manim_slides.sphinxext.manim_slides_directive`.
22+
This is a **breaking change** because documentation configs have
23+
to be updated.
24+
[#242](https://github.com/jeertmans/manim-slides/pull/242)
2125

2226
(v5.5.1)=
2327
## [v5.5.1](https://github.com/jeertmans/manim-slides/compare/v5.5.0...v5.5.1)

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"sphinx_copybutton",
3838
"sphinx_design",
3939
# Custom
40-
"manim_slides.docs.manim_slides_directive",
40+
"manim_slides.sphinxext.manim_slides_directive",
4141
]
4242

4343
autodoc_typehints = "both"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Manim Slides' Sphinx directive
22

33
```{eval-rst}
4-
.. automodule:: manim_slides.docs.manim_slides_directive
4+
.. automodule:: manim_slides.sphinxext.manim_slides_directive
55
:members: ManimSlidesDirective
66
```

manim_slides/ipython/ipython_magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def construct(self):
116116
file) will be moved relative to the video locations. Use-cases include building
117117
documentation with Sphinx and JupyterBook. See also the
118118
:mod:`Manim Slides directive for Sphinx
119-
<manim_slides.docs.manim_slides_directive>`.
119+
<manim_slides.sphinxext.manim_slides_directive>`.
120120
121121
Examples
122122
--------
File renamed without changes.

manim_slides/docs/manim_slides_directive.py renamed to manim_slides/sphinxext/manim_slides_directive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
4141
extensions = [
4242
# ...
43-
"manim_slides.docs.manim_slides_directive",
43+
"manim_slides.sphinxext.manim_slides_directive",
4444
]
4545
4646
Its basic usage that allows processing **inline content**

0 commit comments

Comments
 (0)