Changeset 829 for trunk


Ignore:
Timestamp:
Feb 6, 2016, 4:31:33 PM (4 years ago)
Author:
cito
Message:

Always use index.rst as master page

Implement the case distinction on the home page with ifconfig.

Location:
trunk/docs
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/conf.py

    r828 r829  
    4040# Add any Sphinx extension module names here, as strings. They can be
    4141# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
    42 extensions = ['sphinx.ext.autodoc']
     42extensions = ['sphinx.ext.autodoc', 'sphinx.ext.ifconfig']
    4343
    4444# Add any paths that contain templates here, relative to this directory.
     
    5454
    5555# The master toctree document.
    56 master_doc = 'index' if use_cloud_theme else 'toc'
     56master_doc = 'index'
    5757
    5858# General information about the project.
     
    9393    'community/bugtracker.rst', 'community/support.rst',
    9494    'community/homes.rst']
    95 if use_cloud_theme:
    96     # We use a naviagtion bar instead of the table of contents
    97     # and we include the about page on the index page.
    98     exclude_patterns += ['toc.rst', 'about.rst']
    99 else:
    100     exclude_patterns += ['index.rst']
    10195
    10296# The reST default role (used for this markup: `text`) for all documents.
  • trunk/docs/index.rst

    r826 r829  
    44===================
    55
    6 .. toctree::
    7     :hidden:
     6.. ifconfig:: html_theme != 'cloud'
    87
    9     copyright
    10     announce
    11     download/index
    12     contents/index
    13     community/index
     8    .. toctree::
     9        :maxdepth: 2
    1410
    15 .. include:: about.txt
     11        about
     12        copyright
     13        announce
     14        download/index
     15        contents/index
     16        community/index
     17
     18.. ifconfig:: html_theme == 'cloud'
     19
     20    .. toctree::
     21        :hidden:
     22
     23        copyright
     24        announce
     25        download/index
     26        contents/index
     27        community/index
     28
     29    .. include:: about.txt
Note: See TracChangeset for help on using the changeset viewer.