Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
160cbce9
Commit
160cbce9
authored
Oct 29, 2014
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Sphinx templates and extensions to their own subdirs.
parent
8a91c5b9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
26 deletions
+10
-26
Doc/conf.py
Doc/conf.py
+9
-25
Doc/tools/extensions/c_annotations.py
Doc/tools/extensions/c_annotations.py
+0
-0
Doc/tools/extensions/patchlevel.py
Doc/tools/extensions/patchlevel.py
+0
-0
Doc/tools/extensions/pyspecific.py
Doc/tools/extensions/pyspecific.py
+0
-0
Doc/tools/extensions/suspicious.py
Doc/tools/extensions/suspicious.py
+1
-1
Doc/tools/templates/download.html
Doc/tools/templates/download.html
+0
-0
Doc/tools/templates/indexcontent.html
Doc/tools/templates/indexcontent.html
+0
-0
Doc/tools/templates/indexsidebar.html
Doc/tools/templates/indexsidebar.html
+0
-0
Doc/tools/templates/layout.html
Doc/tools/templates/layout.html
+0
-0
Doc/tools/templates/opensearch.xml
Doc/tools/templates/opensearch.xml
+0
-0
No files found.
Doc/conf.py
View file @
160cbce9
...
...
@@ -8,26 +8,18 @@
# that aren't pickleable (module imports are okay, they're removed automatically).
import
sys
,
os
,
time
sys
.
path
.
append
(
os
.
path
.
abspath
(
'tools'
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
'tools
/extensions
'
))
# General configuration
# ---------------------
extensions
=
[
'sphinx.ext.coverage'
,
'sphinx.ext.doctest'
,
'pyspecific'
,
'c_annotations'
]
templates_path
=
[
'tools'
]
# General substitutions.
project
=
'Python'
copyright
=
'1990-%s, Python Software Foundation'
%
time
.
strftime
(
'%Y'
)
# The default replacements for |version| and |release|.
#
# The short X.Y version.
# version = '2.6'
# The full version, including alpha/beta/rc tags.
# release = '2.6a0'
# We look for the Include/patchlevel.h file in the current Python source tree
# and replace the values accordingly.
import
patchlevel
...
...
@@ -46,19 +38,6 @@ exclude_patterns = [
'library/xml.etree.rst'
,
]
# Ignore .rst in Sphinx its self.
exclude_trees
=
[
'tools/sphinx'
]
# Relative filename of the reference count data file.
refcount_file
=
'data/refcounts.dat'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses
=
True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names
=
True
# Require Sphinx 1.2 for build.
needs_sphinx
=
'1.2'
...
...
@@ -73,9 +52,8 @@ html_theme_options = {'collapsiblesidebar': True}
# 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
# Path to find HTML templates.
templates_path
=
[
'tools/templates'
]
# Custom sidebar templates, filenames relative to this file.
html_sidebars
=
{
...
...
@@ -192,3 +170,9 @@ coverage_c_regexes = {
coverage_ignore_c_items
=
{
# 'cfunction': [...]
}
# Options for extensions
# ----------------------
# Relative filename of the reference count data file.
refcount_file
=
'data/refcounts.dat'
Doc/tools/c_annotations.py
→
Doc/tools/
extensions/
c_annotations.py
View file @
160cbce9
File moved
Doc/tools/patchlevel.py
→
Doc/tools/
extensions/
patchlevel.py
View file @
160cbce9
File moved
Doc/tools/pyspecific.py
→
Doc/tools/
extensions/
pyspecific.py
View file @
160cbce9
File moved
Doc/tools/suspicious.py
→
Doc/tools/
extensions/
suspicious.py
View file @
160cbce9
...
...
@@ -91,7 +91,7 @@ class CheckSuspiciousMarkupBuilder(Builder):
self
.
log_file_name
=
os
.
path
.
join
(
self
.
outdir
,
'suspicious.csv'
)
open
(
self
.
log_file_name
,
'w'
).
close
()
# load database of previously ignored issues
self
.
load_rules
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
self
.
load_rules
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'susp-ignored.csv'
))
def
get_outdated_docs
(
self
):
...
...
Doc/tools/download.html
→
Doc/tools/
templates/
download.html
View file @
160cbce9
File moved
Doc/tools/indexcontent.html
→
Doc/tools/
templates/
indexcontent.html
View file @
160cbce9
File moved
Doc/tools/indexsidebar.html
→
Doc/tools/
templates/
indexsidebar.html
View file @
160cbce9
File moved
Doc/tools/layout.html
→
Doc/tools/
templates/
layout.html
View file @
160cbce9
File moved
Doc/tools/opensearch.xml
→
Doc/tools/
templates/
opensearch.xml
View file @
160cbce9
File moved
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