Documentation site based on mkdocs and Read the Docs

Ref https://github.com/roboll/helmfile/issues/1824
Ref https://github.com/roboll/helmfile/issues/1755
This commit is contained in:
Yusuke Kuoka 2022-04-03 04:54:42 +00:00
parent 498a976efb
commit 3267484f47
8 changed files with 88 additions and 0 deletions

9
.readthedocs.yaml Normal file
View File

@ -0,0 +1,9 @@
version: 2
mkdocs:
configuration: mkdocs.yml
fail_on_warning: false
python:
install:
- requirements: docs/requirements.txt

1
docs/contributing.md Symbolic link
View File

@ -0,0 +1 @@
../CONTRIBUTING.md

1
docs/index.md Symbolic link
View File

@ -0,0 +1 @@
../README.md

1
docs/license.md Symbolic link
View File

@ -0,0 +1 @@
../LICENSE

22
docs/requirements.txt Normal file
View File

@ -0,0 +1,22 @@
Babel==2.9.1
click==8.1.2
ghp-import==2.0.2
gitdb==4.0.9
GitPython==3.1.27
importlib-metadata==4.11.3
Jinja2==3.1.1
Markdown==3.3.6
MarkupSafe==2.1.1
mergedeep==1.3.4
mkdocs==1.3.0
mkdocs-git-revision-date-localized-plugin==1.0.1
packaging==21.3
pyparsing==3.0.7
python-dateutil==2.8.2
pytz==2022.1
PyYAML==6.0
pyyaml_env_tag==0.1
six==1.16.0
smmap==5.0.0
watchdog==2.1.7
zipp==3.7.0

1
docs/users.md Symbolic link
View File

@ -0,0 +1 @@
../USERS.md

53
mkdocs.yml Normal file
View File

@ -0,0 +1,53 @@
# Test this locally with:
# $ docker run --rm -it -v $(pwd):$(pwd) --workdir $(pwd) python:3 bash
# # pip install -r docs/requirements.txt
# # mkdocs serve
# # mkdocs build
# $ ls -lah site/
site_name: helmfile
site_author: Helmfile Authors
repo_name: helmfile/helmfile/
repo_url: https://github.com/helmfile/helmfile/
edit_uri: ''
docs_dir: docs
nav:
- Home: index.md
- Getting Started:
- Paths Overview: paths.md
- Advanced Features:
- Best Practices Guide: writing-helmfile.md
- Advanced Features: advanced-features.md
- Secrets: remote-secrets.md
- Shared Configuration Across Teams: shared-configuration-across-teams.md
- About:
- Users: users.md
- License: license.md
- Contributing: contributing.md
theme:
name: readthedocs
features:
- navigation.tabs
collapse_navigation: false
hljs_languages:
- yaml
- dockerfile
markdown_extensions:
# meta, toc, table and fenced_code extensions are included by default
- extra
- admonition
- smarty
- sane_lists
- nl2br
- toc:
permalink: true
plugins:
- search
- git-revision-date-localized:
type: date
fallback_to_build_date: true