This project uses Docusaurus versioning to manage documentation for different releases of the Yellow Network protocol and SDK.
docs/: functionality for the upcoming/current development version (labeled as "Next" or derived frompackage.json).versioned_docs/version-0.5.x/: Frozen documentation for the0.5.xstable release.
When you are ready to release the current work, this process involves freezing the current version (e.g., 0.6.x) and creating the next development version (e.g., 0.7.x).
npm run version:release 0.6.x 0.7.xThis single command will:
- Snapshot
docs/toversioned_docs/version-0.6.x. - Update
package.jsonversion to0.7.x(which updates the "Next" dropdown label).
To fix a typo or add a note to an old version (e.g., 0.5.x):
- Edit the files in
versioned_docs/version-0.5.x/. - Do not edit files in
docs/for old versions;docs/is always the future version.
To remove an old version that is no longer supported (e.g., 0.5.x):
npm run version:remove 0.5.xThis performs a safe, complete deletion of the version folder and config entry.
To delete ALL history and return to a single-version project (e.g., just 0.5.x):
npm run version:reset 0.5.xWarning: This deletes all versioned_docs folders. You will be left with only the current content in docs/, labeled as 0.5.x.