Add Contribute link to Community submenu#569
Conversation
|
Warning Review limit reached
More reviews will be available in 59 minutes and 29 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe pull request adds a new "Contribute" menu item to the Community navigation submenu in the page header template, linking to ChangesCommunity Navigation Update
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. Comment |
|
| Filename | Overview |
|---|---|
| templates/default.html | Adds a "Contribute" submenu link under the Community dropdown pointing to /community/; one-line change consistent with existing menu markup and role="menuitem" pattern. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Community nav item
href=/community/] --> B{Dropdown submenu}
B --> C[Contribute
href=/community/
NEW]
B --> D[Events
href=/events/]
Reviews (2): Last reviewed commit: "feat(nav): Add Contribute link to Commun..." | Re-trigger Greptile
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@templates/default.html`:
- Line 60: The "Contribute" submenu currently links to the same URL as the
parent "Community" link; update the anchor in templates/default.html (the <a
role="menuitem" href="/community/">Contribute</a> element) to point to a
distinct target such as "/community/#contribute" or "/contribute/" and ensure
the target exists by adding a matching id="contribute" anchor or heading in
content/community/_index.md (or by creating a dedicated /contribute/ page) so
the submenu leads to a unique section.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 4cb09e2f-43e0-4f8c-9dec-2a06dd17899a
📒 Files selected for processing (1)
templates/default.html
| <div class="has-submenu"> | ||
| <a role="menuitem" href="/community/">Community</a> | ||
| <div class="submenu"> | ||
| <a role="menuitem" href="/community/">Contribute</a> |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check if /community/ page exists and examine its structure
fd -t f 'community' | head -10
# Search for community page content
rg -l "community" --type md --type html -g '!node_modules' | grep -i community | head -5Repository: valkey-io/valkey-io.github.io
Length of output: 325
Avoid redundant “Contribute” navigation URL
The “Contribute” submenu item (templates/default.html line 60) links to /community/, the same destination as the parent “Community” link (templates/default.html line 58), so it doesn’t provide a distinct navigation experience. Link “Contribute” directly to the relevant section on the /community/ page (use a fragment like /community/#contribute with a matching id in content/community/_index.md), or route it to a dedicated /contribute/ page instead.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@templates/default.html` at line 60, The "Contribute" submenu currently links
to the same URL as the parent "Community" link; update the anchor in
templates/default.html (the <a role="menuitem" href="/community/">Contribute</a>
element) to point to a distinct target such as "/community/#contribute" or
"/contribute/" and ensure the target exists by adding a matching id="contribute"
anchor or heading in content/community/_index.md (or by creating a dedicated
/contribute/ page) so the submenu leads to a unique section.
Signed-off-by: Mas Kubo <makubo@amazon.com>
99a7e80 to
8db5b32
Compare
|
Is there a larger context here? This doesn't really add a link - it just repeats the higher level menu item. |
Adds a 'Contribute' link under the Community dropdown menu that points to /community/ (the main community/contribute page). This makes the contribute page discoverable from the nav without requiring users to click the top-level Community link.