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

Build on Read the Docs#24

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
gilgamezh merged 17 commits intopython:3.7fromhumitos:readthedocs
May 2, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
17 commits
Select commitHold shift + click to select a range
fe3249b
Build on Read the Docs
humitosMay 1, 2020
98633b2
Path to conf.py
humitosMay 1, 2020
8a35ff3
Make version a string
humitosMay 1, 2020
028a81e
Submodule 3.7
humitosMay 1, 2020
9914c62
Create locales directories
humitosMay 1, 2020
af6e79f
How I do create the submodule pinned to a commit
humitosMay 1, 2020
582dfcf
refcount data path
humitosMay 1, 2020
90e146b
Add some help to the conf.py file
humitosMay 1, 2020
e323a8f
Locale Sphinx configs
humitosMay 1, 2020
68151c5
Make the build to use the proper sourcedir
humitosMay 1, 2020
069fdfc
Example of running with sphinx-build
humitosMay 1, 2020
bc125aa
Correct Python version
humitosMay 1, 2020
7822224
Locale is relative to sourcedir
humitosMay 1, 2020
6ad97e8
Without this path the index is not translated
humitosMay 1, 2020
5dd76e9
Reduce the overrides and re-use as much as possible
humitosMay 1, 2020
62b4db9
Small doc change
humitosMay 1, 2020
309ef1f
version != release
humitosMay 1, 2020
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
1 change: 1 addition & 0 deletions.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
*.mo
/_build/
5 changes: 5 additions & 0 deletions.gitmodules
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
[submodule "cpython"]
path = cpython
url = https://github.com/python/cpython.git
branch = 3.7
shallow = true
19 changes: 19 additions & 0 deletions.readthedocs.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: conf.py

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: requirements.txt

submodules:
include: all
42 changes: 42 additions & 0 deletionsconf.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
# Sphinx configuration file.
#
# - import original configurations from cpython/Doc/conf.py
# - append the path considering the cpython submodule is at ./cpython
# - create the symbolic links under ./cpython/locale/es/LC_MESSAGES
# - make the build to work under Read the Docs
#
# The git submodule was created using this Stack Overflow answer
# to fetch only the commit that I needed and avoid clonning the whole history
# https://stackoverflow.com/a/27445058
#
# This can be built locally using `sphinx-build` by running
#
# $ sphinx-build -b html -n -d _build/doctrees -D language=es . _build/html

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

# Import all the Sphinx settings from cpython
sys.path.append(os.path.abspath('cpython/Doc'))
from conf import *

version = '3.7'
release = '3.7.7'

project = 'Python en Español'
copyright = '2001-%s, Python Software Foundation' % time.strftime('%Y')

html_theme_path = ['cpython/Doc/tools']
templates_path = ['cpython/Doc/tools/templates']
html_static_path = ['cpython/Doc/tools/static']

os.system('mkdir -p cpython/locales/es/')
os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES')

gettext_compact = False
locale_dirs = ['../locales', 'cpython/locales'] # relative to the sourcedir

def setup(app):
# Change the sourcedir programmatically because Read the Docs always call it with `.`
app.srcdir = 'cpython/Doc'
1 change: 1 addition & 0 deletionscpython
Open in desktop
Submodulecpython added at 48ef06
4 changes: 4 additions & 0 deletionsrequirements.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
Sphinx==2.2.0
setuptools
blurb
python-docs-theme

[8]ページ先頭

©2009-2025 Movatter.jp