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

docs: fix several typos in the document #22098

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

xiaobei0715
Copy link
Contributor

@xiaobei0715 xiaobei0715 commented Oct 3, 2024

fix several typos in the document
Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Summary by CodeRabbit

  • Documentation
    • Restructured Cosmos SDK documentation for improved organization and navigation, including new sections for better clarity.
    • Clarified the PrepareProposal process within the CometBFT framework, enhancing understanding of transaction handling and block construction.

@xiaobei0715 xiaobei0715 requested a review from a team as a code owner October 3, 2024 12:29
Copy link
Contributor

coderabbitai bot commented Oct 3, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces a restructured organization for the Cosmos SDK documentation, particularly focusing on the /docs folder layout. It specifies the inclusion of sections such as README, intro, concepts, clients, modules, spec, translations, and architecture. Additionally, the 01-prepare-proposal.md document has been revised to clarify the PrepareProposal process within the CometBFT framework, enhancing understanding of how it interacts with the application and mempool.

Changes

File Path Change Summary
docs/architecture/adr-002-docs-structure.md Restructured /docs folder layout to include new sections for better organization and clarity.
docs/build/abci/01-prepare-proposal.md Clarified the PrepareProposal process, including application control over proposals and mempool usage.

Possibly related PRs

  • chore: fix spelling errors #21610: The changes in 01-prepare-proposal.md clarify the functionality of the PrepareProposal process, which is relevant to the restructuring of documentation in the main PR that focuses on enhancing clarity and organization.
  • docs: fix broken links #21751: This PR addresses broken links in documentation, which aligns with the main PR's goal of improving the structure and maintainability of the Cosmos SDK documentation.
  • docs: Add initial doc for system tests #22002: The introduction of a new document on system tests enhances the overall documentation framework, which is a key focus of the main PR's restructuring efforts.
  • docs: Update build/abci docs #22067: Updates to the build/abci documentation clarify the functionality of ABCI methods, which is consistent with the main PR's objective of enhancing the clarity and organization of the Cosmos SDK documentation.

Suggested labels

Type: ADR, backport/v0.52.x

Suggested reviewers

  • sontrinh16
  • julienrbrt

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>, 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 resolve resolve all the CodeRabbit review comments.
  • @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.

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

🧹 Outside diff range and nitpick comments (3)
docs/build/abci/01-prepare-proposal.md (2)

27-27: Approved with a minor suggestion for improvement

The clarification about the requirements for implementing a custom PrepareProposal handler is excellent. It provides clear guidance on the constraints that must be considered.

To further enhance clarity, consider adding a brief explanation of why these constraints are important. For example:

-own `PrepareProposal` handler, you must ensure that the transactions
-selected DO NOT exceed the maximum block gas (if set) and the maximum bytes provided
-by `req.MaxBytes`.
+own `PrepareProposal` handler, you must ensure that the transactions
+selected DO NOT exceed the maximum block gas (if set) and the maximum bytes provided
+by `req.MaxBytes`. These constraints are crucial for maintaining network stability
+and ensuring that blocks can be processed efficiently by all nodes.

Line range hint 1-38: Approved with suggestions for minor improvements

The changes throughout the document significantly improve the clarity and accuracy of the explanation. However, there are a couple of minor points that could be further enhanced:

  1. Grammar correction:
-Now, reading mempool twice in the previous sentence is confusing, lets break it down.
+Now, reading mempool twice in the previous sentence is confusing, let's break it down.
  1. Elaboration on priority mempool removal:

Consider adding a brief explanation about why the priority mempool was removed or deprecated, and how this affects transaction ordering. This could provide valuable context for readers familiar with previous versions. For example:

-It's worth noting that the priority mempool
-in Comet was removed or deprecated.
+It's worth noting that the priority mempool in Comet was removed or deprecated
+to simplify the system and reduce complexity, as the benefits of priority-based
+ordering can now be more effectively managed at the application level.
docs/architecture/adr-002-docs-structure.md (1)

Line range hint 43-50: Improve consistency in folder structure formatting

For better readability and consistency, consider using backticks for all folder and file names in the folder structure.

Suggested change:

 * `README`: Landing page of the docs.
