Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2624

Render page update timestamp in the page footer (HowTo ideas)

    XMLWordPrintable

Details

    • Story
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    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

          Activity

            People

              Unassigned Unassigned
              mdrapela Martin Drápela
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: