Update footer in index.html to include version number and adjust footer styling in styles.css
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer><p>Faerro KB © 2026</p></footer>
|
||||
<footer><p>Faerro KB © 2026 · v0.0.28</p></footer>
|
||||
<script src="/app.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
+1
-1
@@ -117,7 +117,7 @@ h2 { margin: 8px 0 0; font: 500 25px/1.1 var(--serif); }
|
||||
.archive-status { color: var(--muted); font: 10px var(--mono); margin-top: 7px; }
|
||||
.transcription-progress { width: min(240px, 100%); height: 3px; margin-top: 9px; overflow: hidden; background: #e4e3dc; }
|
||||
.transcription-progress span { display: block; width: 34%; height: 100%; background: var(--moss); animation: transcription-progress 1.4s ease-in-out infinite; }
|
||||
footer { max-width: 1040px; margin: auto; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 9px var(--mono); }
|
||||
footer { max-width: 1040px; margin: auto; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 20px; color: var(--muted); font: 9px var(--mono); }
|
||||
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@keyframes transcription-progress { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
|
||||
@media (max-width: 600px) {
|
||||
|
||||
@@ -79,10 +79,25 @@ if git -C "$repo_root" show-ref --verify --quiet "refs/tags/$version"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
build_context="$(mktemp -d)"
|
||||
trap 'rm -rf "$build_context"' EXIT
|
||||
git -C "$repo_root" archive HEAD | tar -x -C "$build_context"
|
||||
footer_file="$build_context/frontend/index.html"
|
||||
footer_count="$(grep -c '<footer>' "$footer_file" || true)"
|
||||
if [[ "$footer_count" -ne 1 ]]; then
|
||||
echo "Expected exactly one footer in frontend/index.html." >&2
|
||||
exit 1
|
||||
fi
|
||||
sed -E -i "/<footer>/ { s/ · v[0-9]+\.[0-9]+\.[0-9]+//; s#</p># · v$version</p>#; }" "$footer_file"
|
||||
if ! grep -Fq "· v$version</p></footer>" "$footer_file"; then
|
||||
echo "Could not update the footer version in the build context." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git -C "$repo_root" tag --annotate "$version" --message "Release $version" HEAD
|
||||
|
||||
cd "$repo_root"
|
||||
docker build --tag "$image:$version" --tag "$image:latest" .
|
||||
docker build --tag "$image:$version" --tag "$image:latest" "$build_context"
|
||||
registry_username="${GITEA_USERNAME:-${DOCKER_USERNAME:-}}"
|
||||
registry_token="${GITEA_TOKEN:-${DOCKER_PASSWORD:-}}"
|
||||
unset GITEA_TOKEN DOCKER_PASSWORD
|
||||
|
||||
Reference in New Issue
Block a user