Skip to content

Conversation

@leggewie
Copy link
Collaborator

https://docs.armbian.com/User-Guide_Allwinner_overlays/ is referenced /boot/dtb/overlay/README.sun4i-a10-overlays and others. It should redirect to https://docs.armbian.com/User-Guide_Armbian_overlays/ nowadays.

Including other small, cosmetic fixes in the PR.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 27, 2025

Walkthrough

  • Documentation: two grammar corrections in docs/Developer-Guide_Build-Switches.md and docs/Developer-Guide_User-Configurations.md.
  • Site config: mkdocs.yml adds the mkdocs-redirects plugin with a redirect_map entry mapping User-Guide_Allwinner_overlays.mdUser-Guide_Armbian_overlays.md.
  • Dependencies: requirements.txt adds mkdocs-redirects>=1.2.2 (weasyprint line preserved; newline normalization visible). No source code, API, or behavioral changes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

size/medium

Suggested reviewers

  • igorpecovnik
  • EvilOlaf
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share
🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@github-actions github-actions bot added size/small PR with less then 50 lines Needs review Seeking for review labels Aug 27, 2025
Copy link
Contributor

@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 (2)
docs/Developer-Guide_User-Configurations.md (1)

14-14: Tiny grammar polish for clarity

“via command line” → “via the command line”; “still can override” → “can still override.”

-... All parameters which normally are passed via command line can be used (`PARAM1=value1` `PARAM2=value`) by using the same syntax, one separate line per `PARAM`. Command-line parameters still can override what is in the config file. ...
+... All parameters which normally are passed via the command line can be used (`PARAM1=value1` `PARAM2=value`) by using the same syntax, one separate line per `PARAM`. Command-line parameters can still override what is in the config file. ...
docs/Developer-Guide_Build-Switches.md (1)

300-300: Article usage: add “the” before ‘Armbian repository’

Matches the rest of the docs and fixes the flagged grammar hint.

-Enforce building without Armbian repository. Suitable for developing new releases or making custom images that don't need Armbian repository.
+Enforce building without the Armbian repository. Suitable for developing new releases or making custom images that don't need the Armbian repository.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 32458e8 and 47624ee.

📒 Files selected for processing (3)
  • docs/Developer-Guide_Build-Switches.md (1 hunks)
  • docs/Developer-Guide_User-Configurations.md (1 hunks)
  • mkdocs.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
mkdocs.yml

[warning] 71-71: wrong indentation: expected 8 but found 6

(indentation)


[warning] 72-72: wrong indentation: expected 10 but found 8

(indentation)

🪛 LanguageTool
docs/Developer-Guide_Build-Switches.md

