mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add .gitattributes
This commit is contained in:
parent
5ff3740063
commit
a69d79bf67
65
.gitattributes
vendored
Normal file
65
.gitattributes
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
# Binary data types
|
||||
*.gif binary
|
||||
*.jpg binary
|
||||
*.mo binary
|
||||
*.pdf binary
|
||||
*.png binary
|
||||
*.zip binary
|
||||
|
||||
# Unix-style line endings
|
||||
[attr]unix text eol=lf
|
||||
|
||||
*.conf unix
|
||||
*.css unix
|
||||
*.cls unix
|
||||
*.csv unix
|
||||
*.dot unix
|
||||
*.html unix
|
||||
*.inc unix
|
||||
*.ini unix
|
||||
*.jinja unix
|
||||
*.js unix
|
||||
*.md unix
|
||||
*.mjs unix
|
||||
*.py unix
|
||||
*.rst unix
|
||||
*.sty unix
|
||||
*.tex unix
|
||||
*.toml unix
|
||||
*.txt unix
|
||||
*.svg unix
|
||||
*.xml unix
|
||||
*.yml unix
|
||||
|
||||
# CRLF files
|
||||
[attr]dos text eol=crlf
|
||||
|
||||
*.bat dos
|
||||
*.bat.jinja dos
|
||||
*.stp dos
|
||||
tests/roots/test-pycode/cp_1251_coded.py dos
|
||||
|
||||
# Language aware diff headers
|
||||
*.c diff=cpp
|
||||
*.h diff=cpp
|
||||
*.css diff=css
|
||||
*.html diff=html
|
||||
*.md diff=markdown
|
||||
*.py diff=python
|
||||
# *.rst diff=reStructuredText
|
||||
*.tex diff=tex
|
||||
|
||||
# Non UTF-8 encodings
|
||||
tests/roots/test-pycode/cp_1251_coded.py working-tree-encoding=windows-1251
|
||||
|
||||
# Generated files
|
||||
# https://github.com/github/linguist/blob/master/docs/overrides.md
|
||||
#
|
||||
# To always hide generated files in local diffs, mark them as binary:
|
||||
# $ git config diff.generated.binary true
|
||||
#
|
||||
[attr]generated linguist-generated=true diff=generated
|
||||
|
||||
tests/js/fixtures/**/*.js generated
|
||||
sphinx/search/minified-js/*.js generated
|
||||
sphinx/themes/bizstyle/static/css3-mediaqueries.js generated
|
32
doc/_static/translation.svg
vendored
32
doc/_static/translation.svg
vendored
@ -13,22 +13,22 @@ link .pot to .po--><path d="M406.62,48.5 C427.03,48.5 456.51,48.5 477.68,48.5 "
|
||||
link .po to .mo--><path d="M491.03,71.06 C476.38,95.43 452.52,135.09 436.8,161.24 " fill="none" id=".po->.mo" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="434.15,165.63,442.2104,159.9705,436.7225,161.3425,435.3505,155.8546,434.15,165.63" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="50" x="462" y="132.0669">msgfmt</text><!--MD5=[02fa75427086f2cebad4a5f1b2dd96dd]
|
||||
reverse link TranslatedBuild to .mo--><path d="M346.94,188.5 C363.88,188.5 380.82,188.5 397.76,188.5 " fill="none" id="TranslatedBuild<-.mo" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="341.68,188.5,350.68,192.5,346.68,188.5,350.68,184.5,341.68,188.5" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[e72b6258a50343d4926d984a36170cf2]
|
||||
link .rst to TranslatedBuild--><path d="M188.71,66.7 C207.27,91.8 241.75,138.46 262,165.86 " fill="none" id=".rst->TranslatedBuild" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="265.13,170.08,262.9905,160.4663,262.1552,166.0612,256.5604,165.226,265.13,170.08" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="165" x="241" y="132.0669">sphinx-build -Dlanguage=</text><!--MD5=[30dba34f254541587149d90abdb00688]
|
||||
@startuml
|
||||
file "SphinxProject"
|
||||
file ".rst"
|
||||
database ".pot"
|
||||
database ".po"
|
||||
database ".mo"
|
||||
actor translator
|
||||
file TranslatedBuild
|
||||
translator -l-> .po
|
||||
SphinxProject -r-> .rst
|
||||
.rst -r-> .pot : sphinx-build gettext
|
||||
.pot -r-> .po : Pootle
|
||||
.po -d-> .mo : msgfmt
|
||||
.mo -l-> TranslatedBuild
|
||||
.rst -d-> TranslatedBuild : "sphinx-build -Dlanguage="
|
||||
@enduml
|
||||
@startuml
|
||||
file "SphinxProject"
|
||||
file ".rst"
|
||||
database ".pot"
|
||||
database ".po"
|
||||
database ".mo"
|
||||
actor translator
|
||||
file TranslatedBuild
|
||||
translator -l-> .po
|
||||
SphinxProject -r-> .rst
|
||||
.rst -r-> .pot : sphinx-build gettext
|
||||
.pot -r-> .po : Pootle
|
||||
.po -d-> .mo : msgfmt
|
||||
.mo -l-> TranslatedBuild
|
||||
.rst -d-> TranslatedBuild : "sphinx-build -Dlanguage="
|
||||
@enduml
|
||||
|
||||
PlantUML version 1.2020.00(Sat Jan 11 12:30:53 GMT 2020)
|
||||
(GPL source distribution)
|
||||
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
64
doc/make.bat
64
doc/make.bat
@ -1,32 +1,32 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=python ../sphinx/cmd/build.py
|
||||
)
|
||||
set SOURCEDIR=.
|
||||
set BUILDDIR=_build
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
%SPHINXBUILD% 2> nul
|
||||
if errorlevel 9009 (
|
||||
echo.
|
||||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
||||
echo.installed, then set the SPHINXBUILD environment variable to point
|
||||
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
||||
echo.may add the Sphinx directory to PATH.
|
||||
echo.
|
||||
echo.If you don't have Sphinx installed, grab it from
|
||||
echo.https://www.sphinx-doc.org/
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
||||
goto end
|
||||
|
||||
:help
|
||||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
||||
|
||||
:end
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=python ../sphinx/cmd/build.py
|
||||
)
|
||||
set SOURCEDIR=.
|
||||
set BUILDDIR=_build
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
%SPHINXBUILD% 2> nul
|
||||
if errorlevel 9009 (
|
||||
echo.
|
||||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
||||
echo.installed, then set the SPHINXBUILD environment variable to point
|
||||
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
||||
echo.may add the Sphinx directory to PATH.
|
||||
echo.
|
||||
echo.If you don't have Sphinx installed, grab it from
|
||||
echo.https://www.sphinx-doc.org/
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
||||
goto end
|
||||
|
||||
:help
|
||||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
||||
|
||||
:end
|
||||
|
@ -1,33 +1,33 @@
|
||||
a
|
||||
and
|
||||
are
|
||||
as
|
||||
at
|
||||
be
|
||||
but
|
||||
by
|
||||
for
|
||||
if
|
||||
in
|
||||
into
|
||||
is
|
||||
it
|
||||
near
|
||||
no
|
||||
not
|
||||
of
|
||||
on
|
||||
or
|
||||
such
|
||||
that
|
||||
the
|
||||
their
|
||||
then
|
||||
there
|
||||
these
|
||||
they
|
||||
this
|
||||
to
|
||||
was
|
||||
will
|
||||
with
|
||||
a
|
||||
and
|
||||
are
|
||||
as
|
||||
at
|
||||
be
|
||||
but
|
||||
by
|
||||
for
|
||||
if
|
||||
in
|
||||
into
|
||||
is
|
||||
it
|
||||
near
|
||||
no
|
||||
not
|
||||
of
|
||||
on
|
||||
or
|
||||
such
|
||||
that
|
||||
the
|
||||
their
|
||||
then
|
||||
there
|
||||
these
|
||||
they
|
||||
this
|
||||
to
|
||||
was
|
||||
will
|
||||
with
|
||||
|
@ -1,13 +1,13 @@
|
||||
===========================
|
||||
Literal Includes for python
|
||||
===========================
|
||||
|
||||
block start with blank or comment
|
||||
=================================
|
||||
|
||||
.. literalinclude:: target.py
|
||||
:pyobject: block_start_with_comment
|
||||
|
||||
.. literalinclude:: target.py
|
||||
:pyobject: block_start_with_blank
|
||||
|
||||
===========================
|
||||
Literal Includes for python
|
||||
===========================
|
||||
|
||||
block start with blank or comment
|
||||
=================================
|
||||
|
||||
.. literalinclude:: target.py
|
||||
:pyobject: block_start_with_comment
|
||||
|
||||
.. literalinclude:: target.py
|
||||
:pyobject: block_start_with_blank
|
||||
|
||||
|
@ -1,47 +1,47 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2012, foof
|
||||
# This file is distributed under the same license as the foo package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-01-01 05:00+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "i18n with definition terms"
|
||||
msgstr "I18N WITH DEFINITION TERMS"
|
||||
|
||||
msgid "Some term"
|
||||
msgstr "SOME TERM"
|
||||
|
||||
msgid "The corresponding definition"
|
||||
msgstr "THE CORRESPONDING DEFINITION"
|
||||
|
||||
msgid "Some *term* `with link <https://sphinx-doc.org/>`__"
|
||||
msgstr "SOME *TERM* `WITH LINK <https://sphinx-doc.org/>`__"
|
||||
|
||||
msgid "The corresponding definition #2"
|
||||
msgstr "THE CORRESPONDING DEFINITION #2"
|
||||
|
||||
msgid "Some **term** with"
|
||||
msgstr "SOME **TERM** WITH"
|
||||
|
||||
msgid "classifier1"
|
||||
msgstr "CLASSIFIER1"
|
||||
|
||||
msgid "classifier2"
|
||||
msgstr "CLASSIFIER2"
|
||||
|
||||
msgid "Some term with"
|
||||
msgstr "SOME TERM WITH"
|
||||
|
||||
msgid "classifier[]"
|
||||
msgstr "CLASSIFIER[]"
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2012, foof
|
||||
# This file is distributed under the same license as the foo package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-01-01 05:00+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "i18n with definition terms"
|
||||
msgstr "I18N WITH DEFINITION TERMS"
|
||||
|
||||
msgid "Some term"
|
||||
msgstr "SOME TERM"
|
||||
|
||||
msgid "The corresponding definition"
|
||||
msgstr "THE CORRESPONDING DEFINITION"
|
||||
|
||||
msgid "Some *term* `with link <https://sphinx-doc.org/>`__"
|
||||
msgstr "SOME *TERM* `WITH LINK <https://sphinx-doc.org/>`__"
|
||||
|
||||
msgid "The corresponding definition #2"
|
||||
msgstr "THE CORRESPONDING DEFINITION #2"
|
||||
|
||||
msgid "Some **term** with"
|
||||
msgstr "SOME **TERM** WITH"
|
||||
|
||||
msgid "classifier1"
|
||||
msgstr "CLASSIFIER1"
|
||||
|
||||
msgid "classifier2"
|
||||
msgstr "CLASSIFIER2"
|
||||
|
||||
msgid "Some term with"
|
||||
msgstr "SOME TERM WITH"
|
||||
|
||||
msgid "classifier[]"
|
||||
msgstr "CLASSIFIER[]"
|
||||
|
@ -1,26 +1,26 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2012, foof
|
||||
# This file is distributed under the same license as the foo package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-01-29 14:10+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "i18n with glossary terms inconsistency"
|
||||
msgstr "I18N WITH GLOSSARY TERMS INCONSISTENCY"
|
||||
|
||||
msgid "link to :term:`Some term` and :term:`Some other term`."
|
||||
msgstr "LINK TO :term:`SOME NEW TERM`."
|
||||
|
||||
msgid "link to :term:`Some term`."
|
||||
msgstr "LINK TO :term:`TERM NOT IN GLOSSARY`."
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2012, foof
|
||||
# This file is distributed under the same license as the foo package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-01-29 14:10+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "i18n with glossary terms inconsistency"
|
||||
msgstr "I18N WITH GLOSSARY TERMS INCONSISTENCY"
|
||||
|
||||
msgid "link to :term:`Some term` and :term:`Some other term`."
|
||||
msgstr "LINK TO :term:`SOME NEW TERM`."
|
||||
|
||||
msgid "link to :term:`Some term`."
|
||||
msgstr "LINK TO :term:`TERM NOT IN GLOSSARY`."
|
||||
|
@ -1,29 +1,29 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2012, foof
|
||||
# This file is distributed under the same license as the foo package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-11-12 07:00+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "i18n with rubric"
|
||||
msgstr "I18N WITH RUBRIC"
|
||||
|
||||
msgid "rubric title"
|
||||
msgstr "RUBRIC TITLE"
|
||||
|
||||
msgid "rubric in the block"
|
||||
msgstr "RUBRIC IN THE BLOCK"
|
||||
|
||||
msgid "block"
|
||||
msgstr "BLOCK"
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2012, foof
|
||||
# This file is distributed under the same license as the foo package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: sphinx 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-11-12 07:00+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "i18n with rubric"
|
||||
msgstr "I18N WITH RUBRIC"
|
||||
|
||||
msgid "rubric title"
|
||||
msgstr "RUBRIC TITLE"
|
||||
|
||||
msgid "rubric in the block"
|
||||
msgstr "RUBRIC IN THE BLOCK"
|
||||
|
||||
msgid "block"
|
||||
msgstr "BLOCK"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!python
|
||||
# -*- coding: windows-1251 -*-
|
||||
|
||||
X="Õ" #:It MUST look like X="Õ"
|
||||
#!python
|
||||
# -*- coding: windows-1251 -*-
|
||||
|
||||
X="Х" #:It MUST look like X="Х"
|
Loading…
Reference in New Issue
Block a user