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
fca677fa
Kaydet (Commit)
fca677fa
authored
Agu 19, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added sphinx extension to ease generation of ticket links.
üst
5f2542f1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
16 deletions
+61
-16
ticket_role.py
docs/_ext/ticket_role.py
+38
-0
conf.py
docs/conf.py
+9
-1
writing-documentation.txt
docs/internals/contributing/writing-documentation.txt
+4
-0
1.6.6.txt
docs/releases/1.6.6.txt
+10
-15
No files found.
docs/_ext/ticket_role.py
0 → 100644
Dosyayı görüntüle @
fca677fa
"""
An interpreted text role to link docs to Trac tickets.
To use: :ticket:`XXXXX`
Based on code from psycopg2 by Daniele Varrazzo.
"""
from
docutils
import
nodes
,
utils
from
docutils.parsers.rst
import
roles
def
ticket_role
(
name
,
rawtext
,
text
,
lineno
,
inliner
,
options
=
None
,
content
=
None
):
if
options
is
None
:
options
=
{}
try
:
num
=
int
(
text
.
replace
(
'#'
,
''
))
except
ValueError
:
msg
=
inliner
.
reporter
.
error
(
"ticket number must be... a number, got '
%
s'"
%
text
)
prb
=
inliner
.
problematic
(
rawtext
,
rawtext
,
msg
)
return
[
prb
],
[
msg
]
url_pattern
=
inliner
.
document
.
settings
.
env
.
app
.
config
.
ticket_url
if
url_pattern
is
None
:
msg
=
inliner
.
reporter
.
warning
(
"ticket not configured: please configure ticket_url in conf.py"
)
prb
=
inliner
.
problematic
(
rawtext
,
rawtext
,
msg
)
return
[
prb
],
[
msg
]
url
=
url_pattern
%
num
roles
.
set_classes
(
options
)
node
=
nodes
.
reference
(
rawtext
,
'#'
+
utils
.
unescape
(
text
),
refuri
=
url
,
**
options
)
return
[
node
],
[]
def
setup
(
app
):
app
.
add_config_value
(
'ticket_url'
,
None
,
'env'
)
app
.
add_role
(
'ticket'
,
ticket_role
)
docs/conf.py
Dosyayı görüntüle @
fca677fa
...
@@ -31,7 +31,12 @@ needs_sphinx = '1.0'
...
@@ -31,7 +31,12 @@ needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be extensions
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions
=
[
"djangodocs"
,
"sphinx.ext.intersphinx"
,
"sphinx.ext.viewcode"
]
extensions
=
[
"djangodocs"
,
"sphinx.ext.intersphinx"
,
"sphinx.ext.viewcode"
,
"ticket_role"
,
]
# Spelling check needs an additional module that is not installed by default.
# Spelling check needs an additional module that is not installed by default.
# Add it only if spelling check is requested so docs can be generated without it.
# Add it only if spelling check is requested so docs can be generated without it.
...
@@ -349,3 +354,6 @@ epub_cover = ('', 'epub-cover.html')
...
@@ -349,3 +354,6 @@ epub_cover = ('', 'epub-cover.html')
# If false, no index is generated.
# If false, no index is generated.
#epub_use_index = True
#epub_use_index = True
# -- ticket options ------------------------------------------------------------
ticket_url
=
'https://code.djangoproject.com/ticket/
%
s'
docs/internals/contributing/writing-documentation.txt
Dosyayı görüntüle @
fca677fa
...
@@ -192,6 +192,10 @@ __ http://sphinx-doc.org/markup/
...
@@ -192,6 +192,10 @@ __ http://sphinx-doc.org/markup/
To link, use ``:djadminopt:`--traceback```.
To link, use ``:djadminopt:`--traceback```.
* Links to Trac tickets (typically reserved for minor release notes)::
:ticket:`12345`
.. _documenting-new-features:
.. _documenting-new-features:
Documenting new features
Documenting new features
...
...
docs/releases/1.6.6.txt
Dosyayı görüntüle @
fca677fa
...
@@ -10,36 +10,31 @@ Bugfixes
...
@@ -10,36 +10,31 @@ Bugfixes
========
========
* Corrected email and URL validation to reject a trailing dash
* Corrected email and URL validation to reject a trailing dash
(
`#22579 <http://code.djangoproject.com/ticket/22579>`_
).
(
:ticket:`22579`
).
* Prevented indexes on PostgreSQL virtual fields
* Prevented indexes on PostgreSQL virtual fields (:ticket:`22514`).
(`#22514 <http://code.djangoproject.com/ticket/22514>`_).
* Prevented edge case where values of FK fields could be initialized with a
* Prevented edge case where values of FK fields could be initialized with a
wrong value when an inline model formset is created for a relationship
wrong value when an inline model formset is created for a relationship
defined to point to a field other than the PK
defined to point to a field other than the PK (:ticket:`13794`).
(`#13794 <https://code.djangoproject.com/ticket/13794>`_).
* Restored ``pre_delete`` signals for ``GenericRelation`` cascade deletion
* Restored ``pre_delete`` signals for ``GenericRelation`` cascade deletion
(
`#22998 <https://code.djangoproject.com/ticket/22998>`_
).
(
:ticket:`22998`
).
* Fixed transaction handling when specifying non-default database in
* Fixed transaction handling when specifying non-default database in
``createcachetable`` and ``flush``
``createcachetable`` and ``flush`` (:ticket:`23089`).
(`#23089 <https://code.djangoproject.com/ticket/23089>`_).
* Fixed the "ORA-01843: not a valid month" errors when using Unicode
* Fixed the "ORA-01843: not a valid month" errors when using Unicode
with older versions of Oracle server
with older versions of Oracle server (:ticket:`20292`).
(`#20292 <https://code.djangoproject.com/ticket/20292>`_).
* Restored bug fix for sending unicode email with Python 2.6.5 and below
* Restored bug fix for sending unicode email with Python 2.6.5 and below
(
`#19107 <https://code.djangoproject.com/ticket/19107>`_
).
(
:ticket:`19107`
).
* Prevented ``UnicodeDecodeError`` in ``runserver`` with non-UTF-8 and
* Prevented ``UnicodeDecodeError`` in ``runserver`` with non-UTF-8 and
non-English locale (
`#23265 <https://code.djangoproject.com/ticket/23265>`_
).
non-English locale (
:ticket:`23265`
).
* Fixed JavaScript errors while editing multi-geometry objects in the OpenLayers
* Fixed JavaScript errors while editing multi-geometry objects in the OpenLayers
widget (`#23137 <https://code.djangoproject.com/ticket/23137>`_,
widget (:ticket:`23137`, :ticket:`23293`).
`#23293 <https://code.djangoproject.com/ticket/23293>`_).
* Prevented a crash on Python 3 with query strings containing unencoded
* Prevented a crash on Python 3 with query strings containing unencoded
non-ASCII characters (
`#22996 <http://code.djangoproject.com/ticket/22996>`_
).
non-ASCII characters (
:ticket:`22996`
).
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