Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A set of Furo theme extensions to make a Sphinx site have BeeWare site branding.

License

Notifications You must be signed in to change notification settings

beeware/beeware-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

BeeWare Theme Templates

A collection of template files to override the Furo Sphinx theme with BeeWare header and sidebar branding.

Usage

These template files are designed to override the Furo Sphinx theme, and will therefore only work if the Furo theme is enabled. The following is required to enable these theme elements on a BeeWare repository's Read the Docs documentation.

  1. Update the pyproject.toml [docs] extra list to include the following:
"beeware_theme @ git+https://github.com/beeware/beeware-theme",
  1. Add the following to docs/conf.py:
import beeware_theme


templates_path = []
html_static_path = []
html_css_files = []
html_context = {}
html_theme_options = {}

beeware_theme.init(
    project_name="my_project",
    templates=templates_path,
    context=html_context,
    static=html_static_path,
    css=html_css_files,
    theme_options=html_theme_options,
)

In this configuration, my_project is the GitHub project name. You can put any other content in template_paths, html_static_path, html_css_files, html_context or html_theme_options as is required by the local project.

Testing

To test this theme, create a virtual environment, and run:

(venv) $ pip install -e ".[dev]"
(venv) $ tox -e docs-live

This will serve a test project with the theme applied.

About

A set of Furo theme extensions to make a Sphinx site have BeeWare site branding.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 3

  •  
  •  
  •