Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
python-docs-es/Makefile at 3.13 · sofide/python-docs-es · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
sofide
/
python-docs-es
Public
forked from
python/python-docs-es
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
3.13
Breadcrumbs
python-docs-es
/
Makefile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
103 lines (81 loc) · 3.29 KB
3.13
Breadcrumbs
python-docs-es
/
Makefile
Copy path
Top
File metadata and controls
Code
Blame
103 lines (81 loc) · 3.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
#
Makefile for Spanish Python Documentation
#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#
based on: https://github.com/python/python-docs-pt-br/blob/3.8/Makefile
#
#
Configuration
CPYTHON_PATH
:= cpython
#
Current commit for this upstream repo is setted by the submodule
BRANCH := 3.13
LANGUAGE_TEAM
:= python-docs-es
LANGUAGE
:= es
#
Internal variables
VENV
:=
$(
shell
realpath ./venv)
PYTHON
:=
$(
shell
which python3)
CPYTHON_WORKDIR
:= cpython
OUTPUT_DOCTREE
:=
$(
CPYTHON_WORKDIR
)
/Doc/build/doctree
OUTPUT_HTML
:=
$(
CPYTHON_WORKDIR
)
/Doc/build/html
LOCALE_DIR
:=
$(
CPYTHON_WORKDIR
)
/locale
POSPELL_TMP_DIR
:= .pospell
SPHINX_JOBS
:= auto
.PHONY
: help
help
:
@echo
"
Please use 'make <target>' where <target> is one of:
"
@echo
"
build Build an local version in html, with warnings as errors
"
@echo
"
serve Serve a built documentation on http://localhost:8000
"
@echo
"
spell Check spelling
"
@echo
"
wrap Wrap all the PO files to a fixed column width
"
@echo
"
progress To compute current progression on the tutorial
"
@echo
"
"
#
build: build the documentation using the translation files currently available
#
at the moment. For most up-to-date docs, run "tx-config" and "pull"
#
before this. If passing SPHINXERRORHANDLING='', warnings will not be
#
treated as errors, which is good to skip simple Sphinx syntax mistakes.
.PHONY
: build
build
: setup do_build
.PHONY
: do_build
do_build
:
#
Normal build
PYTHONWARNINGS=ignore::FutureWarning,ignore::RuntimeWarning
$(
VENV
)
/bin/sphinx-build -j
$(
SPHINX_JOBS
)
-W --keep-going -b html -d
$(
OUTPUT_DOCTREE
)
-D language=
$(
LANGUAGE
)
.
$(
OUTPUT_HTML
)
&&
\
echo
"
Success! Open file://
`
pwd
`
/
$(
OUTPUT_HTML
)
/index.html,
"
\
"
or run 'make serve' to see them in http://localhost:8000
"
;
#
setup: After running "venv" target, prepare that virtual environment with
#
a local clone of cpython repository and the translation files.
#
If the directories exists, only update the cpython repository and
#
the translation files copy which could have new/updated files.
.PHONY
: setup
setup
: venv
git submodule sync
git submodule update --init --force --depth 1
$(
CPYTHON_PATH
)
#
venv: create a virtual environment which will be used by almost every
#
other target of this script
.PHONY
: venv
venv
:
if
[
!
-d
$(
VENV
)
]
;
then
\
$(
PYTHON
)
-m venv --prompt
$(
LANGUAGE_TEAM
)
$(
VENV
)
;
\
fi
$(VENV)/bin/python -m pip install -q -r requirements.txt
#
serve: serve the documentation in a simple local web server, using cpython
#
Makefile's "serve" target. Run "build" before using this target.
.PHONY
: serve
serve
:
$(
MAKE
)
-C
$(
CPYTHON_WORKDIR
)
/Doc htmlview
#
clean: remove all .mo files and the venv directory that may exist and
#
could have been created by the actions in other targets of this script
.PHONY
: clean
clean
:
rm -rf
$(
VENV
)
rm -rf
$(
POSPELL_TMP_DIR
)
find -name
'
*.mo
'
-delete
.PHONY
: progress
progress
: venv
$(
VENV
)
/bin/potodo --offline --path tutorial/
.PHONY
: spell
spell
: venv
$(
VENV
)
/bin/python scripts/check_spell.py
.PHONY
: lint
lint
: venv
$(
VENV
)
/bin/python -m sphinxlint
*
/
*
.po
.PHONY
: wrap
wrap
: venv
$(
VENV
)
/bin/powrap
**
/
*
.po
You can’t perform that action at this time.