-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add publish date on CI #456
Conversation
Awesome. Let's try it. Approving the run |
UpdateChanged CI to append more information. I'm open to any text or structural changes. Currently it would look like this. ## Release
PureScript v0.15.4
Published on 2023-08-26 We could also go with a more textual description like "This book was last updated on x and the examples were tested with PureScript version y". |
If there's no simple way of getting the PureScript version, maybe we can be vague about it? The goal is to tell people that the book isn't stale. Something like |
Either vague or referring to the one the tests and CI are executed with. |
Oh, ok, it's just added a 3s |
Looks good to me, @milesfrain what do you think? |
So, who's going to merge? 😉 |
Thank you, Andy! Works as expected. |
Description
This PR is supposed to add the information about when the book was published to the hosted version on https://book.purescript.org.
Motivation
Because of the history of the book, I personally always had the feeling that I'm looking at an outdated version. Having some indicator might be helpful that one is indeed looking at an up-to-date copy of the (awesome!) book.
Technical Considerations
The current PR is super simple. It will add a single line. It is mostly untested on CI, btw. I have no right to execute the github action, so testing wasn't really possible.
Alternatives
There is also https://github.com/badboy/mdbook-last-changed. It will add a footer to every page and, by default, refer to commits. This might be helpful, but is not actually what I'd intend with this PR. Therefore, I went with the simpler command-line approach, where the result was more to my liking.