Skip to content
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

various docs fixes #659

Closed
wants to merge 5 commits into from
Closed

various docs fixes #659

wants to merge 5 commits into from

Conversation

leggewie
Copy link

@leggewie leggewie commented Mar 23, 2025

  1. s/containin/containing/ (already approved by @EvilOlaf)
  2. various rewordings
  3. and most importantly, an outdated reference to lib/configuration.sh updated

leggewie added 2 commits April 7, 2025 11:15
commit a4a4cc3 moved lib/configuration.sh to
lib/functions/configuration/main-config.sh
Copy link

coderabbitai bot commented Apr 7, 2025

Walkthrough

The update refines documentation by addressing grammatical issues and improving clarity. Text modifications include the addition of articles, correction of typographical errors, and slight rewording of instructions related to patch handling and image customization. The configuration file path has been updated to point to a more specific location. Additionally, a reference to vendor firmware images has been corrected to fix a typographical error. There were no changes made to the declarations of exported or public entities.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@leggewie leggewie changed the title docs: user-getting-started.md fix small typo various docs fixes Apr 7, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (5)
docs/User-Guide_Getting-Started.md (1)

71-71: Typo Correction Verified & Style Suggestion

The corrected typo is now fixed, ensuring that the previously misspelled word is properly rendered. As an optional improvement for style and clarity, consider hyphenating the compound adjective to yield “vendor‐provided kernel” rather than “vendor provided kernel.”

🧰 Tools
🪛 LanguageTool

[grammar] ~71-~71: A determiner may be missing.
Context: ...ns vendor provided kernel which usually has best hardware support while version can be o...

(THE_SUPERLATIVE)

docs/Developer-Guide_User-Configurations.md (4)

5-5: Clarify and Polish Patch Instructions

The introductory sentence for user patches is now updated; to further improve clarity, consider inserting a definite article and adjusting punctuation. For example, rephrase:

  • Current: “User patches directory structure mirrors directory structure of patch.”
  • Suggested: “The user patches directory structure mirrors that of the patch directory.”
    This change can enhance readability.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~5-~5: Possible missing comma found.
Context: ...ory, for kernel or u-boot. There are no limitations except that all patches must have the f...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~5-~5: You might be missing the article “the” here.
Context: ...ser patches directory structure mirrors directory structure of patch. Look for the hint...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[uncategorized] ~5-~5: Possible missing article found.
Context: .... Look for the hint at the beginning of patching process to select the proper directory ...

(AI_HYDRA_LEO_MISSING_THE)


10-10: Grammar Correction in Patch Override Instruction

The sentence “Patches with the same file name and path in userpatches directory tree override those one in patch.” contains a grammatical error. Replacing “those one” with “those in the” makes the instruction clearer.

-Patches with the same file name and path in `userpatches` directory tree override those one in `patch`.
+Patches with the same file name and path in the `userpatches` directory tree override those in the `patch` directory.

22-22: Fix Word Order in Kernel Config Hint

There is a minor word order issue in the phrase “to the select proper config file name.” Changing it to “to select the proper config file name” improves grammatical correctness.

-Look for the hint at the beginning of the kernel compilation process to the select proper config file name.
+Look for the hint at the beginning of the kernel compilation process to select the proper config file name.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~22-~22: These words/punctuation marks might seem a little out of order. For clarity and coherence, try switching them around.
Context: ...ng of the kernel compilation process to the select proper config file name. Example: ...

(AI_EN_LECTOR_REPLACEMENT_WORD_ORDER)


43-43: Ensure Language Consistency

The text “...just before finalising the image.” should use American English for consistency with the project guidelines. Consider changing “finalising” to “finalizing.”

-... just before finalising the image.
+... just before finalizing the image.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f01f4dd and 9227052.

📒 Files selected for processing (2)
  • docs/Developer-Guide_User-Configurations.md (2 hunks)
  • docs/User-Guide_Getting-Started.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/User-Guide_Getting-Started.md

[grammar] ~71-~71: A determiner may be missing.
Context: ...ns vendor provided kernel which usually has best hardware support while version can be o...

(THE_SUPERLATIVE)

docs/Developer-Guide_User-Configurations.md

[uncategorized] ~5-~5: Possible missing comma found.
Context: ...ory, for kernel or u-boot. There are no limitations except that all patches must have the f...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~5-~5: You might be missing the article “the” here.
Context: ...ser patches directory structure mirrors directory structure of patch. Look for the hint...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[uncategorized] ~5-~5: Possible missing article found.
Context: .... Look for the hint at the beginning of patching process to select the proper directory ...

