Skip to content

Commit 76fb858

Browse files
committed
[docs] Fix favicon path and TOC duplication
1 parent efb7133 commit 76fb858

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

docs/api.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,11 @@ Functions
9696
.. automodule:: scenedetect
9797
:members:
9898

99-
=======================================================================
100-
Module Reference
101-
=======================================================================
102-
10399
.. toctree::
104100
:maxdepth: 3
105101
:caption: PySceneDetect Module Documentation
106102
:name: fullapitoc
103+
:hidden:
107104

108105
api/migration_guide
109106
api/detectors

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
# so a file named "default.css" will overwrite the builtin "default.css".
8080
html_static_path = ["_static"]
8181
html_css_files = ["pyscenedetect.css"]
82-
html_favicon = "favicon.ico"
82+
html_favicon = "_static/favicon.ico"
8383

8484
# Custom sidebar templates, must be a dictionary that maps document names
8585
# to template names.

scenedetect/common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,8 @@ def get_timecode(
451451

452452
@staticmethod
453453
def _ensure_fractional(fps: "FrameRate | FrameTimecode") -> Fraction:
454-
"""Validate and convert an `fps` argument into a positive `Fraction`. Float inputs are
455-
routed through :func:`framerate_to_fraction` so NTSC-derived rates (e.g. 23.976 -> 24000/1001)
456-
snap to their exact rational form instead of the lossy :func:`Fraction.from_float` value."""
454+
"""Validate and convert an `fps` argument into a positive `Fraction`. NTSC-like frame rates
455+
are handled via :func:`framerate_to_fraction`."""
457456
if isinstance(fps, FrameTimecode):
458457
if fps._rate is None:
459458
raise TypeError("FrameTimecode passed as fps must have a known rate.")

website/pages/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ Care was taken to minimize changes for most common API uses, however more advanc
685685
- [bugfix] Add mitigation for transient `OSError` in the MoviePy backend as it is susceptible to subprocess pipe races on slow or heavily loaded systems [#496](https://github.com/Breakthrough/PySceneDetect/issues/496)
686686
- [feature] The MoviePy backend now supports overriding the source frame rate via `-f`/`--frame-rate` (and the `VideoStreamMoviePy(frame_rate=...)` API), bringing it in line with the OpenCV and PyAV backends
687687
- [bugfix] `detect-threshold` cut frame numbers are now backend-deterministic; previously the cut could differ by 1 frame between PyAV and OpenCV when the fade midpoint landed on a `.5` rounding boundary (PyAV uses sub-microsecond PTS, OpenCV uses millisecond-truncated `CAP_PROP_POS_MSEC`)
688-
- [refactor] Remove deprecated `-d`/`--min-delta-hsv` option from `detect-adaptive` command
688+
- [breaking] Remove deprecated `-d`/`--min-delta-hsv` option from `detect-adaptive` command (use `-c`/`--min-content-val` instead)
689689
- [breaking] Rename `-f/--framerate` to `-f/--frame-rate` as part of VFR overhaul (legacy `--framerate` form is preserved as a hidden alias but will be removed in v0.8)
690690

691691
### API Changes

0 commit comments

Comments
 (0)