# ASF MkDocs Theme
[![PyPI license](https://img.shields.io/pypi/l/mkdocs-asf-theme.svg)](https://pypi.python.org/pypi/mkdocs-asf-theme/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/mkdocs-asf-theme.svg)](https://pypi.python.org/pypi/mkdocs-asf-theme/)
[![PyPI version](https://img.shields.io/pypi/v/mkdocs-asf-theme.svg)](https://pypi.python.org/pypi/mkdocs-asf-theme/)
[![DOI](https://zenodo.org/badge/322375450.svg)](https://zenodo.org/badge/latestdoi/322375450)
An extension of the [MkDocs Material Theme](https://squidfunk.github.io/mkdocs-material/)
for ASF.
## Quickstart
This theme is distributed on [PyPI](https://pypi.org/project/mkdocs-asf-theme/) 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`:
```yaml
theme:
name: asf-theme
```
To see an example of using this theme, see [ASF HyP3's MkDocs repository](https://github.com/ASFHyP3/ASFHyP3)
which generates [ASF HyP3's documentation](https://hyp3-docs.asf.alaska.edu/).
## 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](https://squidfunk.github.io/mkdocs-material/),
advanced customization can be done by following the MkDocs Material Theme
[documentation](https://squidfunk.github.io/mkdocs-material/). **However**, please
consider either:
* [opening an issue](https://github.com/ASFHyP3/mkdocs-asf-theme/issues)
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
```yaml
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
```yaml
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
```yaml
theme:
name: asf-theme
asf_logo: images/asf-altenate-logo.png
asf_logo_url: https://asf.alaska.edu/
```
or remove the ASF logo with
```yaml
theme:
name: asf-theme
asf_logo:
```
#### Site logo
With the Material Theme, there are
[two ways to change the site logo](https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#logo).
1. You can change site logo with a direct link to an image
```yaml
theme:
name: asf-theme
logo: images/my-logo.png
```
2. or by specifying an icon
```yaml
theme:
name: asf-theme
icon:
logo: material/library
```
To remove the site logo, specify an empty icon (and no theme logo)
```yaml
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
```yaml
copyright: Alaska Satellite Facility
```
To turn off the copyright notice entirely, remove the site level `copyright`
configuration and clear the theme one with
```yaml
theme:
name: asf-theme
copyright:
```
### Social links
You can add *additional* social links with
```yaml
extra:
social:
- icon: fontawesome/brands/gitter
link: https://gitter.im/ASFHyP3/community
```
You can *override* the theme provided social links with
```yaml
theme:
name: asf-theme
social:
- icon: fontawesome/brands/gitter
link: https://gitter.im/ASFHyP3/community
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共45个文件
yml:8个
md:7个
html:7个
资源分类:Python库 所属语言:Python 资源全名:mkdocs-asf-theme-0.2.4.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
mkdocs-asf-theme-0.2.4.tar.gz (45个子文件)
mkdocs-asf-theme-0.2.4
MANIFEST.in 94B
PKG-INFO 5KB
pyproject.toml 83B
.gitleaks.toml 2KB
.github
pull_request_template.md 403B
PULL_REQUEST_TEMPLATE
release.md 1KB
ISSUE_TEMPLATE
bug_report.md 459B
feature_request.md 604B
workflows
static-analysis.yml 916B
labeled-pr.yml 399B
release.yml 1KB
tag-and-distribute.yml 3KB
changelog.yml 492B
queries
asssociated-pr.query.yml 558B
pr-labels.query.yml 458B
.trufflehog.txt 37B
LICENSE 1KB
asf_theme
mkdocs_theme.yml 758B
partials
integrations
analytics.html 2KB
logo.html 1KB
search.html 65B
footer.html 5KB
social.html 2KB
header.html 3KB
main.html 1KB
assets
images
map.png 11KB
asf-logo-blue-nav.png 7KB
ASFLogo-Blue2.png 17KB
favicon.ico 6KB
javascripts
expert-rec-search.js 346B
stylesheets
asf.css 2KB
__init__.py 532B
setup.cfg 38B
mkdocs_asf_theme.egg-info
PKG-INFO 5KB
requires.txt 35B
not-zip-safe 1B
SOURCES.txt 1KB
entry_points.txt 38B
top_level.txt 10B
dependency_links.txt 1B
setup.py 1KB
.gitignore 4KB
CHANGELOG.md 2KB
CODE_OF_CONDUCT.md 5KB
README.md 4KB
共 45 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功