Steve Piercy
2015-04-18 4ce0f5a01a69c0b7c256b6dddc2ca17931a6ef5b
Merge pull request #1640 from stevepiercy/1.4-branch

replace git submodule with new pylons-sphinx-themes package. See #1614, #1596
2 files deleted
5 files modified
50 ■■■■ changed files
.gitmodules 3 ●●●●● patch | view | raw | blame | history
docs/Makefile 7 ●●●● patch | view | raw | blame | history
docs/_themes 1 ●●●● patch | view | raw | blame | history
docs/conf.py 30 ●●●● patch | view | raw | blame | history
docs/glossary.rst 7 ●●●●● patch | view | raw | blame | history
rtd.txt 1 ●●●● patch | view | raw | blame | history
setup.py 1 ●●●● patch | view | raw | blame | history
.gitmodules
File was deleted
docs/Makefile
@@ -25,7 +25,7 @@
clean:
    -rm -rf _build/*
html: themes
html:
    mkdir -p _build/html _build/doctrees
    $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
    @echo
@@ -47,7 +47,7 @@
web: pickle
htmlhelp: themes
htmlhelp:
    mkdir -p _build/htmlhelp _build/doctrees
    $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
    @echo
@@ -83,6 +83,3 @@
    $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) _build/epub
    @echo
    @echo "Build finished. The epub file is in _build/epub."
themes:
    cd ..; git submodule update --init --recursive; cd docs;
docs/_themes
File was deleted
docs/conf.py
@@ -16,6 +16,7 @@
import datetime
import inspect
import warnings
import pylons_sphinx_themes
warnings.simplefilter('ignore', DeprecationWarning)
@@ -82,7 +83,7 @@
# other places throughout the built documents.
#
# The short X.Y version.
version = '1.4.7'
version = '1.4.8'
# The full version, including alpha/beta/rc tags.
release = version
@@ -130,33 +131,8 @@
# -----------------------
# Add and use Pylons theme
if 'sphinx-build' in ' '.join(sys.argv):  # protect against dumb importers
    from subprocess import call, Popen, PIPE
    p = Popen('which git', shell=True, stdout=PIPE)
    cwd = os.getcwd()
    _themes = os.path.join(cwd, '_themes')
    git = p.stdout.read().strip()
    if not os.listdir(_themes):
        call([git, 'submodule', '--init'])
    else:
        call([git, 'submodule', 'update'])
    sys.path.append(os.path.abspath('_themes'))
    parent = os.path.dirname(os.path.dirname(__file__))
    sys.path.append(os.path.abspath(parent))
    wd = os.getcwd()
    os.chdir(parent)
    os.system('%s setup.py test -q' % sys.executable)
    os.chdir(wd)
    for item in os.listdir(parent):
        if item.endswith('.egg'):
            sys.path.append(os.path.join(parent, item))
html_theme_path = ['_themes']
html_theme = 'pyramid'
html_theme_path = pylons_sphinx_themes.get_html_themes_path()
html_theme_options = dict(
    github_url='https://github.com/Pylons/pyramid',
#    in_progress='true',
docs/glossary.rst
@@ -727,6 +727,13 @@
     translation domain is represnted by a collection of ``.mo`` files
     within one or more :term:`translation directory` directories.
   Translation Context
     A string representing the "context" in which a translation was
     made within a given :term:`translation domain`. See the gettext
     documentation, `11.2.5 Using contexts for solving ambiguities
     <https://www.gnu.org/software/gettext/manual/gettext.html#Contexts>`_
     for more information.
   Translator
     A callable which receives a :term:`translation string` and returns a
     translated Unicode object for the purposes of internationalization.  A
rtd.txt
@@ -2,3 +2,4 @@
repoze.sphinx.autointerface
repoze.lru
pylons_sphinx_latesturl
pylons-sphinx-themes
setup.py
@@ -59,6 +59,7 @@
    'Sphinx >= 1.2.3',
    'docutils',
    'repoze.sphinx.autointerface',
    'pylons-sphinx-themes >= 0.3',
    ]
testing_extras = tests_require + [