-
Notifications
You must be signed in to change notification settings - Fork 124
fix #1074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #1074
Conversation
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughAdds an exclude pattern for sitemap.txt to the link-checker config and updates several documentation links to point to local markdown files; also adjusts a generated docs footer link to an absolute GitHub URL. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–15 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
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 |
|
CodeAnt AI finished reviewing your PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.lychee.toml(1 hunks)docs/documentation/docker.md(1 hunks)docs/documentation/getting-started.md(1 hunks)toolchain/mfc/gen_case_constraints_docs.py(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
Repo: MFlowCode/MFC PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T21:50:16.713Z
Learning: Update in-code comments and documentation (README or docs site) when making significant changes
📚 Learning: 2025-11-24T21:50:46.909Z
Learnt from: CR
Repo: MFlowCode/MFC PR: 0
File: .cursor/rules/mfc-agent-rules.mdc:0-0
Timestamp: 2025-11-24T21:50:46.909Z
Learning: After each successful build step, run focused tests using `./mfc.sh test -j $(nproc) -f EA8FA07E -t 9E2CA336` instead of running all tests
Applied to files:
docs/documentation/getting-started.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
- GitHub Check: Coverage Test on CodeCov
- GitHub Check: Oak Ridge | Frontier (CCE) (gpu)
- GitHub Check: Georgia Tech | Phoenix (NVHPC) (gpu)
- GitHub Check: Georgia Tech | Phoenix (NVHPC) (cpu)
- GitHub Check: Github (ubuntu, mpi, no-debug, true)
- GitHub Check: Github (ubuntu, no-mpi, single, no-debug, false)
- GitHub Check: Github (macos, mpi, debug, false)
- GitHub Check: Github (ubuntu, mpi, no-debug, false)
- GitHub Check: Github (macos, mpi, no-debug, false)
- GitHub Check: Self Hosted (cpu, none, gt)
- GitHub Check: Self Hosted (gpu, omp, gt)
- GitHub Check: Self Hosted (gpu, omp, frontier)
- GitHub Check: Github (ubuntu, mpi, debug, true)
- GitHub Check: Self Hosted (cpu, none, frontier)
- GitHub Check: Github (ubuntu, mpi, debug, false)
- GitHub Check: Self Hosted (gpu, acc, frontier)
- GitHub Check: Self Hosted (gpu, acc, gt)
- GitHub Check: Code Cleanliness Check
- GitHub Check: cubic · AI code reviewer
- GitHub Check: Build & Publish
🔇 Additional comments (3)
.lychee.toml (1)
18-20: LGTM!The regex pattern correctly uses double backslash (
\\.) to escape the literal dot in TOML string format. The exclusion of sitemap.txt from link checking is appropriate for pre-publish URLs.docs/documentation/getting-started.md (1)
176-176: Verify that the target file exists.The link now points to a local file
docker.md. Please ensure this file exists in the same directory (docs/documentation/).docs/documentation/docker.md (1)
41-42: Verify that the target files exist.The links now point to local files
examples.mdandcase.md. Please ensure these files exist in thedocs/documentation/directory alongsidedocker.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR standardizes documentation link formats across the repository. The primary goal is to convert absolute URLs (using mflowcode.github.io) to relative paths for better maintainability and portability. Additionally, it configures the link checker to exclude the auto-generated sitemap file that contains pre-publish URLs.
Key Changes:
- Documentation links converted from absolute URLs to relative markdown paths
- Link checker configured to skip sitemap.txt validation
- One exception: Python generator creates GitHub source link instead of relative path
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
toolchain/mfc/gen_case_constraints_docs.py |
Changed link from relative path to absolute GitHub URL for case_validator.py reference |
docs/documentation/getting-started.md |
Converted Docker documentation link from absolute URL to relative path docker.md |
docs/documentation/docker.md |
Converted two documentation links (Example Cases and Case Files) from absolute URLs to relative paths |
.lychee.toml |
Added exclusion for sitemap.txt from link checking since it contains pre-publish production URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 issues found across 4 files
Prompt for AI agents (all 2 issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="docs/documentation/docker.md">
<violation number="1" location="docs/documentation/docker.md:41">
P1: Broken link: `examples.md` does not exist in the documentation directory. The repository only contains `case.md` but not `examples.md`. This will result in a 404 when users try to navigate to Example Cases.</violation>
</file>
<file name=".lychee.toml">
<violation number="1" location=".lychee.toml:20">
P2: The `exclude_path` pattern uses regex syntax (`\.` and `$`), but Lychee's `exclude_path` typically expects glob patterns. Consider using a glob pattern like `**/sitemap.txt` instead.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1074 +/- ##
=======================================
Coverage 44.16% 44.16%
=======================================
Files 71 71
Lines 20197 20197
Branches 1970 1970
=======================================
Hits 8921 8921
Misses 10148 10148
Partials 1128 1128 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
User description
PR Type
Bug fix, Documentation
Description
Fixed broken documentation links to use relative paths
Updated case_validator.py link to absolute GitHub URL
Added sitemap exclusion to link checker configuration
Diagram Walkthrough
File Walkthrough
gen_case_constraints_docs.py
Convert case_validator link to GitHub URLtoolchain/mfc/gen_case_constraints_docs.py
absolute GitHub URL
../../toolchain/mfc/case_validator.pyto full GitHubrepository link
docker.md
Convert absolute documentation links to relativedocs/documentation/docker.md
examples.mdcase.mdgetting-started.md
Convert Docker link to relative pathdocs/documentation/getting-started.md
docker.md.lychee.toml
Exclude sitemap from link validation.lychee.toml
production URLs
CodeAnt-AI Description
Use relative documentation links, skip sitemap in link checks, and link validator to GitHub
What Changed
Impact
✅ Functional local documentation links in container and site✅ Fewer link-check failures caused by sitemap✅ Easier access to validation logic on GitHub💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.
Summary by CodeRabbit
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.