Skip to content

Commit 8866317

Browse files
committed
[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.
1 parent 2a31e0b commit 8866317

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)