Details
-
Story
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
Description
Possible solutions
Using pre-commit hooks
a) Run a pre-commit hook, adding (modifying) the first line of each file to be committed:
<updateStamp><output-of-Date.now()></updateStamp>
CSSed with:
updateStamp {display: none;}
b) On a live doc page, JavaScript the page for the highest value found in all stamps.
c) Then, do with it what's required, eg. display in a page footer as
"Page last updated on: <converted with toISOString()>"
Resources
Concerns/Thoughts
- How do we get the .git folder to not be ignored as part of the build pipeline?
- How do we potentially centralize the wording/content around the timestamp?
- Can we ensure collaborative work (PRs) will reflect the correct permissions for .filters, .git, etc.?
Checklists
Acceptance criteria
Attachments
1.
|
Testing solutions AM |
|
In Progress | Alex Mansell |
2.
|
Cloning the hook issue |
|
In Progress | Martin Drápela |