From 76e6854375e2edf3bebd69c99ee757f3d65005bd Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Tue, 16 Dec 2025 17:21:03 -0600 Subject: [PATCH] docs: add GitHub Pages redirect to latest release documentation (#702) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Context:** I am working on getting documentation up for each MCP SDK at `https://modelcontextprotocol.github.io/*-sdk/`. I realize the Go ecosystem has its own idioms for generating and hosting documentation, so I am proposing we make https://modelcontextprotocol.github.io/go-sdk/ redirect to the latest tag of https://github.com/modelcontextprotocol/go-sdk/blob/v1.1.0/docs/README.md. --- Adds a redirect page at https://modelcontextprotocol.github.io/go-sdk/ that automatically redirects visitors to the `docs/README.md` of the latest release tag. Uses Jekyll templating with `site.github.latest_release` to dynamically resolve the current release version at build time. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 --- .github/workflows/publish-docs.yml | 24 ++++++++++++++++++++++++ docs/index.html | 15 +++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/publish-docs.yml create mode 100644 docs/index.html diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 0000000..d599019 --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,24 @@ +name: Publish Docs to GitHub Pages + +on: + release: + types: [published] + workflow_dispatch: + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs + publish_branch: gh-pages + enable_jekyll: true diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..8ec5ea6 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,15 @@ +--- +--- + + + + + MCP Go SDK Documentation + + + + +

Redirecting to MCP Go SDK documentation ({{ site.github.latest_release.tag_name }})...

+

For API reference, see pkg.go.dev.

+ +