forked from Anduin2017/HowToCook
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Anduin2017:master' into master
- Loading branch information
Showing
26 changed files
with
1,246 additions
and
691 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ node_modules/ | |
site/ | ||
|
||
.idea | ||
*.iml | ||
*.iml | ||
mkdocs.yml |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"MD036": false, | ||
"MD024": false, | ||
"MD004": false, | ||
"MD029": false, | ||
"MD013": false, | ||
"MD007": 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
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,19 +1,30 @@ | ||
# ============================ | ||
# Prepare Node Environment | ||
FROM hub.aiursoft.cn/node:21-alpine as node-env | ||
# Prepare lint Environment | ||
FROM hub.aiursoft.cn/node:21-alpine as lint-env | ||
WORKDIR /app | ||
COPY . . | ||
RUN node ./.github/readme-generate.js | ||
RUN npm install | ||
RUN npm run build | ||
RUN npm run lint | ||
|
||
# ============================ | ||
# Prepare Build Environment | ||
FROM hub.aiursoft.cn/python:3.11 as python-env | ||
WORKDIR /app | ||
COPY --from=node-env /app . | ||
RUN pip install -r requirements.txt && rm node_modules -rf | ||
RUN mkdocs build --strict | ||
COPY --from=lint-env /app . | ||
RUN apt-get update && apt-get install -y weasyprint fonts-noto-cjk wget unzip | ||
RUN rm node_modules -rf && pip install -r requirements.txt | ||
RUN wget https://gitlab.aiursoft.cn/anduin/anduinos/-/raw/master/Config/fonts.conf -O /etc/fonts/local.conf | ||
RUN wget -P /tmp https://gitlab.aiursoft.cn/anduin/anduinos/-/raw/master/Assets/fonts.zip | ||
RUN unzip -o /tmp/fonts.zip -d /usr/share/fonts/ | ||
RUN rm -f /tmp/fonts.zip | ||
RUN fc-cache -fv | ||
|
||
RUN mkdocs build | ||
|
||
# ============================ | ||
# Prepare Runtime Environment | ||
FROM hub.aiursoft.cn/aiursoft/static | ||
COPY --from=python-env /app/site /data | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/Anduin2017/HowToCook" |
Oops, something went wrong.