Skip to content

Commit

Permalink
feat: add up to date mkdocs material in pyproject
Browse files Browse the repository at this point in the history
for replacing the legacy mkdocs_plus image
  • Loading branch information
Mossman1215 committed May 6, 2024
1 parent 1a60ee5 commit 918ecde
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ list of vendored base images
| ghcr.io/geonet/base-images/hadolint/hadolint | a Dockerfile linter |
| ghcr.io/geonet/base-images/hashicorp/terraform | Terraform image |
| ghcr.io/geonet/base-images/mkdocs_plus | a custom build image for docs |
| ghcr.io/geonet/base-images/mkdocs | a build of mkdocs material for docs |
| ghcr.io/geonet/base-images/nginx | minimal nginx image |
| ghcr.io/geonet/base-images/node | Alpine based node image |
| ghcr.io/geonet/base-images/python | Alpine and Debian base Python images |
Expand Down
2 changes: 2 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ build:
# - images are pushed to ghcr.io/geonet/base-images/IMAGE_NAME
- source: ./images/mkdocs_plus/Dockerfile
destination: ghcr.io/geonet/base-images/mkdocs_plus:latest
- source: ./images/mkdocs_material/Dockerfile
destination: ghcr.io/geonet/base-images/mkdocs:v1.6.0
- source: ./images/git/image.yaml
destination: ghcr.io/geonet/base-images/git:latest
- source: ./images/git-ssh/image.yaml
Expand Down
6 changes: 6 additions & 0 deletions images/mkdocs_material/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/geonet/base-images/debian:bullseye as builder
RUN apt-get update
RUN apt-get -y install python3-pip
COPY pyproject.toml /src/docs/pyproject.toml
RUN pip install '/src/docs'
WORKDIR /src/docs
12 changes: 12 additions & 0 deletions images/mkdocs_material/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "platform-docs"
dynamic = ["version"]
dependencies = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.19",
"mkdocs-awesome-pages-plugin>=2.9.2",
]

0 comments on commit 918ecde

Please sign in to comment.