Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

PyPI Travis Codecov Documentation Supported Python versions License

edx-sphinx-theme is a Sphinx theme for Open edX documentation. It should be used for all documentation in repositories in the edx GitHub organization which is intended to be used with the Sphinx documentation system.

Overview

This theme makes the following changes to the default Sphinx output:

  • Displays the edX logo

  • Adds a link to a feedback form that identifies which page the feedback came from

To use edx-sphinx-theme for a repository’s documentation:

  • pip install edx-sphinx-theme or equivalent (add edx-sphinx-theme to any appropriate requirements files)

  • Add edx_theme to the extensions list in conf.py (it adds the feedback form URL to the rendering context for each page).

  • Update the html_theme and html_theme_path values in conf.py so the theme can be located and loaded.

  • Set html_favicon to the path of the favicon.ico file in the theme.

  • Use the AUTHOR constant where appropriate in conf.py (this default is only provided as a convenience; the repository is free to use another value if appropriate).

For example:

import os
import edx_theme

extensions = ['edx_theme']

copyright = '{year}, edX Inc.'.format(year=datetime.datetime.now().year)
author = edx_theme.AUTHOR

html_theme = 'edx_theme'
html_theme_path = [edx_theme.get_html_theme_path()]
html_favicon = os.path.join(html_theme_path[0], 'edx_theme', 'static', 'css', 'favicon.ico')

latex_documents = [
    (master_doc, 'edx-sphinx-theme.tex', 'edx-sphinx-theme Documentation',
     author, 'manual'),
]

Read the Docs Configuration

Because this theme is a Python package which needs to be installed, Read the Docs needs to be configured appropriately to be able to install it when performing documentation builds. Under Advanced Settings:

  • Install your project inside a virtualenv using setup.py install should be checked

  • Requirements file should point to a pip requirements file which includes open-edx-theme.

Documentation

The full documentation is at https://edx-sphinx-theme.readthedocs.org.

License

The code in this repository is licensed under the Apache Software License 2.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

Even though they were written with edx-platform in mind, the guidelines should be followed for Open edX code in general.

Reporting Security Issues

Please do not report security issues in public. Please email security@edx.org.

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to this list of resources if you need any assistance.

Change Log

[2.0.0] - 2021-01-28

  • Dropped Python 3.5 Support

[1.6.1] - 2020-01-19

  • Fix the navigation section headers so that they are visible.

[1.6.0] - 2020-12-17

  • Updated the edX logo.

[1.5.0] -2019-06-19

  • Requirements Update

[1.4.0] - 2018-12-04

  • Added support for the includehidden theme option. This shows a hidden toc in sidebar.

  • Upgraded many dependencies.

[1.3.0] - 2017-10-13

  • Added support for the navigation_depth theme option.

[1.2.0] - 2017-07-18

  • The text of the help and feedback links are now variables settable in the html_context.

  • Updated the copyright year.

[1.1.0] - 2017-06-28

  • Supply extension metadata to enable parallel builds.

[1.0.2] - 2016-11-09

  • Added favicon and .eot font file to distributed package.

[1.0.1] - 2016-10-14

  • Fixed two instances of line-height being slightly increased in an ugly way.

[1.0] - 2016-10-07

Added

  • First release on PyPI.

Download files

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

Source Distribution

edx-sphinx-theme-2.0.0.tar.gz (237.5 kB view details)

Uploaded Source

Built Distribution

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

edx_sphinx_theme-2.0.0-py2.py3-none-any.whl (233.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file edx-sphinx-theme-2.0.0.tar.gz.

File metadata

  • Download URL: edx-sphinx-theme-2.0.0.tar.gz
  • Upload date:
  • Size: 237.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for edx-sphinx-theme-2.0.0.tar.gz
Algorithm Hash digest
SHA256 95f905ddfa7ec70bad7bc10f11fa59e6251aa750d9a8d2018c65a11f6858bcac
MD5 78dd0c26600640fea5b4fb200b98ea8e
BLAKE2b-256 597a10e39d3967419fb3ece96f28093ebd4e2df263c24a317f8273a19eef51a3

See more details on using hashes here.

File details

Details for the file edx_sphinx_theme-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: edx_sphinx_theme-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 233.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for edx_sphinx_theme-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b05408bfcc47dd55bd3e100bd60fd1f6d7b631103a388a3a036bbf6225ac81b1
MD5 4f8db959f4b3544e410ba290771a887b
BLAKE2b-256 daaef409c6b93b15a8900f1d30d50b575d307e77ea90cf64154cbb2d360306b5

See more details on using hashes here.

Release history Release notifications | RSS feed

3.1.0

2 files

This release

2.0.0 This release

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page