Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-cssselect
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Python Team
packages
python-cssselect
Commits
bf282c1c
Commit
bf282c1c
authored
4 months ago
by
Andrey Rakhmatullin
Browse files
Options
Downloads
Patches
Plain Diff
Update the patch.
parent
c3cf694b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/patches/0001-Use-local-intersphinx-files.patch
+14
-6
14 additions, 6 deletions
debian/patches/0001-Use-local-intersphinx-files.patch
with
14 additions
and
6 deletions
debian/patches/0001-Use-local-intersphinx-files.patch
+
14
−
6
View file @
bf282c1c
...
...
@@ -3,20 +3,28 @@ Date: Sat, 20 Apr 2024 22:44:30 +0500
Subject: Use local intersphinx files.
---
docs/conf.py | 1
4
+++++++++++++-
1 file changed, 1
3
insertions(+), 1 deletion(-)
docs/conf.py | 1
5 +
+++++++++++++-
1 file changed, 1
4
insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index
d63672f..9652f67
100644
index
ceeb2d2..27030d3
100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -247,7 +247,19 @@
texinfo_documents = [
@@ -12,6 +12,7 @@
# serve to show the default.
import re
+import sys
from pathlib import Path
# If extensions (or modules to document with autodoc) are in another directory,
@@ -245,7 +246,19 @@
texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {
'
http://docs.python.org/
':
None}
-intersphinx_mapping = {
"python": ("
http
s
://docs.python.org/
3",
None
)
}
+def check_object_path(key, url, path):
+ if path and
os.
path.isfile(
path
):
+ if path and
Path(
path
)
.is
_
file():
+ return {key: (url, path)}
+ return {}
+
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment