Skip to content

docs: give the home page a real title instead of a description - #506

Merged
shenxianpeng merged 2 commits into
mainfrom
bugfix/docs-nav-home-label
Oct 19, 2026
Merged

shenxianpeng merged 2 commits into
mainfrom
bugfix/docs-nav-home-label

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Before: #504 set the home page's front-matter title to "clang-format and clang-tidy GitHub Action". That is a description of the action, not a page title, and MkDocs also uses it as the nav label, so the sidebar on every page and the footer's "Previous" link on Inputs and Outputs called the home page "clang-format and clang-tidy GitHub Action" (two lines in the sidebar).

After: the front-matter title is cpp-linter-action, and the descriptive wording moved into description. The sidebar and footer say "cpp-linter-action" again, as they did before #504, with no nav label in mkdocs.yml.

Before / After

mkdocs build --strict of main (751fb7b) and of this branch, both with the locked docs dependencies (uv run --group docs). Both builds pass with no warnings.

Before (main) After (this branch)
Home page <title> clang-format and clang-tidy GitHub Action - C/C++ Linter Action cpp-linter-action - C/C++ Linter Action
Home page meta description Run clang-format and clang-tidy on the C/C++ files a pull request changes, … A GitHub Action that runs clang-format and clang-tidy on the C/C++ files a pull request changes, …
Home page label in the sidebar (every page) and the header clang-format and clang-tidy GitHub Action cpp-linter-action
Footer "Previous" on Inputs and Outputs clang-format and clang-tidy GitHub Action cpp-linter-action

Nothing else in the built site changes; the search index is identical.

Before (main) After (this branch)
Desktop 1280
Phone 375

The screenshots of /inputs-outputs/ were taken from the first version of this PR, which got the same sidebar and footer through a nav label; the rendered nav is identical.

Summary by CodeRabbit

  • Documentation
    • Updated the documentation title and clarified that the project runs clang-format and clang-tidy on changed C/C++ files.

#504 gave docs/index.md the front-matter title "clang-format and clang-tidy
GitHub Action" for the browser <title>. MkDocs also uses that title as the
page's navigation label, so the sidebar on every page and the footer's
"Previous" link on Inputs and Outputs showed the long title (wrapping to
two lines in the sidebar) instead of "cpp-linter-action".

An explicit nav label restores the short name, as clang-tools-pip does.
Material still builds <title> from the front matter, so the home page
<title> and meta description are unchanged, and the nav keeps all its
entries.
@shenxianpeng
shenxianpeng requested a review from a team as a code owner October 19, 2026 08:14
@shenxianpeng
shenxianpeng requested review from 2bndy5 and removed request for a team October 19, 2026 08:14
@github-actions github-actions Bot added the bug Something isn't working label Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9c7644af-7ce4-4bf9-ad3a-194ffc5b6f4c
📥 Commits

Reviewing files that changed from the base of the PR and between ebaba8c and d509a07.

📒 Files selected for processing: 1
  • docs/index.md

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

The documentation title now reads cpp-linter-action. Its description identifies the project as a GitHub Action that runs clang-format and clang-tidy on changed C/C++ files.

Changes

Documentation identity

Layer / File(s) Summary
Update the index page title and description
docs/index.md
The title and description now name cpp-linter-action and describe its clang-format and clang-tidy checks on changed C/C++ files.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to d509a

No material merge-blocking risk is apparent from the supplied change context.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the documentation change: replacing the home page description with a real title.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@shenxianpeng shenxianpeng added dependencies Pull requests that update a dependency file and removed bug Something isn't working labels Oct 19, 2026
@shenxianpeng
shenxianpeng enabled auto-merge (squash) October 19, 2026 08:46
Comment thread mkdocs.yml Outdated
Comment on lines +11 to +13
# An explicit label: the home page's front-matter title is the longer, search-facing
# "clang-format and clang-tidy GitHub Action", which only <title> should use.
- cpp-linter-action: index.md

@2bndy5 2bndy5 Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how AI bends over backwards to avoid making what it perceives as a breaking change.

The fact remains: the title metadata in index.md frontmatter is a description, not a title. Better to just update the metadata instead.

@shenxianpeng shenxianpeng added documentation Improvements or additions to documentation and removed dependencies Pull requests that update a dependency file labels Oct 19, 2026
The front-matter title from #504, "clang-format and clang-tidy GitHub
Action", described the action rather than naming the page, and MkDocs
uses it as the home page's nav label too. Use the action's name as the
title and move the descriptive wording into the meta description. The
explicit nav label from the previous commit is no longer needed.
@github-actions github-actions Bot added the bug Something isn't working label Oct 19, 2026
@shenxianpeng shenxianpeng changed the title docs: label the home page "cpp-linter-action" in the navigation again docs: give the home page a real title instead of a description Oct 19, 2026
@shenxianpeng
shenxianpeng requested a review from 2bndy5 October 19, 2026 18:33
@shenxianpeng shenxianpeng removed the bug Something isn't working label Oct 19, 2026
@shenxianpeng
shenxianpeng merged commit f1da128 into main Oct 19, 2026
8 checks passed
@shenxianpeng
shenxianpeng deleted the bugfix/docs-nav-home-label branch October 19, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants