This repository was archived by the owner on Aug 16, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork69
docs: Refactor documentation to use Markdown with CSS-based components#467
Open
PrasadBhat4 wants to merge4 commits intocoderabbitai:mainChoose a base branch fromPrasadBhat4:PrasadBhat4/configure-coderabbit-docs-improvements
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
4 commits Select commitHold shift + click to select a range
d9ea05d docs: added custom css and icons and images
89b3ae1 docs: optimized the styles of all the Admonitions (#438)
12d440a docs: optimized custom.css to have the changes for admonitions (#438)
a994c99 Merge branch 'main' into PrasadBhat4/configure-coderabbit-docs-improv…
PrasadBhat4File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
235 changes: 235 additions & 0 deletionssrc/components/YamlEditor/YamlEditor.module.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,235 @@ | ||
| .yamlEditorContainer { | ||
| margin: 1rem 0; | ||
| border-radius: 8px; | ||
| overflow: hidden; | ||
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); | ||
| } | ||
| .yamlEditor { | ||
| border-radius: 8px; | ||
| font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace !important; | ||
| font-size: 14px !important; | ||
| line-height: 1.5 !important; | ||
| } | ||
| /* Dark theme styling to match the image - using higher specificity */ | ||
| .yamlEditor .ace_editor, | ||
| .yamlEditor .ace_editor.ace_terminal, | ||
| .yamlEditor .ace_scroller, | ||
| .yamlEditor .ace_content { | ||
| background-color: #000000 !important; | ||
| color: #ffffff !important; | ||
| } | ||
| .yamlEditor .ace_gutter, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_gutter { | ||
| background-color: #000000 !important; | ||
| color: #6c6c6c !important; | ||
| border-right: 1px solid #404040 !important; | ||
| } | ||
| .yamlEditor .ace_gutter-active-line, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_gutter-active-line { | ||
| background-color: #404040 !important; | ||
| } | ||
| .yamlEditor .ace_line, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_line { | ||
| background-color: #000000 !important; | ||
| } | ||
| .yamlEditor .ace_cursor, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_cursor { | ||
| color: #ffffff !important; | ||
| } | ||
| .yamlEditor .ace_selection, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_selection { | ||
| background-color: #44475a !important; | ||
| } | ||
| .yamlEditor .ace_selected-word, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_selected-word { | ||
| background-color: #44475a !important; | ||
| } | ||
| .yamlEditor .ace_active-line, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_active-line { | ||
| background-color: #44475a !important; | ||
| } | ||
| /* Additional overrides for all possible background elements */ | ||
| .yamlEditor .ace_layer, | ||
| .yamlEditor .ace_text-layer, | ||
| .yamlEditor .ace_marker-layer, | ||
| .yamlEditor .ace_cursor-layer { | ||
| background-color: #000000 !important; | ||
| } | ||
| /* Global override for any remaining elements */ | ||
| .yamlEditor * { | ||
| background-color: transparent !important; | ||
| } | ||
| .yamlEditor .ace_editor, | ||
| .yamlEditor .ace_editor *, | ||
| .yamlEditor .ace_scroller, | ||
| .yamlEditor .ace_content { | ||
| background-color: #000000 !important; | ||
| } | ||
| /* YAML syntax highlighting to match the image - using higher specificity */ | ||
| .yamlEditor .ace_comment, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_comment { | ||
| color: #999999 !important; | ||
| font-style: italic !important; | ||
| } | ||
| /* Target lines that start with # (comments) */ | ||
| .yamlEditor .ace_text-layer .ace_line:first-child, | ||
| .yamlEditor .ace_text-layer .ace_line:first-child * { | ||
| color: #999999 !important; | ||
| font-style: italic !important; | ||
| } | ||
| /* More specific targeting for any element containing comment-like content */ | ||
| .yamlEditor [class*="comment"], | ||
| .yamlEditor [class*="Comment"] { | ||
| color: #999999 !important; | ||
| font-style: italic !important; | ||
| } | ||
| .yamlEditor .ace_string, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_string { | ||
| color: #ff84d6 !important; | ||
| } | ||
| .yamlEditor .ace_constant.ace_numeric, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_constant.ace_numeric { | ||
| color: #b5cea8 !important; | ||
| } | ||
| .yamlEditor .ace_constant.ace_language, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_constant.ace_language { | ||
| color: #569cd6 !important; | ||
| font-weight: bold !important; | ||
| } | ||
| .yamlEditor .ace_variable, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_variable { | ||
| color: #ffffff !important; | ||
| } | ||
| .yamlEditor .ace_keyword, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_keyword { | ||
| color: #ffffff !important; | ||
| } | ||
| .yamlEditor .ace_storage, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_storage { | ||
| color: #ffffff !important; | ||
| } | ||
| .yamlEditor .ace_entity.ace_name.ace_tag, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_entity.ace_name.ace_tag { | ||
| color: #ffffff !important; | ||
| } | ||
| .yamlEditor .ace_markup.ace_heading, | ||
| .yamlEditor .ace_editor.ace_terminal .ace_markup.ace_heading { | ||
| color: #ffffff !important; | ||
| } | ||
| /* Light theme support */ | ||
| [data-theme="light"] .yamlEditor .ace_editor { | ||
| background-color: #ffffff !important; | ||
| color: #24292e !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_gutter { | ||
| background-color: #f6f8fa !important; | ||
| color: #6a737d !important; | ||
| border-right: 1px solid #e1e4e8 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_gutter-active-line { | ||
| background-color: #f6f8fa !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_line { | ||
| background-color: #ffffff !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_cursor { | ||
| color: #24292e !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_selection { | ||
| background-color: #c8e1ff !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_selected-word { | ||
| background-color: #c8e1ff !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_active-line { | ||
| background-color: #f6f8fa !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_comment { | ||
| color: #999999 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_string { | ||
| color: #032f62 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_constant.ace_numeric { | ||
| color: #005cc5 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_constant.ace_language { | ||
| color: #d73a49 !important; | ||
| font-weight: bold !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_variable { | ||
| color: #005cc5 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_keyword { | ||
| color: #d73a49 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_storage { | ||
| color: #d73a49 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_entity.ace_name.ace_tag { | ||
| color: #005cc5 !important; | ||
| } | ||
| [data-theme="light"] .yamlEditor .ace_markup.ace_heading { | ||
| color: #005cc5 !important; | ||
| } | ||
| /* Responsive design */ | ||
| @media (max-width: 768px) { | ||
| .yamlEditor { | ||
| font-size: 12px !important; | ||
| } | ||
| .yamlEditorContainer { | ||
| margin: 0.8rem 0; | ||
| } | ||
| } | ||
| @media (max-width: 480px) { | ||
| .yamlEditor { | ||
| font-size: 11px !important; | ||
| } | ||
| .yamlEditorContainer { | ||
| margin: 0.6rem 0; | ||
| } | ||
| } |
14 changes: 10 additions & 4 deletionssrc/components/YamlEditor/YamlEditor.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.