Skip to content

Commit 521de7c

Browse files
committed
Add version link in footer
1 parent fc5bb46 commit 521de7c

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ COPY SPEC.md /usr/share/nginx/html/
66
COPY CHANGELOG.md /usr/share/nginx/html/
77
COPY docs/ /usr/share/nginx/html/docs/
88
COPY script/install /usr/share/nginx/html/install
9+
COPY pyproject.toml /tmp/pyproject.toml
10+
RUN VERSION=$(grep '^version' /tmp/pyproject.toml | sed 's/.*"\(.*\)"/\1/') && \
11+
sed -i "s/__VERSION__/v${VERSION}/g" /usr/share/nginx/html/*.html && \
12+
rm /tmp/pyproject.toml
913
EXPOSE 80

site/docs.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ <h2 class="text-lg font-semibold mb-2">Failed to load documentation</h2>
258258
<img src="wordmark.png" alt="Flow Canon" class="h-8 sm:h-10">
259259
</a>
260260
<div class="flex items-center gap-6 text-sm text-slate-500">
261+
<a href="docs.html#changelog" class="hover:text-slate-300 transition-colors">__VERSION__</a>
261262
<a href="/" class="hover:text-slate-300 transition-colors">Home</a>
262263
<a href="docs.html" class="hover:text-slate-300 transition-colors">Docs</a>
263264
<a href="https://github.com/flowcanon/deploy" class="hover:text-slate-300 transition-colors">GitHub</a>

site/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ <h2 class="text-3xl font-bold text-white mb-4 text-center">CLI Commands</h2>
268268
<img src="wordmark.png" alt="Flow Canon" class="h-8 sm:h-10">
269269
</a>
270270
<div class="flex items-center gap-6 text-sm text-slate-500">
271+
<a href="docs.html#changelog" class="hover:text-slate-300 transition-colors">__VERSION__</a>
271272
<a href="docs.html" class="hover:text-slate-300 transition-colors">Docs</a>
272273
<a href="https://github.com/flowcanon/deploy" class="hover:text-slate-300 transition-colors">GitHub</a>
273274
</div>

0 commit comments

Comments
 (0)