[grammar] ~300-~300: There might be a mistake here.
Context: ...es-no` (default) Enforce building without Armbian repository. Suitable for develo...

(QB_NEW_EN)


[grammar] ~300-~300: There might be a mistake here.
Context: ...ases or making custom images that don't need Armbian repository. SECTOR_SIZE ( ...

(QB_NEW_EN)

Copy link
Contributor

@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: 2

🧹 Nitpick comments (4)
mkdocs.yml (4)

55-59: Fix YAML indentation to satisfy yamllint.

YAMLlint flags Lines 58–59. Align the plugin block to consistent 4‑space nesting under plugins.

Apply this diff:

-plugins:
-  - search
-  - redirects:
-      redirect_maps:
-        'User-Guide_Allwinner_overlays.md': 'User-Guide_Armbian_overlays.md'
+plugins:
+    - search
+    - redirects:
+        redirect_maps:
+          'User-Guide_Allwinner_overlays.md': 'User-Guide_Armbian_overlays.md'

118-135: Optional: surface the overlays page in nav.

Consider uncommenting/adding the overlays entry to improve discoverability.

Example:

-            #- 'Device tree overlays' : 'User-Guide_Armbian_overlays.md'
+            - 'Device tree overlays' : 'User-Guide_Armbian_overlays.md'

55-59: Keep generator in sync.

tools/mkArmbianDocs.py emits a plugins block (search, with-pdf). Add redirects there too to avoid divergence when regenerating config.


57-59: Note: HTML-level redirect vs HTTP 301.

mkdocs-redirects creates HTML/JS/meta refresh stubs, not server 301s. If strict 301s are required for SEO/logging, configure at the hosting/CDN layer.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 47624ee and 1d4c2f1.

📒 Files selected for processing (1)
  • mkdocs.yml (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
mkdocs.yml (1)
tools/mkArmbianDocs.py (1)
  • generateSite (77-153)
🪛 YAMLlint (1.37.1)
mkdocs.yml

[warning] 58-58: wrong indentation: expected 8 but found 6

(indentation)


[warning] 59-59: wrong indentation: expected 10 but found 8

(indentation)

🔇 Additional comments (1)
mkdocs.yml (1)

57-59: Redirect configured in the correct place; mapping looks right.

Using the redirects plugin under plugins with a file-based map matches the goal and will emit the needed stub for /User-Guide_Allwinner_overlays/. Good.

@igorpecovnik
Copy link
Member

Two things here:

  • is this information still relevant (AI can probably judge it)
  • this document is not linked to the menu. Now I don't know if this was left out by purpose (as info might be deprecated), otherwise it has to be placed somewhere.

- docs/Developer-Guide_User-Configurations.md:
  add "in"
- docs/Developer-Guide_User-Configurations.md:
  s/doesn't/don't/ where appropriate
Copy link
Contributor

@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)
mkdocs.yml (1)

57-59: Fix YAML indentation under redirects to satisfy linters

Indentation for keys under - redirects: should be 4 spaces (not 6). This matches YAMLlint’s warning and avoids fragile parsing.

 plugins:
   - search
-  - redirects:
-      redirect_maps:
-        'User-Guide_Allwinner_overlays.md': 'User-Guide_Armbian_overlays.md'
+  - redirects:
+      redirect_maps:
+        'User-Guide_Allwinner_overlays.md': 'User-Guide_Armbian_overlays.md'
🧹 Nitpick comments (3)
docs/Developer-Guide_Build-Switches.md (1)

300-300: Minor grammar tweak for clarity/article usage

Suggest adding “the” before “Armbian repository” and tightening wording.

-Enforce building without Armbian repository. Suitable for developing new releases or making custom images that don't need Armbian repository.
+Enforce building without the Armbian repository. Suitable for developing new releases or making custom images that don't need the Armbian repository.
mkdocs.yml (2)

57-59: Optional: add a path-style redirect to catch old trailing-slash URLs

Some external links may use the directory URL. Keep the file→file mapping and add a path→path mapping as well.

   - redirects:
       redirect_maps:
         'User-Guide_Allwinner_overlays.md': 'User-Guide_Armbian_overlays.md'
+        'User-Guide_Allwinner_overlays/': 'User-Guide_Armbian_overlays/'

Please verify locally that both:

  • /User-Guide_Allwinner_overlays/ → /User-Guide_Armbian_overlays/
  • /User-Guide_Allwinner_overlays/index.html → /User-Guide_Armbian_overlays/
    redirect as expected in the built site.

122-123: Clarify intent: overlays page is commented out in nav

The “Device tree overlays” entry for User-Guide_Armbian_overlays.md is commented out. If the page is still relevant (per reviewer’s question), consider restoring it to the menu; if deprecated, add a deprecation note at the top of the target doc.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between e3a5a88 and 09484b4.

📒 Files selected for processing (4)
  • docs/Developer-Guide_Build-Switches.md (1 hunks)
  • docs/Developer-Guide_User-Configurations.md (1 hunks)
  • mkdocs.yml (1 hunks)
  • requirements.txt (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • docs/Developer-Guide_User-Configurations.md
  • requirements.txt
🧰 Additional context used
🪛 LanguageTool
docs/Developer-Guide_Build-Switches.md

[grammar] ~300-~300: There might be a mistake here.
Context: ...es-no` (default) Enforce building without Armbian repository. Suitable for develo...

(QB_NEW_EN)


[grammar] ~300-~300: There might be a mistake here.
Context: ...ases or making custom images that don't need Armbian repository. SECTOR_SIZE ( ...

(QB_NEW_EN)

🪛 YAMLlint (1.37.1)
mkdocs.yml

[warning] 58-58: wrong indentation: expected 8 but found 6

(indentation)


[warning] 59-59: wrong indentation: expected 10 but found 8

(indentation)

@igorpecovnik igorpecovnik merged commit 2c5da25 into armbian:main Aug 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs review Seeking for review size/small PR with less then 50 lines

Development

Successfully merging this pull request may close these issues.

2 participants