An extension of the MkDocs Material Theme for ASF
Project description
ASF MkDocs Theme
An extension of the MkDocs Material Theme for ASF.
Quickstart
This theme is distributed on PyPI and can be installed into a Python 3.8+ environment using pip
:
python -m pip install mkdocs-asf-theme
To use this theme, add the following lines to your mkdocs.yml
:
theme:
name: asf-theme
To see an example of using this theme, see ASF HyP3's MkDocs repository which generates ASF HyP3's documentation.
Customization
This theme has been developed with sensible defaults to be used out-of-the-box by ASF documentation sites. While sections below describe how to customize the ASF-specific features of this theme, we hope most users won't need them.
Because this theme is an extension of the MkDocs Material Theme, advanced customization can be done by following the MkDocs Material Theme documentation. However, please consider either:
- opening an issue and requesting any customization you need to be incorporated into this theme
- Opening a pull request to this theme with your customizations so they are available to all ASF documentation sites
Analytics
This theme will provide Google Analytics integration for an ASF documentation site.
However, analytics can be customized in your mkdocs.yml
with
google_analytics:
- UA-XXXXXXXX-X
- auto # or a specific site URL
To turn off analytics entirely, remove the site level google_analytics
configuration and clear the theme one with
theme:
name: asf-theme
google_analytics:
Logos
This theme will provide both the ASF logo and a site logo.
ASF logo
You can change the ASF logo and/or logo URL with
theme:
name: asf-theme
asf_logo: images/asf-altenate-logo.png
asf_logo_url: https://asf.alaska.edu/
or remove the ASF logo with
theme:
name: asf-theme
asf_logo:
Site logo
With the Material Theme, there are two ways to change the site logo.
-
You can change site logo with a direct link to an image
theme: name: asf-theme logo: images/my-logo.png
-
or by specifying an icon
theme: name: asf-theme icon: logo: material/library
To remove the site logo, specify an empty icon (and no theme logo)
theme:
name: asf-theme
icon:
logo:
Copyright notice
This theme will provide a copyright notice like
© [YEAR] Alaska Satellite Facility
where [YEAR]
is replaced with the current year. You can customize the text after
© [YEAR]
in your mkdocs.yml
with
copyright: Alaska Satellite Facility
To turn off the copyright notice entirely, remove the site level copyright
configuration and clear the theme one with
theme:
name: asf-theme
copyright:
Social links
You can add additional social links with
extra:
social:
- icon: fontawesome/brands/gitter
link: https://gitter.im/ASFHyP3/community
You can override the theme provided social links with
theme:
name: asf-theme
social:
- icon: fontawesome/brands/gitter
link: https://gitter.im/ASFHyP3/community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mkdocs_asf_theme-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44a182a5806f5861d160ff3b9c048907afff0c789568c8c5b16c82823d04cab1 |
|
MD5 | 712d0bff15dfef29e9557d01b3b73cf6 |
|
BLAKE2b-256 | 38e876aaf89c3cf9add69f16c5b8116a8d4ff547c56e1e82b876b40cba6a678e |