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

Commit2a74cca

Browse files
committed
Merge branch '3.7' into update_makefile
2 parents444cc91 +711f899 commit2a74cca

File tree

6 files changed

+75
-7
lines changed

6 files changed

+75
-7
lines changed

‎.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.mo
2+
/_build/
23

34
# Byte-compiled / optimized / DLL files
45
__pycache__/
@@ -47,7 +48,3 @@ coverage.xml
4748
# Ides
4849
.vscode/
4950
.idea/
50-
51-
52-
# local cpython repo
53-
cpython

‎.gitmodules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[submodule "cpython"]
2+
path=cpython
3+
url=https://github.com/python/cpython.git
4+
branch=3.7
5+
shallow=true

‎.readthedocs.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version:2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration:conf.py
11+
12+
# Optionally set the version of Python and requirements required to build your docs
13+
python:
14+
version:3.7
15+
install:
16+
-requirements:requirements.txt
17+
18+
submodules:
19+
include:all

‎conf.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Sphinx configuration file.
2+
#
3+
# - import original configurations from cpython/Doc/conf.py
4+
# - append the path considering the cpython submodule is at ./cpython
5+
# - create the symbolic links under ./cpython/locale/es/LC_MESSAGES
6+
# - make the build to work under Read the Docs
7+
#
8+
# The git submodule was created using this Stack Overflow answer
9+
# to fetch only the commit that I needed and avoid clonning the whole history
10+
# https://stackoverflow.com/a/27445058
11+
#
12+
# This can be built locally using `sphinx-build` by running
13+
#
14+
# $ sphinx-build -b html -n -d _build/doctrees -D language=es . _build/html
15+
16+
importsys,os,time
17+
sys.path.append(os.path.abspath('cpython/Doc/tools/extensions'))
18+
sys.path.append(os.path.abspath('cpython/Doc/includes'))
19+
20+
# Import all the Sphinx settings from cpython
21+
sys.path.append(os.path.abspath('cpython/Doc'))
22+
fromconfimport*
23+
24+
version='3.7'
25+
release='3.7.7'
26+
27+
project='Python en Español'
28+
copyright='2001-%s, Python Software Foundation'%time.strftime('%Y')
29+
30+
html_theme_path= ['cpython/Doc/tools']
31+
templates_path= ['cpython/Doc/tools/templates']
32+
html_static_path= ['cpython/Doc/tools/static']
33+
34+
os.system('mkdir -p cpython/locales/es/')
35+
os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES')
36+
37+
gettext_compact=False
38+
locale_dirs= ['../locales','cpython/locales']# relative to the sourcedir
39+
40+
defsetup(app):
41+
# Change the sourcedir programmatically because Read the Docs always call it with `.`
42+
app.srcdir='cpython/Doc'

‎cpython

Submodulecpython added at48ef06b

‎requirements.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
transifex-client
2-
sphinx-intl
3-
powrap
1+
Sphinx==2.2.0
2+
blurb
43
pospell
4+
powrap
5+
python-docs-theme
6+
setuptools
7+
sphinx-intl
8+
transifex-client

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp