-
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.
Adding MkDocs for documentation. (#2)
* Adding MkDocs for documentation. This commit introduces a minimal implementation of MkDocs. * Changed the port from 8001 to 8101
- Loading branch information
Showing
7 changed files
with
828 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM python:3.12 | ||
|
||
WORKDIR /opt/meldingen-core | ||
|
||
# Install Poetry | ||
RUN set eux; \ | ||
curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python; \ | ||
cd /usr/local/bin; \ | ||
ln -s /opt/poetry/bin/poetry; \ | ||
poetry config virtualenvs.create false | ||
|
||
COPY ./pyproject.toml ./poetry.lock /opt/meldingen-core/ | ||
|
||
# Allow installing dev dependencies to run tests | ||
ARG INSTALL_DEV=false | ||
RUN set -eux; \ | ||
if [ "$INSTALL_DEV" = "true" ]; then \ | ||
poetry install --no-root; \ | ||
else \ | ||
poetry install --no-root --only main; \ | ||
fi | ||
|
||
COPY . /opt/meldingen-core | ||
ENV PYTHONPATH=/opt/meldingen-core |
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,19 @@ | ||
version: "3" | ||
|
||
services: | ||
meldingen-core: | ||
image: amsterdam/meldingen-core | ||
build: | ||
context: . | ||
args: | ||
INSTALL_DEV: ${INSTALL_DEV-true} | ||
volumes: | ||
- ".:/opt/meldingen-core" | ||
|
||
docs: | ||
image: amsterdam/meldingen-core | ||
ports: | ||
- "8101:8000" | ||
volumes: | ||
- ".:/opt/meldingen-core" | ||
entrypoint: mkdocs serve -f /opt/meldingen-core/mkdocs.yml --dev-addr=0.0.0.0:8000 |
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 @@ | ||
# Welcome to "Meldingen" core |
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,2 @@ | ||
* [Home](index.md) | ||
* [Summary](summary.md) |
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,37 @@ | ||
site_name: Meldingen Core | ||
site_description: The "Meldingen" core | ||
repo_url: https://github.com/Amsterdam/meldingen-core | ||
|
||
theme: | ||
name: "material" | ||
language: "en" | ||
palette: | ||
# Palette toggle for light mode | ||
- scheme: default | ||
toggle: | ||
icon: material/weather-night | ||
name: Switch to dark mode | ||
# Palette toggle for dark mode | ||
- scheme: slate | ||
toggle: | ||
icon: material/weather-sunny | ||
name: Switch to light mode | ||
features: | ||
- navigation.tabs | ||
- navigation.footer | ||
|
||
extra: | ||
generator: false | ||
|
||
plugins: | ||
search: | ||
lang: "en" | ||
literate-nav: | ||
nav_file: "summary.md" | ||
mkdocstrings: | ||
handlers: | ||
python: | ||
options: | ||
docstring_style: numpy | ||
show_docstring_examples: true | ||
annotations_path: brief |
Large diffs are not rendered by default.
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