-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include generating social cards, lots of minor bug fixes, a smaller docker image, faster build times, and using a new emoji extension.
- Loading branch information
1 parent
cf067a9
commit 292c8a6
Showing
5 changed files
with
34 additions
and
10 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM python:3.11 | |
|
||
LABEL description="dcrdevdocs build" | ||
LABEL version="1.0" | ||
LABEL maintainer "[email protected]" | ||
LABEL maintainer "[email protected]" | ||
|
||
USER root | ||
WORKDIR /root | ||
|
@@ -15,14 +15,22 @@ COPY ./ /root/ | |
RUN pip install mkdocs && \ | ||
pip install --user -r requirements.txt | ||
|
||
# Install dependencies for generating social cards. | ||
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards | ||
RUN apt update && \ | ||
apt install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev && \ | ||
pip install pillow cairosvg | ||
|
||
ENV DCRDEVDOCS_CARDS true | ||
|
||
RUN ./bin/build_docs.sh | ||
|
||
# Serve image (stable nginx version) | ||
FROM nginx:1.22-alpine | ||
FROM nginx:1.24-alpine | ||
|
||
LABEL description="dcrdevdocs serve" | ||
LABEL version="1.0" | ||
LABEL maintainer "[email protected]" | ||
LABEL maintainer "[email protected]" | ||
|
||
COPY conf/nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
|
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,2 +1,2 @@ | ||
mkdocs-material==9.0.6 | ||
mkdocs-markdownextradata-plugin==0.2.4 | ||
mkdocs-material==9.5.2 | ||
mkdocs-markdownextradata-plugin==0.2.5 |