Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
f370bfb1
Kaydet (Commit)
f370bfb1
authored
May 17, 2017
tarafından
Dmitry Shachnev
Kaydeden (comit)
Tim Graham
May 24, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed docs build with Sphinx 1.6.
üst
6092ea8f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
Makefile
docs/Makefile
+5
-1
djangodocs.py
docs/_ext/djangodocs.py
+6
-3
conf.py
docs/conf.py
+2
-4
No files found.
docs/Makefile
Dosyayı görüntüle @
f370bfb1
...
...
@@ -9,10 +9,14 @@ PAPER ?=
BUILDDIR
?=
_build
LANGUAGE
?=
# Convert something like "en_US" to "en", because Sphinx does not recognize
# underscores. Country codes should be passed using a dash, e.g. "pt-BR".
LANGUAGEOPT
=
$
(
firstword
$
(
subst _, ,
$(LANGUAGE)
))
# Internal variables.
PAPEROPT_a4
=
-D
latex_paper_size
=
a4
PAPEROPT_letter
=
-D
latex_paper_size
=
letter
ALLSPHINXOPTS
=
-n
-d
$(BUILDDIR)
/doctrees
-D
language
=
$(LANGUAGE)
$
(
PAPEROPT_
$(PAPER)
)
$(SPHINXOPTS)
.
ALLSPHINXOPTS
=
-n
-d
$(BUILDDIR)
/doctrees
-D
language
=
$(LANGUAGE
OPT
)
$
(
PAPEROPT_
$(PAPER)
)
$(SPHINXOPTS)
.
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS
=
$
(
PAPEROPT_
$(PAPER)
)
$(SPHINXOPTS)
.
...
...
docs/_ext/djangodocs.py
Dosyayı görüntüle @
f370bfb1
...
...
@@ -13,7 +13,10 @@ from sphinx.domains.std import Cmdoption
from
sphinx.util.compat
import
Directive
from
sphinx.util.console
import
bold
from
sphinx.util.nodes
import
set_source_info
from
sphinx.writers.html
import
SmartyPantsHTMLTranslator
try
:
from
sphinx.writers.html
import
SmartyPantsHTMLTranslator
as
HTMLTranslator
except
ImportError
:
# Sphinx 1.6+
from
sphinx.writers.html
import
HTMLTranslator
# RE for option descriptions without a '--' prefix
simple_option_desc_re
=
re
.
compile
(
...
...
@@ -226,7 +229,7 @@ class VersionDirective(Directive):
return
ret
class
DjangoHTMLTranslator
(
SmartyPants
HTMLTranslator
):
class
DjangoHTMLTranslator
(
HTMLTranslator
):
"""
Django-specific reST to HTML tweaks.
"""
...
...
@@ -287,7 +290,7 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
old_ids
=
node
.
get
(
'ids'
,
[])
node
[
'ids'
]
=
[
's-'
+
i
for
i
in
old_ids
]
node
[
'ids'
]
.
extend
(
old_ids
)
SmartyPantsHTMLTranslator
.
visit_section
(
self
,
node
)
super
()
.
visit_section
(
node
)
node
[
'ids'
]
=
old_ids
...
...
docs/conf.py
Dosyayı görüntüle @
f370bfb1
...
...
@@ -48,6 +48,8 @@ extensions = [
# Add it only if spelling check is requested so docs can be generated without it.
if
'spelling'
in
sys
.
argv
:
extensions
.
append
(
"sphinxcontrib.spelling"
)
# Workaround for https://bitbucket.org/dhellmann/sphinxcontrib-spelling/issues/13
html_use_smartypants
=
False
# Spelling language.
spelling_lang
=
'en_US'
...
...
@@ -182,10 +184,6 @@ html_theme_path = ["_theme"]
# using the given strftime format.
html_last_updated_fmt
=
'
%
b
%
d,
%
Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
html_use_smartypants
=
True
# Content template for the index page.
# html_index = ''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment