docs: Fix double border in the footer

オープン 初心者向け
#3,357 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
css, javascript
領域
documentation

調査の方向性

ドキュメントのフッターに使用されている footer.js と style.css を、docs サイトに表示されているフッターから調査します。説明されているフッターの変更を適用し、ドキュメントページで copyright テキストの上に 2 本の境界線が表示されなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug
What's broken?

The documentation is wrong or misleading

Where in the spec or docs?

The footer on every docs page.

https://modelcontextprotocol.io/docs

What should happen?

The footer is showing two borders above the copyright text:

Image

I have a fork which fixes it to look like:

Image
Solution

Fork: https://github.com/modelcontextprotocol/modelcontextprotocol/compare/main...TobCar:modelcontextprotocol:main?expand=1

Basically delete footer.js and add this to style.css:

#footer > div:first-of-type::after {
  content:
    "Copyright © Model Context Protocol a Series of LF Projects, LLC.\A "
    "For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.";

  /* Fill the row beside the icons; the spacing comes from the row's own gap */
  flex: 1;

  white-space: pre-line;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(var(--gray-500));
}

This is the same approach we use on https://getlemma.com/docs to add text to our footer.

I tried to open a pull request but recent changes made PRs collaborator-only. (Understandable honestly!)

主要言語
TypeScript
スター
9.3k
フォーク
1.8k
平均マージ
1日 12時間
マージ済み PR(30日)
25

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/modelcontextprotocol のほかの issue

modelcontextprotocol/modelcontextprotocol の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。