-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from fao89/docs
Adding mkdocs
- Loading branch information
Showing
12 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build Docs | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# this fetches all branches. Needed because we need gh-pages branch for deploy to work | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- name: Install MkDocs | ||
run: pip install -r docs/doc_requirements.txt | ||
- name: Publish docs | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
mkdocs gh-deploy --force --clean --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Contributing to documentation | ||
============================= | ||
|
||
## Rendering documentation locally | ||
|
||
Install docs build requirements into virtualenv: | ||
|
||
``` | ||
python3 -m venv local/docs-venv | ||
source local/docs-venv/bin/activate | ||
pip install -r docs/doc_requirements.txt | ||
``` | ||
|
||
Serve docs site on localhost: | ||
|
||
``` | ||
mkdocs serve | ||
``` | ||
|
||
Click the link it outputs. As you save changes to files modified in your editor, | ||
the browser will automatically show the new content. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mkdocs | ||
mike | ||
mkdocs-git-revision-date-plugin | ||
mkdocs-material |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../validated_arch_1/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../validated_arch_1/stage1/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../validated_arch_1/stage2/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../validated_arch_1/stage3/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../validated_arch_1/stage4/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../validated_arch_1/stage5/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../validated_arch_1/stage6/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
site_name: OpenStack K8S Operators Architectures | ||
site_description: OpenStack K8S Operators Architectures | ||
site_author: OpenStack Team | ||
site_url: https://openstack-k8s-operators.github.io/architecture | ||
repo_name: openstack-k8s-operators/architecture | ||
repo_url: https://github.com/openstack-k8s-operators/architecture | ||
theme: | ||
features: | ||
- search.suggest | ||
- search.highlight | ||
- search.share | ||
name: material | ||
logo: images/openstack-logo.png | ||
palette: | ||
- scheme: default | ||
media: "(prefers-color-scheme: light)" | ||
primary: teal | ||
toggle: | ||
icon: material/toggle-switch-off-outline | ||
name: Switch to dark mode | ||
- scheme: slate | ||
media: "(prefers-color-scheme: dark)" | ||
primary: teal | ||
toggle: | ||
icon: material/toggle-switch | ||
name: Switch to light mode | ||
nav: | ||
- Overview: index.md | ||
- Stages: | ||
- stage1.md | ||
- stage2.md | ||
- stage3.md | ||
- stage4.md | ||
- stage5.md | ||
- stage6.md | ||
- Contributing: | ||
- contributing/documentation.md | ||
markdown_extensions: | ||
- toc: | ||
permalink: "#" | ||
- pymdownx.superfences | ||
- admonition | ||
extra: | ||
version: | ||
provider: mike | ||
default: latest | ||
plugins: | ||
- git-revision-date | ||
- search: | ||
lang: en | ||
prebuild_index: true |