Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a development banner to generated development specification #512

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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|</head>|</head><div class="banner-container"><div class="banner">This is a development version of the specification.</div></div>|g' optimade.html
ml-evs marked this conversation as resolved.
Show resolved Hide resolved
mv optimade.html specification/develop/index.html
git add specification/develop/index.html
git commit -m "Deploy develop specification to GitHub Pages: ${SHA}"
Expand Down
23 changes: 23 additions & 0 deletions tests/makefiles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading