3 Star 1 Fork 0

Gitee 极速下载 / clikt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/ajalt/clikt
克隆/下载
prepare_docs.sh 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
AJ 提交于 2024-05-05 11:50 . Update docs script
#!/usr/bin/env bash
# The website is built using MkDocs with the Material theme.
# https://squidfunk.github.io/mkdocs-material/
# It requires Python to run.
# Install the packages with the following command:
# Install the packages: `pip install mkdocs-material`
# Build the api docs: `./gradlew dokkaHtmlMultiModule`
# Then run this script to prepare the docs for the website.
# Finally, run `mkdocs serve` to preview the site locally or `mkdocs build` to build the site.
set -ex
# Copy the changelog into the site, omitting the unreleased section
cat CHANGELOG.md \
| grep -v '^## Unreleased' \
| sed '/^## /,$!d' \
> docs/changelog.md
# Add the jinja frontmatter to the index
cat > docs/index.md <<- EOM
---
hide:
- toc # Hide table of contents
---
EOM
# Copy the README into the index, omitting the license, docs links, and fixing hrefs
cat README.md \
| sed 's:docs/img:img:g' \
| sed -e '/## Documentation/,/(runsample)\./d' \
| sed '/## License/Q' \
>> docs/index.md
# Add some extra links to the index page
cat >> docs/index.md <<- EOM
# API Reference
* [Commands and Exceptions](api/clikt/com.github.ajalt.clikt.core/)
* [Options](api/clikt/com.github.ajalt.clikt.parameters.options/)
* [Arguments](api/clikt/com.github.ajalt.clikt.parameters.arguments/)
* [Parameter Type Conversions](api/clikt/com.github.ajalt.clikt.parameters.types/)
* [Output Formatting](api/clikt/com.github.ajalt.clikt.output/)
EOM
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/mirrors/clikt.git
git@gitee.com:mirrors/clikt.git
mirrors
clikt
clikt
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891