[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:
parent
2a31e0bd80
commit
8866317e62
1 changed files with 14 additions and 0 deletions
14
docs/_includes/nav_footer_custom.html
Normal file
14
docs/_includes/nav_footer_custom.html
Normal 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.
|
||||
Loading…
Reference in a new issue