-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Use released version of code snippets in docs (#2439)
The doc site uses the include-code macro for loading code from the repository into the docs. However, it is always including what's on master, which may not reflect what's been released and is available to the user. This commit changes how files are loaded so they are pulled from the currently released version (according to the release-please manifest) if building on netlify (ie for publishing). For working locally or on our CI, the latest is always used. If loading a snippet from the last released version fails (because the file was moved, or it's new, or the identifier was recently added) triggers a fallback to the current content, which should work as guaranteed by the CI.
- Loading branch information
1 parent
63cf415
commit 76fc2cf
Showing
1 changed file
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters