From e52dbea932373674e1275accd3168290b24dfd4e Mon Sep 17 00:00:00 2001 From: Sage Wright Date: Wed, 11 Sep 2024 17:34:49 +0000 Subject: [PATCH] change warning so it doesn't mess up when changing versions --- .github/workflows/build-documentation.yml | 5 ++++- docs/overrides/main.html | 11 ++--------- docs/stylesheets/extra.css | 19 ------------------- 3 files changed, 6 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 2bd74be50..2215c9ae6 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -35,4 +35,7 @@ jobs: run: | git config user.name sage-wright git config user.email sage.wright@theiagen.com - mike deploy --push main \ No newline at end of file + mike deploy --push main + LATEST_RELEASE=$(curl -sL https://api.github.com/repos/theiagen/public_health_bioinformatics/releases/latest | jq -r ".tag_name") + mike deploy --push --update-aliases ${LATEST_RELEASE} latest + mike set-default --push latest \ No newline at end of file diff --git a/docs/overrides/main.html b/docs/overrides/main.html index 9218c87cc..54a833dfd 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -8,13 +8,6 @@ {% endblock %} - -{% block header %} - - - - -{% include "partials/header.html" %} +{% block announce %} +
🏗️ I'm under construction! Pardon the dust while we remodel! 👷
{% endblock %} diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 0ae3ab5b3..0ff83e58d 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -186,22 +186,3 @@ td { } - -/* UNDER CONSTRUCTION ANNOUNCEMENT; comment out when needing removal */ -.banner { - height: 30px; /* Height of the banner */ - line-height: 30px; /* Center the text vertically */ - position: sticky; /* Follows as you scroll */ - top: 0; /* Absolute top of page */ - left: 0; - width: 100%; - z-index: 1; /* Tells the renderer "this is important", otherwise Admonition and Code Blocks will render into it */ - text-align: center; - vertical-align: middle; - font-size: 14pt; - background-color: #262626; -} - -.md-header { - top: 30px; /* This setting prevents the Material header from imposing into the space of the banner! */ -} \ No newline at end of file