Versioned Docs#868
Open
martin0995 wants to merge 12 commits into
Open
Conversation
| run: echo "LATEST_VERSION=$(npm show @wormhole-foundation/sdk version)" >> $GITHUB_ENV | ||
| - name: Extract version from release tag (e.g. v3.0.0) | ||
| run: | | ||
| TAG_VERSION=${GITHUB_REF#refs/tags/v} |
Collaborator
There was a problem hiding this comment.
I don't think we should run this action if the tag was a beta tag (e.g. 2.3.0-beta.0) since we probably wouldn't merge the package.json file with the beta version set.
Contributor
Author
There was a problem hiding this comment.
I just added this line at the beginning to skip the workflow for beta versions:
if: ${{ !contains(github.ref, '-') }}
Contributor
Author
There was a problem hiding this comment.
@kev1n-peters GitHub Action is failing to create the pull request because it doesn't have permission to do so. Someone with admin access needs to update the repository settings to allow it.
added 11 commits
August 27, 2025 14:55
martin0995
force-pushed
the
multi-version-docs
branch
from
August 27, 2025 12:57
9695094 to
00d63d2
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the documentation workflow and associated files to streamline the process of generating and managing versioned documentation for the Wormhole SDK. The changes simplify the GitHub Actions workflow, add new documentation, and introduce version tracking for the documentation.
Documentation Enhancements
docs/README.md): Added a new README file explaining the folder structure, update process, and best practices for maintaining the documentation.Versioned Documentation Script
docs/scripts/versioned-docs.ts: The script reads the current SDK version frompackage.json, and if it detects a new major version, it copiesdocs/latest/todocs/vX/, regeneratesdocs/latest/using TypeDoc, and updates.versionto track the latest documented version.Version Tracking
docs/.version: Introduced a new.versionfile to track the latest built documentation version, starting with version2.2.0.Workflow Improvements
.github/workflows/update-docs.yml: Simplified the workflow by replacing the NPM version retrieval with extracting the version from the release tag, consolidating dependency installation steps, and improving the Git commit process to include bothpackage.jsonand documentation updates.For users to access the versioned docs live, we need to update GitHub Pages to serve from the
/docsfolder in the main branch.The docs should be accessible at: