-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update * update * update * update * update * update * update * update * update * update * update * update
- Loading branch information
1 parent
4542f4a
commit 9bd293e
Showing
52 changed files
with
1,147 additions
and
10,990 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,17 @@ | ||
{ | ||
"aliveStatusCodes": [429, 200, 520], | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^(https://stakater).+" | ||
}, | ||
{ | ||
"pattern": "^(http://nexus).+" | ||
}, | ||
{ | ||
"pattern": "^(https://nexus).+" | ||
}, | ||
{ | ||
"pattern": "^(https://docs.github.com).+" | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -6,6 +6,12 @@ on: | |
- 'master' | ||
|
||
jobs: | ||
qa: | ||
uses: stakater/.github/.github/workflows/[email protected] | ||
with: | ||
MD_CONFIG: .github/md_config.json | ||
DOC_SRC: content | ||
MD_LINT_CONFIG: .markdownlint.yaml | ||
build: | ||
uses: stakater/.github/.github/workflows/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,9 @@ node_modules/ | |
.vuepress/dist/ | ||
.DS_Store | ||
.vscode | ||
.idea | ||
.idea | ||
|
||
dist/ | ||
site/ | ||
styles/ | ||
/mkdocs.yml |
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,3 @@ | ||
[submodule "theme_common"] | ||
path = theme_common | ||
url = [email protected]:stakater/stakater-docs-mkdocs-theme.git |
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 @@ | ||
{ | ||
"MD007": { "indent": 4 }, | ||
"MD013": false, | ||
"MD024": false, | ||
"MD029": { "style": one }, | ||
"MD033": false, | ||
"MD046": false, | ||
} |
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,10 @@ | ||
StylesPath = styles | ||
MinAlertLevel = warning | ||
|
||
Packages = https://github.com/stakater/vale-package/releases/download/v0.0.21/Stakater.zip | ||
Vocab = Stakater | ||
|
||
# Only check MarkDown files | ||
[*.md] | ||
|
||
BasedOnStyles = Vale |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
FROM registry.access.redhat.com/ubi8/nodejs-12 | ||
FROM python:3.12 as builder | ||
|
||
LABEL name="Stakater Developer Handbook" \ | ||
maintainer="Stakater <[email protected]>" \ | ||
vendor="Stakater" \ | ||
release="1" \ | ||
summary="Developer Handbook" | ||
RUN pip3 install mkdocs-mermaid2-plugin mkdocs-table-reader-plugin mkdocs-include-markdown-plugin | ||
|
||
# set workdir | ||
RUN mkdir -p $HOME/application | ||
|
@@ -13,22 +9,22 @@ WORKDIR $HOME/application | |
# copy the entire application | ||
COPY --chown=1001:root . . | ||
|
||
# install yarn globaly | ||
RUN npm install -g yarn | ||
|
||
# download the application dependencies | ||
RUN yarn install | ||
|
||
# build the application | ||
RUN yarn run build | ||
|
||
# Change ownership of cache to make it writable | ||
RUN chown -R 1001 ~/.cache | ||
|
||
# Change permissions to fix EACCESS permission error | ||
RUN chmod -R 755 $HOME | ||
# build the docs | ||
RUN chmod +x prepare_theme.sh && ./prepare_theme.sh | ||
RUN mkdocs build | ||
FROM nginxinc/nginx-unprivileged:1.26-alpine as deploy | ||
COPY --from=builder $HOME/application/site/ /usr/share/nginx/html/ | ||
COPY default.conf /etc/nginx/conf.d/ | ||
|
||
# set non-root user | ||
USER 1001 | ||
|
||
ENTRYPOINT ["yarn", "run", "serve"] | ||
LABEL name="Stakater Developer Handbook" \ | ||
maintainer="Stakater <[email protected]>" \ | ||
vendor="Stakater" \ | ||
release="1" \ | ||
summary="Developer Handbook" | ||
|
||
EXPOSE 8080:8080/tcp | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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 |
---|---|---|
@@ -1,21 +1 @@ | ||
# developer-handbook | ||
|
||
Local development | ||
|
||
## MacOS | ||
|
||
All dependencies for the developer handbook is handled with yarn. | ||
|
||
```bash | ||
# install nodejs with brew | ||
brew install node | ||
|
||
# install yarn with npm | ||
npm install -g yarn | ||
|
||
# install dependencies with yarn | ||
yarn | ||
|
||
# start local development server | ||
yarn run dev | ||
``` | ||
# Developer Handbook |
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
Oops, something went wrong.