diff --git a/Dockerfile b/Dockerfile index 8152733db9d9016c8eb6f74a5a2f366d32ce9418..b71347471cf86b0b1440d1b7b97d9837d41f2bfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM debian:stable as build ENV PYTHONUNBUFFERED=1 -RUN apt-get update && apt-get install -y python3 python3-pip python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0 +RUN apt-get update && apt-get install -y python3 python3-pip git COPY requirements.txt ./requirements.txt RUN pip3 install -r ./requirements.txt @@ -21,13 +21,8 @@ COPY ./docs/publications.md ./docs/publications.md COPY ./docs/system.md ./docs/system.md COPY ./mkdocs.yml ./mkdocs.yml -RUN echo 'plugins:\n\ - - with-pdf:\n\ - author: FAIR Data Austria\n\ - copyright: CC-BY 4.0\n\ - cover_title: "DBRepo: Database Repository"\n\ - cover_subtitle: "Technical Documentation"' >> ./mkdocs.yml - -RUN cat ./mkdocs.yml +# 1.1 +RUN git checkout beec500012949c1baa197c72d52e383276a8fd02 +RUN mike deploy 1.1 ENTRYPOINT [ "mkdocs", "build" ] \ No newline at end of file diff --git a/Makefile b/Makefile index cdb4752f7748cc24369ff1c9653609d0fa9e76c6..312d363c12d99ddcdc270d9df9e368ef58f190d5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ +TAG ?= 1.1 + .PHONY: clean all: build clean: + rm -rf ./site release-deps: pip3 install -r ./dockerhub/requirements.txt @@ -13,7 +16,9 @@ release: release-deps build: docker-compose build docker-compose up - sudo mv ./site/pdf/document.pdf ./site/pdf/documentation.pdf -install: build +version: + mike list + +install: build version sudo cp -r ./site/* /usr/share/nginx/html/ \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index a05d4acbd3b16c71c91f10206749387b1810ef97..4c0ecba8a44a6b7d5c76ac6e3664a5fbead092fe 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7,14 +7,14 @@ hide: # Database Repository -## Problem Statement +## Problem Statement !!!!!! Digital repositories see themselves more frequently encountered with the problem of making databases accessible in their collection. Challenges revolve around organizing, searching and retrieving content stored within databases and constitute a major technical burden as their internal representation greatly differs from static documents most digital repositories are designed for. -[Get Started](/getting-started){ .action-button .md-button .md-button--primary } +[Get Started](/docs/getting-started.md){ .action-button .md-button .md-button--primary } ## Application Areas diff --git a/mkdocs.yml b/mkdocs.yml index 98ad63fa5d4966274f3ff4b0b04b48b3f124a978..82c487cc15868cd2951647a5fc156e6be7a2f18c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,6 +8,8 @@ extra: social: - icon: fontawesome/brands/gitlab link: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services + version: + provider: mike nav: - Home: index.md - getting-started.md diff --git a/requirements.txt b/requirements.txt index 2dc0c2f9686f0f55224a80b5f5701cec9212a2d1..9540d9137a482804c2dc710449bb2ffb03bb68ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ mkdocs==1.3.0 mkdocs-material==8.2.9 mkdocs-with-pdf==0.9.3 +mike>=1.1.2 \ No newline at end of file