Metadata-Version: 2.1
Name: sphinx-bootstrap-theme
Version: 0.1.4
Summary: Sphinx Bootstrap Theme.
Home-page: http://ryan-roemer.github.com/sphinx-bootstrap-theme/README.html
Author: Ryan Roemer
Author-email: ryan@loose-bits.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Documentation
License-File: LICENSE.txt
Requires-Dist: distribute

b'========================\n Sphinx Bootstrap Theme\n========================\n\nThis Sphinx_ theme_ integrates the Twitter Bootstrap_ CSS / JavaScript\nframework with various layout options, hierarchical menu navigation,\nand mobile-friendly responsive design.\n\n.. _Bootstrap: http://twitter.github.com/bootstrap/\n.. _Sphinx: http://sphinx.pocoo.org/\n.. _theme: http://sphinx.pocoo.org/theming.html\n.. _PyPI: http://pypi.python.org/pypi/sphinx-bootstrap-theme/\n.. _GitHub repository: https://github.com/ryan-roemer/sphinx-bootstrap-theme\n\n\nIntroduction and Demos\n======================\nThe theme is introduced and discussed in two blog posts:\n\n* 12/09/2011 - `Twitter Bootstrap Theme for Sphinx <http://loose-bits.com/2011/12/09/sphinx-twitter-bootstrap-theme.html>`_\n* 11/19/2012 - `Sphinx Bootstrap Theme Updates - Mobile, Dropdowns, and More <http://loose-bits.com/2012/11/19/sphinx-bootstrap-theme-updates.html>`_\n\nHere is the theme in use for some of my public projects:\n\n* `Sphinx Bootstrap Theme`_: This project, with a dark top navbar, using\n  the theme option ``\'navbar_class\': "navbar navbar-inverse"``.\n* `Django Cloud Browser`_: A Django reusable app for browsing cloud\n  datastores (e.g., Amazon Web Services S3).\n\nThe theme demo website also includes an `examples page`_ for some useful\nillustrations of getting Sphinx to play nicely with Bootstrap (also take a\nlook at the `examples source`_ for the underlying reStructuredText).\n\n.. _Sphinx Bootstrap Theme: http://ryan-roemer.github.com/sphinx-bootstrap-theme\n.. _examples page: http://ryan-roemer.github.com/sphinx-bootstrap-theme/examples.html\n.. _examples source: http://ryan-roemer.github.com/sphinx-bootstrap-theme/_sources/examples.txt\n.. _Django Cloud Browser: http://ryan-roemer.github.com/django-cloud-browser\n\n\nInstallation\n============\nInstallation from PyPI_ is fairly straightforward:\n\n1. Install the package::\n\n      $ pip install sphinx_bootstrap_theme\n\n2. Edit the "conf.py" configuration file to point to the bootstrap theme::\n\n      # At the top.\n      import sphinx_bootstrap_theme\n\n      # ...\n\n      # Activate the theme.\n      html_theme = \'bootstrap\'\n      html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()\n\n..\n  The theme can be installed from PyPI_ or downloaded as a zip file from\n  GitHub.\n\n  Install Python Package from PyPI\n  --------------------------------\n\n  Download Zip Bundle\n  -------------------\n  To install the theme from a bundled zip file, download the theme\n  bundle from the theme website and update your configuration:\n\n  1. Create a "_themes" directory in your project source root.\n  2. Get the "bootstrap" theme either as raw files or as a zipfile.\n\n     a. Most current way is to just clone this repo or download the full\n        repo source and move the "bootstrap" directory to "_themes".\n     b. Alternatively, there are some prepackaged theme zip files (containing\n        only the theme files), which can be read directly by Sphinx. See the\n        downloads_ page for available packages. Then download\n        "bootstrap.zip"::\n\n          $ cd /path/to/_themes\n          $ wget https://github.com/ryan-roemer/sphinx-bootstrap-theme/_static/downloads/bootstrap.zip\n\n  3. Edit the "conf.py" configuration file to point to the bootstrap theme::\n\n        # Activate the theme.\n        sys.path.append(os.path.abspath(\'_themes\'))\n        html_theme = \'bootstrap\'\n        html_theme_path = [\'_themes\']\n\n  .. _downloads: http://ryan-roemer.github.com/sphinx-bootstrap-theme/downloads.html\n\n\nCustomization\n=============\nThe can be customized in varying ways (some a little more work than others).\n\nTheme Options\n-------------\nThe theme provides many built-in options that can be configured by editing\nyour "conf.py" file::\n\n    # (Optional) Use a shorter name to conserve nav. bar space.\n    html_short_title = "Demo"\n\n    # (Optional) Logo. Should be exactly 24x24 px to fit the nav. bar.\n    # Path should be relative to the static files directory.\n    html_logo = "my_logo.png"\n\n    # Theme options are theme-specific and customize the look and feel of a\n    # theme further.\n    html_theme_options = {\n        # Global TOC depth for "site" navbar tab. (Default: 1)\n        # Switching to -1 shows all levels.\n        \'globaltoc_depth\': 2,\n\n        # HTML navbar class (Default: "navbar") to attach to <div> element.\n        # For black navbar, do "navbar navbar-inverse"\n        \'navbar_class\': "navbar navbar-inverse",\n\n        # Fix navigation bar to top of page?\n        # Values: "true" (default) or "false"\n        \'navbar_fixed_top\': "true",\n\n        # Location of link to source.\n        # Options are "nav" (default), "footer" or anything else to exclude.\n        \'source_link_position\': "nav",\n    }\n\n\nExtending "layout.html"\n-----------------------\nAs a more "hands on" approach to customization, you can override any template\nin this Sphinx theme or any others. A good candidate for changes is\n"layout.html", which provides most of the look and feel. First, take a look\nat the "`layout.html <_layout>`_" file that the theme provides, and figure out\nwhat you need to override.\n\nThen, create your own "_templates" directory and "layout.html" file (assuming\nyou build from a "source" directory)::\n\n    $ mkdir source/_templates\n    $ touch source/_templates/layout.html\n\nThen, configure your "conf.py"::\n\n    templates_path = [\'_templates\']\n\nFinally, edit your override file "source/_templates/layout.html"::\n\n    {# Import the theme\'s layout. #}\n    {% extends "!layout.html" %}\n\n    {# Add some extra stuff before and use exiting with \'super()\' call. #}\n    {% block footer %}\n      <h2>My footer of awesomeness.</h2>\n      {{ super() }}\n    {% endblock %}\n\n.. _layout: https://github.com/ryan-roemer/sphinx-bootstrap-theme/blob/master/demo/source/_templates/layout.html\n\nAdding Custom CSS\n-----------------\nAlternately, you could add your own custom static media directory with a CSS\nfile to override a style, which in the demo would be something like::\n\n    $ mkdir source/_static\n    $ touch source/_static/my-styles.css\n\nThen, in "conf.py", edit this line::\n\n    html_static_path = ["_static"]\n\nYou will also need the override template "source/_templates/layout.html" file\nconfigured as above, but with the following code::\n\n    {# Import the theme\'s layout. #}\n    {% extends "!layout.html" %}\n\n    {# Include our new CSS file into existing ones. #}\n    {% set css_files = css_files + [\'_static/my-styles.css\']%}\n\nThen, in the new file "source/_static/my-styles.css", add any appropriate\nstyling, e.g. a top border on the container::\n\n    footer {\n      background-color: red;\n    }\n\n\nTheme Notes\n===========\nSphinx\n------\nThe theme places the global TOC, local TOC, navigation (prev, next) and\nsource links all in the top Bootstrap navigation bar, along with the Sphinx\nsearch bar on the left side.\n\nThe global (site-wide) table of contents is the "Site" navigation dropdown,\nwhich is a configurable level rendering of the ``toctree`` for the entire site.\nThe local (page-level) table of contents is the "Page" navigation dropdown,\nwhich is a multi-level rendering of the current page\'s ``toc``.\n\n\nBootstrap\n---------\nThe theme uses Twitter Bootstrap v2.3.0 and jQuery v.1.9.1. As the jQuery that\nBootstrap wants can radically depart from the jQuery Sphinx internal libraries\nuse, the library from this theme is integrated via ``noConflict()`` as\n``$jqTheme``.\n\nYou can override any static JS/CSS files by dropping different versions in your\nSphinx "_static" directory.\n\n\nLicenses\n========\nSphinx Bootstrap Theme is licensed under the MIT_ license.\n\nTwitter Bootstrap is licensed under the Apache_ license.\n\n.. _MIT: https://github.com/ryan-roemer/sphinx-bootstrap-theme/blob/master/LICENSE.txt\n.. _Apache: https://github.com/twitter/bootstrap/blob/master/LICENSE\n'

