From d55f263bae018fee00595da2f4615da76baf5ee9 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Thu, 4 Apr 2024 15:28:48 +0100 Subject: [PATCH 1/2] Add a development banner to generated development specification --- .github/workflows/pages.yml | 2 ++ tests/makefiles/style.css | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ec52ccaab..b0c248dde 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -39,6 +39,8 @@ jobs: git fetch origin gh-pages git checkout gh-pages mkdir -p specification/develop + # patch dev specification to include banner + sed -i 's|||g' optimade.html mv optimade.html specification/develop/index.html git add specification/develop/index.html git commit -m "Deploy develop specification to GitHub Pages: ${SHA}" diff --git a/tests/makefiles/style.css b/tests/makefiles/style.css index 61af4333b..bbf335f1d 100644 --- a/tests/makefiles/style.css +++ b/tests/makefiles/style.css @@ -46,6 +46,29 @@ body { --field-indent: 9em; /* default indent of fields in field lists */ } +/*Banner for development version*/ +.banner-container { + max-width: 60rem; + min-width: 60rem; + height: 50px; + position: fixed; + top: 0; + color: var(--code-bg-color); + background: var(--code-fg-color); + border: outset 2px var(--tertiary); + align-items: center; + display: flex; + justify-content: center; +} + +.banner { + text-transform: uppercase; + text-align: center; + vertical-align: middle; + font-size: 1.5em; + display: table-cell; +} + /* "page layout" */ main, footer, header { line-height:1.6; From b0fcbd41f7dc2469551c3a895c348134a1351640 Mon Sep 17 00:00:00 2001 From: Matthew Evans <7916000+ml-evs@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:01:16 +0100 Subject: [PATCH 2/2] Update .github/workflows/pages.yml Co-authored-by: Antanas Vaitkus --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b0c248dde..eebed4f0e 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -40,7 +40,7 @@ jobs: git checkout gh-pages mkdir -p specification/develop # patch dev specification to include banner - sed -i 's|||g' optimade.html + sed -i 's|||g' optimade.html mv optimade.html specification/develop/index.html git add specification/develop/index.html git commit -m "Deploy develop specification to GitHub Pages: ${SHA}"