-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: modify the workflow for docs release and update documentation (#…
…124)
- Loading branch information
1 parent
9c21370
commit 62fbe30
Showing
7 changed files
with
52 additions
and
51 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
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
FROM python:3.12 | ||
WORKDIR /build | ||
COPY . . | ||
ARG GIT_USER_NAME GIT_USER_EMAIL GITHUB_ACTIONS | ||
ENV GIT_USER_NAME=$GIT_USER_NAME GIT_USER_EMAIL=$GIT_USER_EMAIL GITHUB_ACTIONS=$GITHUB_ACTIONS | ||
|
||
ARG GIT_USER_NAM GIT_USER_EMAIL GITHUB_ACTIONS VERSION ALIAS PUSH_REMOTE=false | ||
ENV GIT_USER_NAME=$GIT_USER_NAME GIT_USER_EMAIL=$GIT_USER_EMAIL GITHUB_ACTIONS=$GITHUB_ACTIONS VERSION=$VERSION ALIAS=$ALIAS PUSH_REMOTE=$PUSH_REMOTE | ||
RUN git config --global user.name "$GIT_USER_NAME" && git config --global user.email "$GIT_USER_EMAIL" | ||
#RUN git config --global --add safe.directory /build | ||
RUN pip install -r ./docs/requirements.txt --no-cache-dir | ||
RUN pip install -r ./docs/requirements.txt | ||
RUN \ | ||
if [ "PUSH_REMOTE" = "true" ]; then export MIKE_SET_PUSH_FLAG="--push"; else export MIKE_SET_PUSH_FLAG=""; fi && \ | ||
mike deploy --update-aliases ${VERSION} ${ALIAS} && \ | ||
mike set-default ${MIKE_PUSH_FLAG} ${ALIAS} | ||
CMD ["sh", "-c"] |
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 +1 @@ | ||
# Dockerfiles | ||
# Dockerfiles |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Include required packages for mkdocs | ||
mkdocs-material==9.5.27 | ||
mkdocs-material-extensions==1.3.1 | ||
mike==2.1.2 | ||
mkdocs-git-revision-date-plugin==0.3.2 |
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