Skip to content

Commit 7495bfe

Browse files
committed
Fix all broken links
1 parent c04f6e6 commit 7495bfe

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

docs/conf.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def sandboxed(*args, **kwargs):
8888
doctest_test_doctest_blocks = ""
8989

9090
extlinks = {
91-
"ffstruct": ("https://ffmpeg.org/doxygen/trunk/struct%s.html", "struct %s"),
9291
"issue": ("https://github.com/PyAV-Org/PyAV/issues/%s", "#%s"),
9392
"pr": ("https://github.com/PyAV-Org/PyAV/pull/%s", "#%s"),
9493
"gh-user": ("https://github.com/%s", "@%s"),
@@ -237,7 +236,15 @@ def ffmpeg_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
237236
struct_name = None
238237

239238
if struct_name is None:
240-
url = base_url.format(text)
239+
fragment = {
240+
"avformat_seek_file": "group__lavf__decoding.html#ga3b40fc8d2fda6992ae6ea2567d71ba30",
241+
"av_find_best_stream": "avformat_8c.html#a8d4609a8f685ad894c1503ffd1b610b4",
242+
"av_frame_make_writable": "group__lavu__frame.html#gadd5417c06f5a6b419b0dbd8f0ff363fd",
243+
"avformat_write_header": "group__lavf__encoding.html#ga18b7b10bb5b94c4842de18166bc677cb",
244+
"av_guess_frame_rate": "group__lavf__misc.html#ga698e6aa73caa9616851092e2be15875d",
245+
"av_guess_sample_aspect_ratio": "group__lavf__misc.html#gafa6fbfe5c1bf6792fd6e33475b6056bd",
246+
}.get(text, f"struct{text}.html")
247+
url = "https://ffmpeg.org/doxygen/7.0/" + fragment
241248
else:
242249
fragment = {
243250
"AVCodecContext.thread_count": "#aa852b6227d0778b62e9cc4034ad3720c",

docs/cookbook/numpy.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Video Barcode
77

88
A video barcode shows the change in colour and tone over time. Time is represented on the horizontal axis, while the vertical remains the vertical direction in the image.
99

10-
See http://moviebarcode.tumblr.com/ for examples from Hollywood movies, and here is an example from a sunset timelapse:
10+
See https://moviebarcode.tumblr.com/ for examples from Hollywood movies, and here is an example from a sunset timelapse:
1111

1212
.. image:: ../_static/examples/numpy/barcode.jpg
1313

docs/overview/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Another way to install PyAV is via `conda-forge <https://conda-forge.github.io>`
1818

1919
conda install av -c conda-forge
2020

21-
See the `Conda quick install <https://conda.io/docs/install/quick.html>`_ docs to get started with (mini)Conda.
21+
See the `Conda quick install <https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html>`_ docs to get started with (mini)Conda.
2222

2323

2424
Building from the latest source

0 commit comments

Comments
 (0)