(AI_HYDRA_LEO_MISSING_THE)


[uncategorized] ~22-~22: These words/punctuation marks might seem a little out of order. For clarity and coherence, try switching them around.
Context: ...ng of the kernel compilation process to the select proper config file name. Example: ...

(AI_EN_LECTOR_REPLACEMENT_WORD_ORDER)

🔇 Additional comments (6)
docs/Developer-Guide_User-Configurations.md (6)

14-14: User Configuration Explanation Clear

The explanation regarding the behavior of userpatches/lib.config is clear and informative.


29-29: User Provided Sources Config Overrides Are Clear

The instructions for handling userpatches/sources/$LINUXFAMILY.conf are well written and need no further modifications.


39-39: Instruction for Image Customization is Clear

The directive to customize the image by editing userpatches/customize-image.sh is straightforward. No changes are necessary here.


45-45: Overlay Directory Instruction Clear

The instructions on adding files to the image via the overlay directory are clear and concise.


47-47: Architecture Note Clarification

The note regarding how additional apt packages and commands are handled based on the target architecture is informative and clearly presented.


53-53: Partition Expansion Instruction is Detailed

The explanation about preventing or configuring partition expansion using /root/.no_rootfs_resize or /root/.rootfs_resize is thorough and clear.

Copy link

@coderabbitai coderabbitai bot left a 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

🧹 Nitpick comments (5)
docs/Developer-Guide_User-Configurations.md (5)

5-5: Refine Article Usage and Punctuation in Patch Instructions.
The updated text is clearer; however, consider inserting the definite article "the" (e.g. “outside the build script”) and adding a comma after “directory” (in “appropriate directory, for kernel or u-boot”) to enhance readability.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~5-~5: Possible missing comma found.
Context: ...ory, for kernel or u-boot. There are no limitations except that all patches must have the f...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~5-~5: You might be missing the article “the” here.
Context: ...ser patches directory structure mirrors directory structure of patch. Look for the hint...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[uncategorized] ~5-~5: Possible missing article found.
Context: .... Look for the hint at the beginning of patching process to select the proper directory ...

(AI_HYDRA_LEO_MISSING_THE)


14-14: Enhance Clarity for Configuration File Usage.
The explanation for userpatches/lib.config is clear. If applicable, you might replace “it will be called” with “it will be sourced” to better reflect typical shell behavior. Also, check for any extra spaces before references such as lib/functions/configuration/main-config.sh.


29-29: Ensure Consistent File Reference Terminology.
Consider changing “If file userpatches/sources/$LINUXFAMILY.conf exists” to “If the file userpatches/sources/$LINUXFAMILY.conf exists” for consistency with other sections.


46-46: Clarify Architecture-Specific Behavior.
The note on how additional apt packages or commands in customize-image.sh are handled is informative. A slight rewording could further clarify that these commands are executed in a virtualized environment matching the target SBC’s architecture.


52-52: Improve Clarity on Partition Resize Instructions.
The explanation on preventing partition expansion and configuring resize operations is comprehensive but a bit lengthy. Consider rephrasing it and adding commas to clearly separate clauses. For example:

-You can prevent the partition expansion from within `customize-image.sh` by a `touch /root/.no_rootfs_resize` or configure the resize operation by either a percentage or a sector count using `/root/.rootfs_resize` (`50%` will use only half of the card's size if the image size doesn't exceed this or `3887103s` for example will use sector 3887103 as partition end. Values without either `%` or `s` will be ignored).
+You can prevent the partition expansion from within `customize-image.sh` by executing `touch /root/.no_rootfs_resize`, or you can configure the resize operation by specifying a percentage or a sector count using `/root/.rootfs_resize` (for example, `50%` will use only half of the card's size if the image size doesn't exceed this, and `3887103s` will indicate that the partition should end at sector 3887103; values without either `%` or `s` will be ignored).
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9227052 and e10ee98.

📒 Files selected for processing (1)
  • docs/Developer-Guide_User-Configurations.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/Developer-Guide_User-Configurations.md

[uncategorized] ~5-~5: Possible missing comma found.
Context: ...ory, for kernel or u-boot. There are no limitations except that all patches must have the f...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~5-~5: You might be missing the article “the” here.
Context: ...ser patches directory structure mirrors directory structure of patch. Look for the hint...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[uncategorized] ~5-~5: Possible missing article found.
Context: .... Look for the hint at the beginning of patching process to select the proper directory ...

