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

More automatic documentation build checks (Lombiq Technologies: OCORE-164) #15887

Merged
merged 6 commits into from
Apr 28, 2024

Conversation

Piedone
Copy link
Member

@Piedone Piedone commented Apr 26, 2024

There were some INFO console entries coming from the docs build, see e.g. here. This PR fixes those and with stricter validation makes the build check for more issues, preventing further mistakes. By configuring MkDocs to only consider the actual src/docs folder the docs site's folder, the docs site build is much faster too (most notably under Windows).

@@ -43,7 +43,7 @@ repo_url: https://github.com/OrchardCMS/OrchardCore
edit_uri: edit/main/src/

# Options
docs_dir: src
docs_dir: src/docs
Copy link
Member Author

Choose a reason for hiding this comment

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

This necessitates all the "docs/" removals. Now not the whole src folder is considered the docs site, making builds much faster too.

@Piedone Piedone marked this pull request as ready for review April 26, 2024 15:41
Copy link
Contributor

coderabbitai bot commented Apr 26, 2024

Walkthrough

Walkthrough

The OrchardCore project underwent various updates aimed at refining documentation and navigation structures. Changes include adjusting project type declarations, modifying file paths in navigation, enhancing hyperlink references, and correcting URL casing. Content recommendations were also refined, such as the guidance on using PowerShell with MkDocs. These modifications collectively aim to enhance user experience, ensure accuracy, and maintain consistency in the documentation.

Changes

Files Change Summary
OrchardCore.sln
mkdocs.yml
Project type declaration change for OrchardCore.HealthChecks.Abstractions. Adjusted docs_dir, added validation settings, and updated navigation paths.
src/docs/README.md
src/docs/community/contributors/README.md
Updated internal links, paths, and removed docs/ prefix. Added an anchor tag for the All Contributors badge.
src/docs/guides/contributing/contributing-documentation.md Removed recommendation against using Windows PowerShell for MkDocs.
src/docs/reference/core/Modules/README.md
src/docs/reference/modules/Contents/README.md
src/docs/reference/modules/Themes/README.md
src/docs/reference/modules/Resources/README.md
Updated external links, hyperlink references, URLs to source files, and descriptions in documentation.
src/docs/topics/configuration/README.md
src/docs/topics/display/README.md
src/docs/topics/search/README.md
Corrected casing in glossary links and updated links to use lowercase.

This table groups similar changes and highlights key adjustments made to the OrchardCore documentation and configurations.


Recent Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 81b3c63 and 047ec1c.
Files selected for processing (2)
  • src/docs/topics/configuration/README.md (1 hunks)
  • src/docs/topics/search/README.md (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • src/docs/topics/configuration/README.md
  • src/docs/topics/search/README.md

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration 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.

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: 3

Out of diff range and nitpick comments (33)
src/docs/topics/search/README.md (1)

Line range hint 11-11: Add a hyphen to the compound adjective for clarity.

- Full text search implementation
+ Full-text search implementation
src/docs/topics/display/README.md (1)

Line range hint 12-12: Correct the syntax error by adding the missing closing bracket.

- TBD [What is a shape?](https://github.com/OrchardCMS/OrchardCore/issues/1184)
+ TBD [What is a shape?](https://github.com/OrchardCMS/OrchardCore/issues/1184)
src/docs/reference/modules/Resources/README.md (27)

Line range hint 1-1: Add a space after the period between "Resources" and "The Resources module".


Line range hint 5-5: Consider adding a comma before "so" as it connects two independent clauses.


Line range hint 11-11: Capitalize the first letter of the sentence starting with "Resources will be served via the StaticFileMiddleware".


Line range hint 11-11: Correct the spelling of "themes" to "theme's" to show possession.


Line range hint 12-12: Consider adding a comma after "folder" for clarity.


Line range hint 23-23: Correct the spelling of "or" to "of" in "Enabling AppendVersion or Resources cache busting".


Line range hint 37-37: Add a comma after "supplied" for better readability.


Line range hint 43-43: Add a space after the period between sentences.


Line range hint 107-107: Consider adding a comma after "Additionally" for better readability.


Line range hint 110-110: Use "an" instead of "a" before "unminified version".


Line range hint 111-111: Consider adding a comma after "ResourceDebugMode".


Line range hint 143-143: Capitalize the first letter of the sentence starting with "Make sure to register".


Line range hint 150-150: Consider adding a comma after "code" to separate the clauses more clearly.


Line range hint 154-154: Add a space after the period between sentences.


Line range hint 155-155: Add a space after the period between sentences.


Line range hint 183-183: Consider adding a comma after "3.5" for better readability.


Line range hint 221-221: Add a space after the period between sentences.


Line range hint 221-221: Add a space after the period between sentences.


Line range hint 255-255: Consider rephrasing to "By default, the behavior is defined by configuration."


Line range hint 304-304: Consider adding a comma after "Foot" for better readability.


Line range hint 366-366: Consider adding a comma after "bar" for better readability.


Line range hint 376-376: Capitalize the first letter of the sentence starting with "You do not have to define".


Line range hint 377-377: Consider adding a comma after "Hence" for better readability.


Line range hint 416-416: Consider adding an article before "Named script".


469-469: Consider adding a comma after "stylesheet" for better readability.


Line range hint 589-589: Consider adding a comma after "name" for better readability.


Line range hint 596-596: Capitalize the first letter of the sentence starting with "It is recommended".

src/docs/community/contributors/README.md (4)

Line range hint 6-6: Consider adding a comma after the badge section for better readability.

- <!-- ALL-CONTRIBUTORS-BADGE:END --> Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key))!
+ <!-- ALL-CONTRIBUTORS-BADGE:END -->, Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key))!

Line range hint 9-9: Start the sentence with an uppercase letter for consistency.

- !!! info     Do you want to become an Orchard Core contributor too? Awesome! Check out [our contribution guide](../../guides/contributing/README.md).
+ !!! Info     Do you want to become an Orchard Core contributor too? Awesome! Check out [our contribution guide](../../guides/contributing/README.md).

Line range hint 482-482: Consider reducing the number of exclamation marks to maintain a professional tone.

- Contributions of any kind welcome!
+ Contributions of any kind are welcome.

Line range hint 482-482: Ensure the file ends with a single newline character.

Please add a newline at the end of the file to adhere to common coding standards.

src/docs/topics/configuration/README.md Outdated Show resolved Hide resolved
src/docs/topics/search/README.md Outdated Show resolved Hide resolved
src/docs/community/contributors/README.md Show resolved Hide resolved
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants