This repository was archived by the owner on Jun 17, 2022. It is now read-only.
-
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.
feat: 'mkdocs' documentation generation now works
- Loading branch information
1 parent
c699a2d
commit d95b96d
Showing
18 changed files
with
214 additions
and
56 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
Empty file.
Empty file.
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,18 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap | ||
|
||
action() { | ||
ensure.cmd 'dockerfilelint' | ||
|
||
if dockerfilelint ./**/Dockerfile; then | ||
exitCode=$? | ||
else | ||
exitCode=$? | ||
fi | ||
|
||
REPLY="$exitCode" | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap | ||
|
||
action() { | ||
ensure.cmd 'hadolint' | ||
|
||
local exitCode=0 | ||
|
||
# TODO: function run and set exit code | ||
if hadolint ./**/Dockerfile; then | ||
exitCode=$? | ||
else | ||
exitCode=$? | ||
fi | ||
|
||
REPLY="$exitCode" | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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
Empty file.
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,6 +1,36 @@ | ||
FROM archlinux | ||
|
||
# TODO | ||
LABEL \ | ||
org.opencontainers.image.authors="[email protected]" \ | ||
org.opencontainers.image.url="TODO" \ | ||
org.opencontainers.image.documentation="TODO" \ | ||
org.opencontainers.image.source="TODO" \ | ||
org.opencontainers.image.version="TODO" \ | ||
org.opencontainers.image.revision="TODO" \ | ||
org.opencontainers.image.vendor="TODO" \ | ||
org.opencontainers.image.licenses="TEMPLATE_DOCKER_LICENSE" \ | ||
org.opencontainers.image.title="Documentation with mkdocs" \ | ||
org.opencontainers.image.description="Uses 'mkdocs' to build documentation" | ||
|
||
RUN pacman -Sy --noconfirm python poetry git | ||
|
||
RUN poetry init --name 'packageName' --description 'Description' --author 'author' -l MIT && \ | ||
&& poetry add mkdocs mkdocs-material mkdocs-git-revision-date-localized-plugin mike mkdocs-mermaid2-plugin mkdocs-macros-plugin | ||
RUN useradd -ms /bin/bash op | ||
USER op | ||
WORKDIR /home/op | ||
|
||
RUN poetry init \ | ||
--name "TEMPLATE_POETRY_NAME" \ | ||
--description "TEMPLATE_POETRY_DESCRIPTION" \ | ||
--author "TEMPLATE_POETRY_AUTHOR" \ | ||
--license "TEMPLATE_POETRY_LICENSE" \ | ||
--no-interaction \ | ||
&& poetry add \ | ||
mkdocs mkdocs-material \ | ||
mkdocs-git-revision-date-localized-plugin \ | ||
mike mkdocs-mermaid2-plugin mkdocs-macros-plugin | ||
|
||
COPY --chown=op:op docs ./docs | ||
COPY --chown=op:op mkdocs.yml ./ | ||
|
||
CMD [ "/usr/bin/bash", "-c", "poetry run mkdocs build" ] |
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,6 @@ | ||
# Compatibility | ||
|
||
To be compatible, your directory structure must have the correct shape | ||
|
||
- For Bash, there should be a top-level `pkg` directory | ||
- Readme must be called `README.md` at root |
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
Empty file.
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,20 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap | ||
|
||
task() { | ||
# glue useAction(tool-hadolint.sh) | ||
util.get_action 'tool-hadolint.sh' | ||
source "$REPLY" | ||
local exitOne="$REPLY" | ||
|
||
# glue useAction(tool-dockerfilelint.sh) | ||
util.get_action 'tool-dockerfilelint.sh' | ||
source "$REPLY" | ||
local exitOne="$REPLY" | ||
|
||
REPLY="$exitOne" | ||
} | ||
|
||
task "$@" | ||
unbootstrap |
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.