File tree 4 files changed +32
-1
lines changed
4 files changed +32
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ Overrides
2
+ =========
3
+
4
+ This directory is recursively copied into `cpython/Doc `.
5
+ It needs to have the same structure than `cpython/Doc `.
6
+
7
+ It allows us
8
+
9
+ - to have our own `CONTRIBUTING.rst ` guide
10
+ - change the index sidebar with links that are interesting for translators
11
+ - etc
Original file line number Diff line number Diff line change
1
+ < h3 > ¡Ayúdanos a traducir!</ h3 >
2
+ < ul >
3
+ < li > < a href ="CONTRIBUTING.html "> Guía para contribuir</ a > </ li >
4
+ </ ul >
5
+
6
+ < h3 > Recursos</ h3 >
7
+ < ul >
8
+ < li > < a href ="https://mail.python.org/mailman3/lists/docs-es.python.org/ "> Lista de correos</ a > </ li >
9
+ < li > < a href ="https://t.me/python_docs_es "> Canal de Télegram</ a > </ li >
10
+ < li > < a href ="https://github.com/PyCampES/python-docs-es "> Repositorio GitHub</ a > </ li >
11
+ </ ul >
Original file line number Diff line number Diff line change 33
33
34
34
os .system ('mkdir -p cpython/locales/es/' )
35
35
os .system ('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES' )
36
- os .system ('ln -nfs `pwd`/CONTRIBUTING.rst cpython/Doc/CONTRIBUTING.rst' )
36
+
37
+
38
+ # Override all the files from ``.overrides`` directory
39
+ import glob
40
+ for root , dirs , files in os .walk ('.overrides' ):
41
+ for fname in files :
42
+ if fname == 'README.rst' and root == '.overrides' :
43
+ continue
44
+ destroot = root .replace ('.overrides/' , '' )
45
+ os .system (f'ln -nfs `pwd`/{ root } /{ fname } cpython/Doc/{ destroot } /{ fname } ' )
37
46
38
47
gettext_compact = False
39
48
locale_dirs = ['../locales' , 'cpython/locales' ] # relative to the sourcedir
You can’t perform that action at this time.
0 commit comments