File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ COPY SPEC.md /usr/share/nginx/html/
66COPY CHANGELOG.md /usr/share/nginx/html/
77COPY docs/ /usr/share/nginx/html/docs/
88COPY 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
913EXPOSE 80
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments