Skip to content

Commit

Permalink
Merge pull request #31 from fao89/docs
Browse files Browse the repository at this point in the history
Adding mkdocs
  • Loading branch information
fao89 committed Nov 15, 2023
2 parents c4db626 + 71810aa commit ea944e0
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docs.yaml
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
21 changes: 21 additions & 0 deletions docs/contributing/documentation.md
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.
4 changes: 4 additions & 0 deletions docs/doc_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdocs
mike
mkdocs-git-revision-date-plugin
mkdocs-material
Binary file added docs/images/openstack-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.md
1 change: 1 addition & 0 deletions docs/stage1.md
1 change: 1 addition & 0 deletions docs/stage2.md
1 change: 1 addition & 0 deletions docs/stage3.md
1 change: 1 addition & 0 deletions docs/stage4.md
1 change: 1 addition & 0 deletions docs/stage5.md
1 change: 1 addition & 0 deletions docs/stage6.md
51 changes: 51 additions & 0 deletions mkdocs.yml
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

0 comments on commit ea944e0

Please sign in to comment.