standards-hub / docs

A documentation template made with Nuxt UI Pro.
https://standards-hub.github.io/docs/
0 stars 0 forks source link

Insert a day stamp that indicates last time the documentation was updated. #54

Open jpradocueva opened 9 months ago

jpradocueva commented 9 months ago

@FroudeDescartes. We must introduce a new functionality that inserts the time stamp each time the documentation is updated.

Please take a look at the example at the bottom of the page. The date stamp is inserted automatically, each time that documentation is updated.

image
FroudeDescartes commented 9 months ago

https://www.npmjs.com/package/git-date-extractor https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-commits-on-a-repository https://stackoverflow.com/questions/50194241/get-when-the-file-was-last-updated-from-a-github-repository/50204589#50204589 https://nuxt.com/modules/date-fns

FroudeDescartes commented 8 months ago

Try adding a commit time stamp as well as last edited time

FroudeDescartes commented 8 months ago

Update: maybe try importing this module

const path = require('node:path');

FroudeDescartes commented 8 months ago

Try using this library for last edit date https://attacomsian.com/blog/nodejs-get-file-last-modified-date

FroudeDescartes commented 3 months ago

Set it per page YYYY-MMM-DD-hh-mm-ss 24h format

jpradocueva commented 1 hour ago

Is it possible to link this update with this page? https://www.openmobilealliance.org/sitemap.xml