GoogleChrome / devtools-docs

The legacy documentation for Chrome DevTools.
https://developer.chrome.com/devtools
691 stars 180 forks source link

Add date modified to docs #145

Open paulirish opened 10 years ago

paulirish commented 10 years ago

https://twitter.com/cancelBubble/status/502181295095816192 image

I can empathize with this. We should do this.

We could probably even provide a changelog via our git commits if we wanted to go that far.

Garbee commented 10 years ago

I noticed some pages used to have this. I see 2 logistical things.

Maybe at the end of each page we could add a link to the doc page in the master branch. This would:

pearlchen-old commented 10 years ago

+1

Garbee commented 10 years ago

So in today's IRC campfire we discussed this. We are going to attempt two things to help resolve this.

  1. An attempt is going to be made at automating a timestamp upon commits. So each commit would automatically update this no matter how small.
  2. Regardless of the success of point 1, we are going to link to the history for each page somewhere.
    • Most likely in a footer or something towards the bottom of the documents. I'll take a look at this during an audit and see what makes sense to me. If someone has a preference though let me know because I do enjoy less thinking.

Oh, some mockup text (if both points can be hit) is:

This article was last updated on <time>Date</time>. For a full history of the page please view the changelog.

Garbee commented 10 years ago

So looking over the Github API, there isn't a direct way to get the last edit time for a specific file in the repo (not surprising considering how git works.) So if it were to be done we'd need to hack it manually into the docserver code. To keep things simple, we are probably better off just adding static links to the page changelogs on each and be done.

Sound good?