Page MenuHomePhabricator

Add correct "last updated" date to docs site pages
Closed, DeclinedPublic

Description

Docs site pages can have a footer that contains a "last updated" date that is computed from git history. We used to have the option to show this date turned on, and it appeared to be accurate when running the docs site locally and on the Netlify site. However, on the official live site, all of the dates were the same and reflected (I think) the latest build that was deployed to doc.wikimedia.org.

Landing page on the Netlify site (when we had the "last updated" date turned on):

image.png (880×1 px, 149 KB)

Landing page on the doc.wikimedia.org site (ditto):

image.png (892×1 px, 152 KB)

As part of T308488 we removed the "last updated" text by removing the lastUpdatedText theme config property from our VitePress config. Ideally, we would add it back in and show the correct date that the file in question was updated.

Related Objects

Event Timeline

AnneT renamed this task from Incorrect "last updated" date on live docs site pages to Add correct "last updated" date to docs site pages.Sep 1 2022, 8:13 PM
AnneT updated the task description. (Show Details)

And also use ISO 8601 for date format: YYYY-MM-DD

This is not important IMO