From b09e628b0f33614e81521ad60e94472a0db09a4d Mon Sep 17 00:00:00 2001
From: Georg Brandl
Date: Wed, 16 Jan 2008 20:27:25 +0000
Subject: [PATCH] A few refactorings in Sphinx.
---
sphinx/__init__.py | 35 +-
sphinx/_jinja.py | 34 +-
sphinx/addnodes.py | 2 +
sphinx/builder.py | 367 ++++++++++--------
sphinx/directives.py | 14 +-
sphinx/environment.py | 91 +++--
sphinx/highlighting.py | 12 +-
sphinx/htmlhelp.py | 32 +-
sphinx/htmlwriter.py | 7 +-
sphinx/latexwriter.py | 22 +-
sphinx/patchlevel.py | 8 +-
sphinx/refcounting.py | 7 +-
sphinx/roles.py | 7 +-
sphinx/search.py | 35 +-
sphinx/style/default.css | 2 +-
sphinx/style/rightsidebar.css | 2 +-
sphinx/style/searchtools.js | 51 +--
sphinx/style/stickysidebar.css | 2 +-
sphinx/style/traditional.css | 2 +-
.../frameset.html} | 2 +-
sphinx/templates/{ => changes}/rstsource.html | 2 +-
.../{ => changes}/versionchanges.html | 2 +-
sphinx/templates/download.html | 53 ---
sphinx/templates/index.html | 66 +---
sphinx/templates/layout.html | 90 ++++-
sphinx/templates/search.html | 27 +-
sphinx/templates/show_source.html | 6 -
sphinx/templates/sidebar.html | 62 ---
sphinx/templates/{ => web}/_commentform.html | 0
.../{ => web}/admin/change_password.html | 0
sphinx/templates/{ => web}/admin/index.html | 0
sphinx/templates/{ => web}/admin/layout.html | 0
sphinx/templates/{ => web}/admin/login.html | 0
.../{ => web}/admin/manage_users.html | 0
.../{ => web}/admin/moderate_comments.html | 4 +-
sphinx/templates/{ => web}/commentform.html | 2 +-
sphinx/templates/{ => web}/comments.html | 0
sphinx/templates/{ => web}/edit.html | 7 +-
.../templates/{ => web}/inlinecomments.html | 0
.../{ => web}/keyword_not_found.html | 6 +-
sphinx/templates/{ => web}/not_found.html | 2 +-
sphinx/templates/{ => web}/settings.html | 6 +-
sphinx/templates/{ => web}/submitted.html | 2 +-
sphinx/util/__init__.py | 8 -
sphinx/util/stemmer.py | 1 -
sphinx/web/admin.py | 6 +-
sphinx/web/antispam.py | 12 +-
sphinx/web/application.py | 123 +++---
sphinx/web/database.py | 10 +-
sphinx/web/markup.py | 4 +-
sphinx/web/oldurls.py | 4 +-
sphinx/web/serve.py | 2 +-
sphinx/web/userdb.py | 20 +-
sphinx/web/util.py | 15 +-
sphinx/web/webconf.py | 2 +-
sphinx/web/wsgiutil.py | 20 +-
56 files changed, 631 insertions(+), 667 deletions(-)
rename sphinx/templates/{versionchanges_frameset.html => changes/frameset.html} (72%)
rename sphinx/templates/{ => changes}/rstsource.html (79%)
rename sphinx/templates/{ => changes}/versionchanges.html (91%)
delete mode 100644 sphinx/templates/download.html
delete mode 100644 sphinx/templates/show_source.html
delete mode 100644 sphinx/templates/sidebar.html
rename sphinx/templates/{ => web}/_commentform.html (100%)
rename sphinx/templates/{ => web}/admin/change_password.html (100%)
rename sphinx/templates/{ => web}/admin/index.html (100%)
rename sphinx/templates/{ => web}/admin/layout.html (100%)
rename sphinx/templates/{ => web}/admin/login.html (100%)
rename sphinx/templates/{ => web}/admin/manage_users.html (100%)
rename sphinx/templates/{ => web}/admin/moderate_comments.html (98%)
rename sphinx/templates/{ => web}/commentform.html (93%)
rename sphinx/templates/{ => web}/comments.html (100%)
rename sphinx/templates/{ => web}/edit.html (87%)
rename sphinx/templates/{ => web}/inlinecomments.html (100%)
rename sphinx/templates/{ => web}/keyword_not_found.html (81%)
rename sphinx/templates/{ => web}/not_found.html (74%)
rename sphinx/templates/{ => web}/settings.html (87%)
rename sphinx/templates/{ => web}/submitted.html (76%)
diff --git a/sphinx/__init__.py b/sphinx/__init__.py
index 593bd20dc..82cbb55eb 100644
--- a/sphinx/__init__.py
+++ b/sphinx/__init__.py
@@ -3,7 +3,7 @@
Sphinx
~~~~~~
- The Python documentation toolchain.
+ The Sphinx documentation toolchain.
:copyright: 2007-2008 by Georg Brandl.
:license: BSD.
@@ -14,8 +14,8 @@ import getopt
from os import path
from cStringIO import StringIO
-from .builder import builders
-from .util.console import nocolor
+from sphinx.builder import builders
+from sphinx.util.console import nocolor
__version__ = '$Revision: 5369 $'
@@ -31,7 +31,6 @@ options: -b -- builder to use (one of %s)
-E -- don't use a saved environment, always read all files
-d -- path for the cached environment and doctree files
(default outdir/.doctrees)
- -O
{% endif %}