Skip to content
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

Release Notes Overhaul #3539

Closed
IanMadd opened this issue Nov 5, 2021 · 3 comments
Closed

Release Notes Overhaul #3539

IanMadd opened this issue Nov 5, 2021 · 3 comments
Assignees
Labels
Documentation Epic Status: Untriaged An issue that has yet to be triaged. Type: Docs Intake Medium and Large Docs Support Requests

Comments

@IanMadd
Copy link
Contributor

IanMadd commented Nov 5, 2021

General details

People are looking for three features:

  • Searchable release notes. This would have to be deployed as static files using Hugo and not JavaScript so that page or pages could be indexed with Swiftype.
  • Single page release notes. A single page of release notes so that the user could scroll through the entire page without having to click on each individual page if they're looking for a specific feature. This could be done in JavaScript. Ideally we could find a way to do this with Hugo.
  • Product release dates. Add product release dates to the release note pages like in the Automate release notes.
  • Replace Showdown JS Markdown converter. Showdown hasn't been updated in a few years and now we're getting security vulnerability warnings from dependabot.

Review

Name of technical reviewer: Me

Searchable Release Notes

Original Issue: #3519

The big issue here is that there is currently no way to get Hugo to pull in MD files from packages.chef.io and deploy them as a static page and Swiftype can't index text that's not static.

Options:

  • Hugo could grab Markdown text from a JSON file from packages.chef.io and deploy it. We'd have to convert each MD file to JSON and anything that uses those files (downloads.chef.io) would have to be converted to handle JSON too.
  • Hugo could pull that content from another GitHub repository using the GitHub API and Hugo's getJSON.
  • Hugo could pull that content if we deployed the release note MD files from docs.chef.io from the static directory. Release notes could be released from docs.chef.io/data/release_notes/PRODUCT/VERSION.md. This would be the fastest option as far as Hugo build times are concerned.
  • Use curl to copy files before a build into static/data/release_notes/*. It would have to get the version numbers for each product, then loop through and grab each file. This could also be set to run only for a production deploy.
  • Someone is making a getResource function in Hugo which could grab MD files. Wait for them to finish which could be many months or years.

The downside of using Hugo's getJSON function is that it will add a considerable amount of time to the build process. I could set it so that Hugo only builds the release notes on a production deploy.

Single Page Release Notes

Original Issue: #3273

This could be done in JavaScript. We could have one page for all release notes for a product and then another page with the existing style that lists a single page of release notes.

Product release dates

Original Issue: #3510

As far as I know there's no list or file of release note dates for products. It seems like there should be one somewhere though. The Automate release notes gets the release date by parsing the name of each MD file.

@IanMadd IanMadd added Status: Untriaged An issue that has yet to be triaged. Documentation Type: Docs Intake Medium and Large Docs Support Requests labels Nov 5, 2021
@IanMadd IanMadd self-assigned this Nov 5, 2021
@IanMadd IanMadd added the Epic label Nov 5, 2021
@kagarmoe
Copy link
Contributor

Look into Habitat Release Notes #3047

@IanMadd IanMadd mentioned this issue Dec 23, 2021
8 tasks
@IanMadd
Copy link
Contributor Author

IanMadd commented Dec 24, 2021

TODO:

@IanMadd
Copy link
Contributor Author

IanMadd commented Jan 19, 2022

Closed with #3623

@IanMadd IanMadd closed this as completed Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Epic Status: Untriaged An issue that has yet to be triaged. Type: Docs Intake Medium and Large Docs Support Requests
Projects
None yet
Development

No branches or pull requests

2 participants