diff --git a/Dockerfile b/Dockerfile index ef66e9f..a763b17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ COPY scripts/entrypoint.sh /docs/entrypoint.sh RUN chmod 755 /docs/entrypoint.sh ENTRYPOINT ["sh", "/docs/entrypoint.sh"] -CMD ["serve", "--dev-addr=0.0.0.0:8000"] +CMD ["serve", "--dev-addr=0.0.0.0:8011"] diff --git a/README.md b/README.md index 174497b..6ad77f3 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,13 @@ docker run --rm -it \ klakegg/html-proofer:3.19.2 \ --allow-hash-href --check-html --empty-alt-ignore --disable-external ``` + +#### Deploying new Testing Images + +To facilitate developing the user-documentation on update of this repo you should push new containers +so that they can be used for dev. + +```shell +docker build --platform linux/amd64 -t hub.opensciencegrid.org/opensciencegrid/path-portal-documentation:latest . +docker push hub.opensciencegrid.org/opensciencegrid/path-portal-documentation:latest +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 39ef513..1bcf464 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,6 +8,7 @@ repo_name: osg-htc/user-documentation theme: features: - navigation.tabs + - content.tabs.link name: material logo: assets/PATh_Logo_Round_Color_White_Border.png favicon: assets/PATh_Logo_Round_Color.png @@ -27,6 +28,9 @@ markdown_extensions: - pymdownx.emoji: emoji_index: !!python/name:materialx.emoji.twemoji emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.superfences + - pymdownx.tabbed: + alternate_style: true extra_css: - stylesheets/code-highlight.css diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index c24cc42..ed3cdc0 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -6,4 +6,6 @@ python3 scripts/link-docs.py echo "I have built the User Documentation" -mkdocs "$@" \ No newline at end of file +cd /docs + +exec mkdocs "$@" \ No newline at end of file