[Doc] Replace the theme attribution in the nav footer

The bottom of the sidebar (and the mobile page footer) showed the theme's fallback line
"This site uses Just the Docs, a documentation theme for Jekyll", which tells readers nothing about the SDK.
Overriding nav_footer_custom.html replaces it with the release the documentation describes, linking the RubyGems
page of the version deployed via _data/versions.yml by bin/generate-gh-pages.sh, and with the licensing:
the documentation is CC-BY-4.0 per LICENSE, while the code licensing is delegated to LICENSE itself,
whose consent-based MIT to Apache-2.0 transition does not fit a footer phrase.
Without versions data (local previews of the docs/ source) only the license sentences render.
This commit is contained in:
Koichi ITO 2026-08-24 11:19:09 +09:00
commit 8866317e62

View file

@ -0,0 +1,14 @@
{%- comment -%}
Replaces the theme's "This site uses Just the Docs" attribution, shown at
the bottom of the sidebar on desktop and in the page footer on mobile.
_data/versions.yml exists only on the deployed gh-pages tree, where
bin/generate-gh-pages.sh generates it; without it (local previews of
the docs/ source) only the license sentence renders.
{%- endcomment -%}
{% if site.data.versions %}
Documentation for <a href="https://rubygems.org/gems/mcp/versions/{{ site.data.versions | first }}">mcp {{ site.data.versions | first }}</a>,
licensed <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY-4.0</a>.
{% else %}
Documentation licensed <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY-4.0</a>.
{% endif %}
See <a href="https://github.com/modelcontextprotocol/ruby-sdk/blob/main/LICENSE">LICENSE</a> for the code.