Build In LTS / Current docs to Gatsby Bundle
Summary
Historical documentation will be fetched async as requested: ref https://github.com/nodejs/nodejs.dev/issues/255. This ticket must be done after historical docs land.
Current and LTS docs should be pulled in through node_modules via the (yet-to-be-published) @nodejs/i18n translated module and bundled with the Gatsby app to make best use of SSR and translation.
If the user selects the LTS docs (shown by default when "docs" is clicked in the nav) Gatsby should render the bundled documentation instead of making the AJAX request for historical documentation.
Outstanding Questions
- Will we provide translations for historical documentation? If yes, we need to make historical translated docs available on the server and/or the node_module.
@nodejs/i18n I'd like to follow up with this issue. Can someone please update me about the status on the i18n-package? Do we have blockers?
@LaRuaNa please take a look at https://github.com/nodejs/i18n/pull/250 -- feedback wanted!
@benhalverson do you know if the i18n module is functional/maintained. Should we rely on it? Or should we proceed with the YAML approach we were talking about?
Hey @zeke @JohnTitor is there any chance the nodejs/i18n package could also provide the data in JSON besides just Markdown? (https://github.com/nodejs/i18n/issues/689)
Closing as this was done, but sadly we're not going to proceed with the i18n package here for now.