Skip to main content

Sphinx Material Design Theme

Project description

Requirements

  • python

    • Sphinx

Quick Start

Install the latest version of sphinx_iowmd_theme with pip.

pip install sphinx_iowmd_theme

Add the following line to conf.py.

html_theme = 'sphinx_iowmd_theme'

Html theme options

The following is a description of the options that can be specified in html_theme_options in your project’s conf.py.

html_theme_options = {
    # Specify a list of menu in Header.
    # Tuples forms:
    #  ('Name', 'external url or path of pages in the document', boolean, 'icon name')
    #
    # Third argument:
    # True indicates an external link.
    # False indicates path of pages in the document.
    #
    # Fourth argument:
    # Specify the icon name.
    # For details see link.
    # https://material.io/icons/
    'header_links' : [
        ('Home', 'index', False, 'home'),
        ("ExternalLink", "http://example.com", True, 'launch'),
        ("NoIconLink", "http://example.com", True, ''),
        ("GitHub", "https://github.com/zaniphrom/sphinx_iowmd_theme", True, 'link')
    ],

    # Customize css colors.
    # For details see link.
    # https://getmdl.io/customize/index.html
    #
    # Values: amber, blue, brown, cyan deep_orange, deep_purple, green, grey, indigo, light_blue,
    #         light_green, lime, orange, pink, purple, red, teal, yellow(Default: indigo)
    'primary_color': 'indigo',
    # Values: Same as primary_color. (Default: pink)
    'accent_color': 'pink',

    # Customize layout.
    # For details see link.
    # https://getmdl.io/components/index.html#layout-section
    'fixed_drawer': True,
    'fixed_header': True,
    'header_waterfall': True,
    'header_scroll': False,

    # Render title in header.
    # Values: True, False (Default: False)
    'show_header_title': False,
    # Render title in drawer.
    # Values: True, False (Default: True)
    'show_drawer_title': True,
    # Render footer.
    # Values: True, False (Default: True)
    'show_footer': True
    # adds google analytics through pages footer insert
    # IMPORTANT - it uses the newer 'gtag' style rather than older 'ga'
    'analytics_id': 'your-google-analytics-id'
}

Developer’s Tips

packaging

python setup.py sdist

install

pip install dist/sphinx_iowmd_theme-${version}.tar.gz

Resister PyPI

python setup.py register sdist upload

Build Example’s Document

sphinx-build -b html ./example ./_build -c ./example

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

sphinx_iowmd_theme-0.0.17.tar.gz (18.1 MB view details)

Uploaded Source

Built Distribution

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

sphinx_iowmd_theme-0.0.17-py3-none-any.whl (18.3 MB view details)

Uploaded Python 3

File details

Details for the file sphinx_iowmd_theme-0.0.17.tar.gz.

File metadata

  • Download URL: sphinx_iowmd_theme-0.0.17.tar.gz
  • Upload date:
  • Size: 18.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for sphinx_iowmd_theme-0.0.17.tar.gz
Algorithm Hash digest
SHA256 d50d08ee410a92048505fa53797b2da51dce5e875209436593e7f16d18712f4f
MD5 22d79cd1e23dbfa89a6e1842b5094d4c
BLAKE2b-256 39621c4ed5ce5bb23f2bc4f0b3cebf7efdb21e6d53121527ba68c0c5607f47c5

See more details on using hashes here.

File details

Details for the file sphinx_iowmd_theme-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: sphinx_iowmd_theme-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 18.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for sphinx_iowmd_theme-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d2ae4e383d5bfa63ac095d3dea9245052b3d41047a1b4e72701da24b42af573c
MD5 3408b17f6c858bce1b9411febba7cfe8
BLAKE2b-256 2a8f9106c3a8865a292b20a4f05cd7dfbdb08cec8d1fd7add201827f302ed02b

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