Skip to main content

Sphinx Theme for Skuid

Project description

This repository contains Skuid’s Sphinx theme.

Install

To install, run the following command and input your bitbucket credentials:

pip install skuidsphinxtheme

If you plan on editing this and want to dynamically update this theme for use in another project, clone this repo down and then run:

pip install -e .

Use

To use in another project, add this project to the setup.py file’s install_requires directive:

setup(
    ...
    install_requires=[
        'SkuidSphinxTheme>=1.0.0',
    ]
)

or add it to the project’s requirements.txt file

Then add in the conf.py of your sphinx project:

html_theme = 'skuidsphinx'

# TODO: We'd like this rolled into the theme, hopefully we can remove this later
html_sidebars = {'**': ['localtoc.html']}

Theme Options

To configure the theme for your project, you’ll need to configure the html_theme_options in your project’s conf.py file. See the variables section below for a full list of options.

html_theme_options = {
    'logo': 'skuid_developers.png',
    'logo_alt': 'Skuid Developer Documentation',
}

Variables

  • logo: Relative path (from $PROJECT/_static/) to a logo image, which will appear in the upper left corner above the name of the project.

    • See the note below about image paths.

  • logo_alt: The alt text for the logo

  • visit_link: The link for the visit button in the footer

  • visit_link_text: The text for the visit button in the footer

  • copyright_year: The year for the copyright.

    • To make things easier, add the following to your conf.py:

      # At the top
      from datetime import datetime
      
      # in the ``html_theme_options``
      html_theme_options = {
          'copyright_year': datetime.utcnow().year
      }
  • analytics_id: Set to your Google Analytics ID (e.g. UA-#######-##) to enable tracking.

Images

If you’re using a custom logo, you’ll also want to tell Sphinx where to get your images from. If so, add a line like this (changing the path if necessary; see the Sphinx docs for ‘html_static_path’):

html_static_path = ['_static']

TODO

  • Change logo to Skuid logo without text, put document title next to logo

  • Document all configurable html_theme options (from the theme.conf)

  • Figure out how to make html_sidebars option default for projects using this theme

  • Edit layout.html to fix the hardcoded “Local TOC”

  • Fix the page-width overflow issue (it pushes the sidebar-local over the right edge of the page)

  • Fix the hardcoded links at the top

  • Make TOC sub-headings indent properly (on index page)

  • Clean up search results page

    • Add search box

    • Add some padding on the left of results

Author

Shannon Hale

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SkuidSphinxTheme-0.1.9.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SkuidSphinxTheme-0.1.9-py2.py3-none-any.whl (61.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file SkuidSphinxTheme-0.1.9.tar.gz.

File metadata

File hashes

Hashes for SkuidSphinxTheme-0.1.9.tar.gz
Algorithm Hash digest
SHA256 eab84868d1435aaff037d913f7dfdf686bf9d56f2a62a1c968a0300b3d88c187
MD5 4faf8fd344e72e7346659b853c2654c1
BLAKE2b-256 5e605363456d3a5780d56939faead43355d091ac9bf323d8dd560e34c7726676

See more details on using hashes here.

File details

Details for the file SkuidSphinxTheme-0.1.9-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for SkuidSphinxTheme-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 251c39a8c8f2b5ec0175b7adcc8b7c9aca8b1895c2de2b2ba41a4b7f1e64380b
MD5 83c32f4842e472b85cc8d604f4685131
BLAKE2b-256 eab2bf81c800ad8337aa224d454f2e32b21caae8897f0e1be2d5914aa028d7ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page