-* intro: Introductory material. Goal is to have a short explainer of the Cosmos SDK and then channel people to the resources they need. The [Cosmos SDK tutorial](https://github.com/cosmos/sdk-application-tutorial/) will be highlighted, as well as the `godocs`.
-* concepts: Contains high-level explanations of the abstractions of the Cosmos SDK. It does not contain specific code implementation and does not need to be updated often. **It is not an API specification of the interfaces**. API spec is the `godoc`.
-* clients: Contains specs and info about the various Cosmos SDK clients.
-* spec: Contains specs of modules, and others.
-* modules: Contains links to `godocs` and the spec of the modules.
-* architecture: Contains architecture-related docs like the present one.
-* translations: Contains different translations of the documentation.
+* `intro`: Introductory material. Goal is to have a short explainer of the Cosmos SDK and then channel people to the resources they need. The [Cosmos SDK tutorial](https://github.com/cosmos/sdk-application-tutorial/) will be highlighted, as well as the `godocs`.
+* `concepts`: Contains high-level explanations of the abstractions of the Cosmos SDK. It does not contain specific code implementation and does not need to be updated often. **It is not an API specification of the interfaces**. API spec is the `godoc`.
+* `clients`: Contains specs and info about the various Cosmos SDK clients.
+* `spec`: Contains specs of modules, and others.
+* `modules`: Contains links to `godocs` and the spec of the modules.
+* `architecture`: Contains architecture-related docs like the present one.
+* `translations`: Contains different translations of the documentation.
🧰 Tools
🪛 LanguageTool

[style] ~40-~40: To elevate your writing, try using an alternative expression here.
Context: ...ure/ ``` The files in each sub-folders do not matter and will likely change. What matters is...

(MATTERS_RELEVANT)


[uncategorized] ~42-~42: Loose punctuation mark.
Context: ...t matters is the sectioning: * README: Landing page of the docs. * intro: In...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~43-~43: Loose punctuation mark.
Context: ...ME: Landing page of the docs. * intro`: Introductory material. Goal is to have ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~44-~44: Loose punctuation mark.
Context: ...d, as well as the godocs. * concepts: Contains high-level explanations of the...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~45-~45: Loose punctuation mark.
Context: ...**. API spec is the godoc. * clients: Contains specs and info about the vario...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~46-~46: Loose punctuation mark.
Context: ...the various Cosmos SDK clients. * spec: Contains specs of modules, and others. ...

(UNLIKELY_OPENING_PUNCTUATION)

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 8bbf51c and 333978d.

📒 Files selected for processing (2)
  • docs/architecture/adr-002-docs-structure.md (2 hunks)
  • docs/build/abci/01-prepare-proposal.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
docs/architecture/adr-002-docs-structure.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

docs/build/abci/01-prepare-proposal.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

🪛 LanguageTool
docs/architecture/adr-002-docs-structure.md

[uncategorized] ~43-~43: Loose punctuation mark.
Context: ...ME: Landing page of the docs. * intro`: Introductory material. Goal is to have ...

(UNLIKELY_OPENING_PUNCTUATION)


[grammar] ~72-~72: There seems to be a noun/verb agreement error. Did you mean “suppresses” or “suppressed”?
Context: ...nks to reworked architecture. * Cleaner suppress build for website docs. * Will help bui...

(SINGULAR_NOUN_VERB_AGREEMENT)

🔇 Additional comments (2)
docs/build/abci/01-prepare-proposal.md (1)

Line range hint 39-54: Code examples remain relevant and unchanged

The provided code blocks effectively illustrate the implementation and overriding of the default PrepareProposal handler. These examples are crucial for developers looking to customize the proposal handling process.

While no changes were made to these code blocks, they continue to serve as valuable references within the context of the updated documentation.

docs/architecture/adr-002-docs-structure.md (1)

Line range hint 1-89: LGTM: Well-structured and informative ADR

The overall structure and content of this Architectural Decision Record (ADR) are clear, well-organized, and informative. It effectively communicates the context, decision, status, and consequences of the proposed documentation restructuring for the Cosmos SDK.

🧰 Tools
🪛 LanguageTool

[style] ~40-~40: To elevate your writing, try using an alternative expression here.
Context: ...ure/ ``` The files in each sub-folders do not matter and will likely change. What matters is...

(MATTERS_RELEVANT)


[uncategorized] ~42-~42: Loose punctuation mark.
Context: ...t matters is the sectioning: * README: Landing page of the docs. * intro: In...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~43-~43: Loose punctuation mark.
Context: ...ME: Landing page of the docs. * intro`: Introductory material. Goal is to have ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~44-~44: Loose punctuation mark.
Context: ...d, as well as the godocs. * concepts: Contains high-level explanations of the...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~45-~45: Loose punctuation mark.
Context: ...**. API spec is the godoc. * clients: Contains specs and info about the vario...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~46-~46: Loose punctuation mark.
Context: ...the various Cosmos SDK clients. * spec: Contains specs of modules, and others. ...

(UNLIKELY_OPENING_PUNCTUATION)

docs/architecture/adr-002-docs-structure.md Outdated Show resolved Hide resolved
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

🧹 Outside diff range and nitpick comments (1)
docs/architecture/adr-002-docs-structure.md (1)

69-73: Minor: Ensure consistency in list item punctuation

For improved consistency, consider adding periods at the end of all list items in the "Positive" consequences section. Currently, some items end with periods while others don't.

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 333978d and 1f9468d.

📒 Files selected for processing (1)
  • docs/architecture/adr-002-docs-structure.md (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docs/architecture/adr-002-docs-structure.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

🪛 LanguageTool
docs/architecture/adr-002-docs-structure.md

[uncategorized] ~43-~43: Loose punctuation mark.
Context: ...ME: Landing page of the docs. * intro`: Introductory material. Goal is to have ...

(UNLIKELY_OPENING_PUNCTUATION)

🔇 Additional comments (2)
docs/architecture/adr-002-docs-structure.md (2)

Line range hint 1-89: LGTM: Well-structured and comprehensive ADR

The overall structure and content of this Architectural Decision Record (ADR) for the SDK Documentation Structure are well-organized and comprehensive. It clearly outlines the context, decision, status, consequences, and references, providing a thorough overview of the new documentation structure.

🧰 Tools
🪛 LanguageTool

[style] ~40-~40: To elevate your writing, try using an alternative expression here.
Context: ...ure/ ``` The files in each sub-folders do not matter and will likely change. What matters is...

(MATTERS_RELEVANT)


[uncategorized] ~42-~42: Loose punctuation mark.
Context: ...t matters is the sectioning: * README: Landing page of the docs. * intro: In...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~43-~43: Loose punctuation mark.
Context: ...ME: Landing page of the docs. * intro`: Introductory material. Goal is to have ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~44-~44: Loose punctuation mark.
Context: ...d, as well as the godocs. * concepts: Contains high-level explanations of the...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~45-~45: Loose punctuation mark.
Context: ...**. API spec is the godoc. * clients: Contains specs and info about the vario...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~46-~46: Loose punctuation mark.
Context: ...the various Cosmos SDK clients. * spec: Contains specs of modules, and others. ...

(UNLIKELY_OPENING_PUNCTUATION)


72-72: LGTM: Correct use of "vuepress"

The change from "suppress" to "vuepress" is correct and accurately describes a positive consequence of the new documentation structure. This change aligns with the previous reviewer's (julienrbrt) confirmation.

@tac0turtle tac0turtle added this pull request to the merge queue Oct 3, 2024
@julienrbrt julienrbrt added the backport/v0.52.x PR scheduled for inclusion in the v0.52's next stable release label Oct 3, 2024
Merged via the queue into cosmos:main with commit cd2c8ea Oct 3, 2024
72 of 74 checks passed
mergify bot pushed a commit that referenced this pull request Oct 3, 2024
Co-authored-by: Marko <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
(cherry picked from commit cd2c8ea)
julienrbrt pushed a commit that referenced this pull request Oct 3, 2024
@xiaobei0715 xiaobei0715 deleted the xiaobei0715-patch-2410032009 branch October 14, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.52.x PR scheduled for inclusion in the v0.52's next stable release Type: ADR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants