Navigation

  • index
  • modules    
  • toc    
  • next    
  • previous    
  • Cloud Sphinx Theme 1.10 Documentation »
  • API Reference »

cloud_sptheme.ext.relbar_links - adds TOC entry to relbar¶

New in version 1.8.1.

Overview¶

This Sphinx extension allows you to insert links into the navigation bar (“relbar”) at the top of bottom of all pages.

While it can be configured with arbitrary links, by default it automatically inserts a Table Of Contents entry, similar to the old python documentation format. This is mainly useful when the title link in the navigation bar has been redirected to page other than Table Of Contents (such as allowed by the roottarget option of the “Cloud” sphinx theme).

Configuration¶

By default, this inserts a “TOC” link to the right of any “Next” or “Previous” buttons, which points to your sphinx master document.

It can be customized using the following options in conf.py:

relbar_links

Optional list of links to insert, defaults to ["toc"]. Each list item can have one of four formats:

  • A dictionary containing the keys "page" and "label", as well as optional "key" and "title" keywords.

    “page” should be the an absolute path to your page (e.g. “contents”, or “lib/mypage”). “label” is the text that will be displayed on the link, “title” is the tooltip set for the link, and “key” is the accesskey for selecting the link.

  • A 2-element tuple of (page, label)

  • A 4-element tuple of (page, title, key, label)

  • The predefined string "toc", which is replaced with a table of contents link to your master document.

relbar_links_after

When inserting the links, this extension will place them as far left as possible, so long as they are to the right of any links that are included in this list. Defaults to ["next", "previous"].

Logo

Quick search

Table of Contents

  • Front Page
  • Installation Instructions
  • “Cloud” sphinx theme
  • API Reference
    • cloud_sptheme - helper functions
    • cloud_sptheme.ext.index_styling - improves css styling for genindex
    • cloud_sptheme.ext.relbar_toc - adds TOC entry to relbar
    • cloud_sptheme.ext.relbar_links - adds TOC entry to relbar
      • Overview
      • Configuration
    • cloud_sptheme.ext.autodoc_sections - support for ReST sections in docstrings
    • cloud_sptheme.ext.autoattribute_search_bases
    • cloud_sptheme.ext.docfield_markup - support ~mod.class markup in docfields
    • cloud_sptheme.ext.issue_tracker - support for issue text role
    • cloud_sptheme.ext.escaped_samp_literals - permits escaped bracket characters in samp role
    • cloud_sptheme.ext.page_only – Exclude Pages from Build
    • cloud_sptheme.ext.role_index – JSON Role Index
    • cloud_sptheme.ext.table_styling - adds directives for styling tables
    • cloud_sptheme.ext.auto_redirect – Redirect Deprecated URLs
  • Feature Test
  • Release History
  • Copyright & License

Navigation

  • index
  • modules    
  • toc    
  • next    
  • previous    
  • Cloud Sphinx Theme 1.10 Documentation »
  • API Reference »
© Copyright 2010-2019, Assurance Technologies, LLC. Created using Sphinx 1.8.5.