-
Notifications
You must be signed in to change notification settings - Fork 205
cp: fix: fix github to myst-parser admonition conversion (1224) into r0.4.0
#1332
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
Conversation
Signed-off-by: Terry Kong <[email protected]> Signed-off-by: NeMo Bot <[email protected]>
📝 WalkthroughWalkthroughDocumentation files replace custom/old admonition syntax with blockquote-style Markdown admonitions. Sphinx config refactors GitHub-style admonition conversion into an in-place converter with wrapper hooks registered for both include-read and source-read events, adjusting fence handling and spacing. No content semantics or executable commands changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Sphinx
participant IR as include-read event
participant SR as source-read event
participant W1 as _convert_gh_admonitions(...)
participant W2 as _convert_gh_admonitions_source(...)
participant C as _convert_gh_admonitions_inplace(contents)
rect rgba(230,240,255,0.6)
note over Dev: Build starts
Dev->>IR: Emit include-read(app, relative_path, parent_docname, contents)
IR->>W1: Call wrapper with contents
W1->>C: Convert in-place
C-->>W1: contents mutated
W1-->>IR: return
end
rect rgba(230,255,230,0.6)
Dev->>SR: Emit source-read(app, docname, source)
SR->>W2: Call wrapper with source
W2->>C: Convert in-place
C-->>W2: source mutated
W2-->>SR: return
end
note over C: Replace GitHub admonitions with MyST<br/>using fenced blocks and spacing rules
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (2)docs/**/*.md📄 CodeRabbit inference engine (CODING_GUIDELINES.md)
Files:
**/*.py📄 CodeRabbit inference engine (CODING_GUIDELINES.md)
Files:
⏰ 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). (7)
🔇 Additional comments (8)
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 |
beep boop [🤖]: Hi @terrykong 👋,
Summary by CodeRabbit
Documentation
Refactor