Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove include:: replacements hack#2875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rtobar merged 2 commits intopython:3.12fromrtobar:remove-include-seds
Nov 18, 2024
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Define srcdir as a Path
This doesn't break anything, and seems to be required at least in Sphinx8.1.3, most probably some earlier versions too (we're in 7.2.6).Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
@rtobar
rtobar committedNov 18, 2024
commit5b571c64cd3fdad302ec7381010d7f84186b6f41
5 changes: 3 additions & 2 deletionsconf.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,6 +16,8 @@
import sys
import os
import time
from pathlib import Path

sys.path.append(os.path.abspath('cpython/Doc/tools/extensions'))
sys.path.append(os.path.abspath('cpython/Doc/includes'))

Expand DownExpand Up@@ -70,7 +72,6 @@

if os.environ.get('SPHINX_GETTEXT') is None:
# Override all the files from ``.overrides`` directory
from pathlib import Path
overrides_paths = Path('.overrides')

for path in overrides_paths.glob('**/*.*'):
Expand DownExpand Up@@ -129,7 +130,7 @@ def add_contributing_banner(app, doctree):
document.insert(0, banner)

# Change the sourcedir programmatically because Read the Docs always call it with `.`
app.srcdir = os.getcwd() + '/cpython/Doc'
app.srcdir =Path(os.getcwd() + '/cpython/Doc')

app.connect('doctree-read', add_contributing_banner)

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp