Skip to content

Commit 1cf8d87

Browse files
committed
Last-updated timestamp
1 parent a91ea03 commit 1cf8d87

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/workflows/documentation.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ jobs:
7979
- name: Move tasks-list built files in docs site
8080
run: mv WEB/tasks-list/build/ site/fractal-tasks
8181

82+
- name: Set last-updated timestamp
83+
- run: |
84+
CURRENT_DATE=$(date)
85+
echo "$CURRENT_DATE"
86+
sed -i'.bak' "s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE/" site/available_tasks/index.html
87+
rm site/available_tasks/index.html.bak
88+
8289
- run: ls -lh site/*
8390

8491
- name: Deploy docs

docs/available_tasks.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ hide:
1515
<style>
1616
.tasks-iframe{
1717
width: 100%;
18-
height: 900px;
18+
height: 800px;
1919
border: 0;
2020
}
2121
</style>
2222

2323
<iframe src="../fractal-tasks/" class="tasks-iframe">
2424
</iframe>
25+
26+
27+
(last updated: LASTUPDATEDPLACEHOLDER)

tools/full_local_build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ cp "$CURRENT_DIR/tasks_data_retrieval/tasks.json" ./src/
3232
npm run build
3333
cp -r build "$CURRENT_DIR/site/fractal-tasks"
3434

35+
CURRENT_DATE=$(date)
36+
sed -i'.bak' "s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE/" "$CURRENT_DIR/site/available_tasks/index.html"
37+
rm "$CURRENT_DIR/site/available_tasks/index.html.bak"
38+
39+
3540
deactivate
3641
rm -r "$VENVDIR"
3742
rm -rf "$WEBDIR"

0 commit comments

Comments
 (0)