-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: use mkdocs and restructure docs
Signed-off-by: Alexander Trost <[email protected]>
- Loading branch information
Showing
93 changed files
with
2,226 additions
and
2,224 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,31 @@ | ||
#!/usr/bin/python3 | ||
|
||
from pygit2 import Repository | ||
import re | ||
|
||
""" | ||
GitHub branch/tag URL replacer | ||
""" | ||
|
||
regex = r"(github\.com/.+/rook/.+)/master/" | ||
subst = "\\1/%s/" | ||
|
||
def define_env(env): | ||
|
||
repo = Repository('.') | ||
if repo is not None: | ||
target = repo.head.shorthand | ||
|
||
env.variables['current_branch'] = target | ||
|
||
def on_post_page_macros(env): | ||
""" | ||
Replace the branch/tag in the rook GitHub file and directory links pointing to `master` | ||
with the correct one that is currently active. | ||
""" | ||
|
||
target = env.variables['current_branch'] | ||
if target == 'master': | ||
return | ||
|
||
env.raw_markdown = re.sub(regex, subst % target, env.raw_markdown, 0) |
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,8 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block outdated %} | ||
This document is for a development version of Rook. | ||
<a href="{{ '../' ~ base_url }}"> | ||
<strong>Click here to go to latest release documentation.</strong> | ||
</a> | ||
{% endblock %} |
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
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 |
---|---|---|
|
@@ -10,3 +10,8 @@ | |
# OLM related stuff | ||
deploy/olm/deploy/* | ||
deploy/olm/templates/* | ||
|
||
# mkdocs + mike | ||
site/ | ||
public/ | ||
__pycache__/ |
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,8 @@ | ||
nav: | ||
- Getting-Started | ||
- Helm-Charts | ||
- Storage-Configuration | ||
- CRDs | ||
- Troubleshooting | ||
- Upgrade | ||
- Contributing |
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,8 @@ | ||
title: Custom Resources | ||
nav: | ||
- ceph-cluster-crd.md | ||
- Block-Storage | ||
- Shared-Filesystem | ||
- Object-Storage | ||
- ceph-client-crd.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
10 changes: 2 additions & 8 deletions
10
Documentation/ceph-pool-radosnamespace.md → ...ge/ceph-block-pool-rados-namespace-crd.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
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
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 @@ | ||
nav: | ||
- ceph-object-store-crd.md | ||
- ceph-object-store-user-crd.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
Oops, something went wrong.