(AI_HYDRA_LEO_MISSING_THE)


[uncategorized] ~50-~50: Possible missing comma found.
Context: ...you define $FIXED_IMAGE_SIZE at build time the partition containing the rootfs wil...

(AI_HYDRA_LEO_MISSING_COMMA)

🔇 Additional comments (4)
docs/Developer-Guide_User-Configurations.md (4)

22-22: Good Clarity in Config File Instructions.
The instructions for using userpatches/linux-$LINUXFAMILY-$BRANCH.config are clear and concise.


38-38: Clear Instructions for Custom Image Customization.
The updated text provides straightforward guidance on customizing the image by editing the designated file.


42-42: Straightforward Guidance on Placing Custom Code.
The explanation about placing your custom code and testing variables is clear and well-structured.


44-44: Concise File Addition Instructions.
The instructions on how to add files to the image by using userpatches/overlay are directly understandable.


[ o.k. ] Started patching process for [ kernel sunxi-edge 4.4.0-rc6 ]
[ o.k. ] Looking for user patches in [ userpatches/kernel/sunxi-edge ]

Patch with same file name in `userpatches` directory tree substitutes one in `patch`. To _replace_ a patch provided by Armbian maintainers, copy it from `patch` to corresponding directory in `userpatches` and edit it to your needs. To _disable_ a patch, create empty file in corresponding directory in `userpatches`.
Patches with the same file name and path in the `userpatches` directory tree override those one in the `patch` directory. To _replace_ a patch provided by Armbian maintainers, copy it from `patch` to the corresponding directory in `userpatches` and edit it to your needs. To _disable_ a patch, create an empty file in the corresponding directory in `userpatches`.
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Clarify Override Instructions for Patches.
The phrase “override those one in the patch directory” is a bit awkward. Consider rephrasing it to, for example, “override the patches in the patch directory” or “override the patch provided in the patch directory” for improved clarity.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (1)
docs/Developer-Guide_User-Configurations.md (1)

10-10: Improve Override Instruction Wording.
The phrase “override those one in the patch directory” still sounds awkward. Consider rephrasing it to “override the patches in the patch directory” or “override the patch provided in the patch directory” for better clarity. This comment is similar to a previous suggestion.

🧹 Nitpick comments (1)
docs/Developer-Guide_User-Configurations.md (1)

52-52: Nitpick on Partition Resize Configuration Instructions.
The sentence is clear overall but could be improved with minor punctuation and wording adjustments. For example, consider adding a comma after “for example” and rephrasing “by a touch /root/.no_rootfs_resize” to “by executing touch /root/.no_rootfs_resize” for enhanced clarity.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e10ee98 and b0223d3.

📒 Files selected for processing (1)
  • docs/Developer-Guide_User-Configurations.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/Developer-Guide_User-Configurations.md

[uncategorized] ~50-~50: Possible missing comma found.
Context: ...you define $FIXED_IMAGE_SIZE at build time the partition containing the rootfs wil...

(AI_HYDRA_LEO_MISSING_COMMA)

🔇 Additional comments (7)
docs/Developer-Guide_User-Configurations.md (7)

5-6: Clarify Patch Placement Instructions.
The updated wording clearly specifies that patches can be added outside the build script and placed in the appropriate directories for kernel or u-boot. Overall, the text is straightforward and improves clarity.


14-14: Updated Configuration File Reference.
The text now correctly references lib/functions/configuration/main-config.sh, which clearly indicates the location for available configuration variables.


22-22: User Kernel Config Instructions Clarity.
The instructions regarding the use of a custom kernel configuration file are concise and clear.


38-38: Clear Image Customization Introduction.
The directive to run additional commands to customize the image and the prompt to edit a specific file are well communicated.


42-42: Detailing Customization Script Usage.
The explanation on where to place code in the customization script and how it will be executed (within a chroot environment before finalizing the image) is clear and helpful.


44-44: Overlay Files Inclusion Guidance.
The instruction on how to add files to the image using the userpatches/overlay directory and access them via /tmp/overlay in the script is straightforward.


46-46: Advisory on Architecture-Specific Execution.
The note that commands in customize-image.sh will automatically be installed/executed/virtualized for the build target's architecture is informative and clear.

@EvilOlaf
Copy link
Member

EvilOlaf commented Apr 7, 2025

I suggest to go through rabbits suggestions. Otherwise good.

@igorpecovnik
Copy link
Member

Closing in favor of #669 (mess due main branch change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants