Skip to content

Commit

Permalink
Merge pull request #34 from stakater/task/use-mkdocs-git-submodule-in…
Browse files Browse the repository at this point in the history
…-oaas-docs-sa-5305

[Task] Use mkdocs git submodule in oaas docs SA 5305
  • Loading branch information
RSAK56 authored May 24, 2024
2 parents dc7df6d + 61363dd commit 7ee863c
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 78 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ node_modules
# Build files
site/
styles/

# yml files
mkdocs.yml
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "theme_common"]
path = theme_common
url = [email protected]:stakater/stakater-docs-mkdocs-theme.git
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12-alpine as builder

RUN pip3 install mkdocs-material mkdocs-mermaid2-plugin
RUN pip3 install mkdocs-mermaid2-plugin mkdocs-table-reader-plugin mkdocs-include-markdown-plugin

# set workdir
RUN mkdir -p $HOME/application
Expand All @@ -10,6 +10,7 @@ WORKDIR $HOME/application
COPY --chown=1001:root . .

# build the docs
RUN chmod +x prepare_theme.sh && ./prepare_theme.sh
RUN mkdocs build

FROM nginxinc/nginx-unprivileged:1.26-alpine as deploy
Expand Down
6 changes: 0 additions & 6 deletions custom_theme/404.html

This file was deleted.

5 changes: 0 additions & 5 deletions custom_theme/main.html

This file was deleted.

66 changes: 0 additions & 66 deletions mkdocs.yml

This file was deleted.

3 changes: 3 additions & 0 deletions prepare_theme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip install -r theme_common/requirements.txt
python theme_common/scripts/combine_theme_resources.py theme_common/resources theme_override/resources dist/_theme
python theme_common/scripts/combine_mkdocs_config_yaml.py theme_common/mkdocs.yml theme_override/mkdocs.yml mkdocs.yml
1 change: 1 addition & 0 deletions theme_common
Submodule theme_common added at 34be89
33 changes: 33 additions & 0 deletions theme_override/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
site_name: OpenShift as a Service
docs_dir: content
site_url: https://docs.stakater.com/oaas/
repo_url: https://github.com/stakater/oaas-docs
edit_uri: blob/main/content/
use_directory_urls: false

theme:
logo: assets/images/favicon.svg
favicon: assets/images/favicon.svg
custom_dir: dist/_theme
features:
- content.code.copy
- content.code.select

nav:
- OpenShift as a Service:
- index.md
- general-provisions.md
- service-composition.md
- business-hours.md
- technical-support.md
- updating-clusters.md
- Runbooks:
- upgrades.md
- sla.md
- cost.md
- Stakater Home: https://www.stakater.com/
- SAAP: https://www.stakater.com/saap-kubernetes-openshift
- Consultancy: https://www.stakater.com/kubernetes-consultancy
- Events: https://www.stakater.com/events
- Platform Assessment: https://www.stakater.com/kubernetes-platform-assessment
- Careers: https://www.stakater.com/careers
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7ee863c

Please sign in to comment.