Skip to content

Commit 6494ac1

Browse files
authored
Merge pull request #3270 from AndreMiras/feature/documentation
📝 Fix documentation linkcheck failures
2 parents f69d5b2 + a17c1df commit 6494ac1

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

doc/source/apis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ With Kivy, add an ``on_pause`` method to your App class, which returns True::
140140

141141
With the webview bootstrap, pausing should work automatically.
142142

143-
Under SDL2, you can handle the `appropriate events <https://wiki.libsdl.org/SDL_EventType>`__ (see SDL_APP_WILLENTERBACKGROUND etc.).
143+
Under SDL2, you can handle the `appropriate events <https://wiki.libsdl.org/SDL3/SDL_EventType>`__ (see SDL_APP_WILLENTERBACKGROUND etc.).
144144

145145

146146
Observing Activity result

doc/source/conf.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,15 @@ def get_version():
321321
r"https://github.com/kivy/python-for-android/blob.*",
322322
]
323323

324+
# Allow redirects for URLs where we prefer to keep the original form
325+
linkcheck_allowed_redirects = {
326+
# Kivy chat redirects to Discord invite
327+
r"https://chat\.kivy\.org/": r"https://discord\.com/.*",
328+
# GitHub archive URLs redirect to codeload
329+
r"https://github\.com/kivy/python-for-android/archive/.*": r"https://codeload\.github\.com/.*",
330+
# GitHub gist homepage redirects to starred
331+
r"https://gist\.github\.com/$": r"https://gist\.github\.com/.*",
332+
# Google Play Store redirects
333+
r"https://play\.google\.com/store/$": r"https://play\.google\.com/store/.*",
334+
}
335+

doc/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ It can generate:
1818

1919
It supports multiple CPU architectures.
2020

21-
It supports apps developed with `Kivy framework <http://kivy.org>`_, but was
21+
It supports apps developed with `Kivy framework <https://kivy.org/>`_, but was
2222
built to be flexible about the backend libraries (through "bootstraps"), and
2323
also supports `PySDL2 <https://pypi.org/project/PySDL2/>`_, and a
2424
`WebView <https://developer.android.com/reference/android/webkit/WebView>`_ with
@@ -34,7 +34,7 @@ dependencies for Android devices, and bundling it with the app's python code
3434
and dependencies. The Python code is then interpreted on the Android device.
3535

3636
It is recommended that python-for-android be used via
37-
`Buildozer <https://buildozer.readthedocs.io/>`_, which ensures the correct
37+
`Buildozer <https://buildozer.readthedocs.io/en/latest/>`_, which ensures the correct
3838
dependencies are pre-installed, and centralizes the configuration. However,
3939
python-for-android is not limited to being used with Buildozer.
4040

0 commit comments

Comments
 (0)