Skip to content

feat: updates for doc rearchitecture, part 1#1385

Merged
jcstein merged 16 commits intomainfrom
jcs/docs-rearchitecture-part-1
Feb 6, 2024
Merged

feat: updates for doc rearchitecture, part 1#1385
jcstein merged 16 commits intomainfrom
jcs/docs-rearchitecture-part-1

Conversation

@jcstein
Copy link
Copy Markdown
Member

@jcstein jcstein commented Jan 30, 2024

Overview

This is the first of a few PRs to update docs architecture. It does the following:

Change Preview Link (good while PR is open) Final Link (only good after PR is merged)
Moves IBC docs to Nodes category Preview Final link
Moves "Retrievability" page to Learn > Overview > Data availability layer menu Preview Final Link
Moves staking docs, "How to stake TIA" and "Staking dashboards" to learn section Preview Final Link
Moves "Celestia-app wallet" page to Node category Preview Final Link
Moves Multisig doc to Node category Preview Final Link
Moves Vesting doc to Node category Preview Final Link
Removes links in menu to wallets, reducing bloat. Combines developer wallet integration page to just a single code block example page, with examples for each wallet as tabs. Preview Final Link
Removes components for wallet connection.
Moves Transaction resubmission guide to Developers from Nodes category. Preview Final Link

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Expanded documentation with new links and subcategories on topics like staking, IBC relayers, and wallet integration.
    • Introduced a broader focus on integrating Celestia chains with various wallets, including steps for adding custom chains.
  • Documentation
    • Updated various links and texts across documentation for improved clarity and navigation.
    • Enhanced formatting in tutorials and guides for better readability.
    • Added sections for easier navigation within documents.
  • Bug Fixes
    • Corrected an expression in the "submit-data" documentation for accuracy.
  • Refactor
    • Removed outdated sections and content from several documents, ensuring up-to-date and focused information.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 30, 2024

Warning

Rate Limit Exceeded

@jcstein has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 59 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.
Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.
Please see our FAQ for further information.

Commits Files that changed from the base of the PR and between ff859ec and aa6ef78.

Walkthrough

These modifications enhance the documentation by incorporating new links and subcategories related to various blockchain functionalities like staking, IBC relayers, and wallet integration. They adjust content to reflect broader wallet integration strategies, update links and descriptions for clarity and accuracy, and refine technical details for developers. The changes aim to provide clearer guidance, streamline navigation, and ensure the documentation remains relevant to the evolving blockchain ecosystem.

Changes

Files Change Summary
.vitepress/config.ts Added links and subcategories for staking, IBC relayers, wallets, etc.
developers/leap.md, developers/wallets.md Updated link text/URL for wallet integration; broadened scope for Celestia chain integration.
developers/node-tutorial.md Adjusted code block and list item formatting, added comments.
developers/submit-data.md Replaced * with \ in an expression.
learn/staking-governance-supply.md, nodes/consensus-node.md Updated hyperlinks for better navigation.
developers/full-stack-..., developers/optimism.md, developers/transaction-resubmission.md, nodes/celestia-app-wallet.md Content focus shift; removed specific sections, updated descriptions and links.
nodes/mainnet.md Adjusted calculation and descriptions for total bytes and blob size.
developers/celestia-node-key.md, developers/rollkit.md, nodes/celestia-app-metrics.md, nodes/celestia-node-troubleshooting.md, nodes/ibc-relayer.md Added navigation links for easier document traversal.

🐇✨
In the realm of code, where changes abound,
A rabbit hopped, leaving trails on the ground.
Through docs and links, it danced with glee,
"To better guides!" it cheered, "Come follow me!"
🌟📚

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-tests for this file.
  • 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 tests 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 from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @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.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 30, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://celestiaorg.github.io/docs/pr-preview/pr-1385/
on branch gh-pages at 2024-02-05 20:56 UTC

@jcstein jcstein self-assigned this Jan 30, 2024
@jcstein jcstein added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 30, 2024
Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 2bec065 and 7584952.
Files selected for processing (7)
  • .vitepress/config.ts (9 hunks)
  • developers/leap.md (1 hunks)
  • developers/node-tutorial.md (2 hunks)
  • developers/submit-data.md (1 hunks)
  • developers/wallets.md (4 hunks)
  • learn/staking-governance-supply.md (1 hunks)
  • nodes/mainnet.md (1 hunks)
Files skipped from review due to trivial changes (6)
  • .vitepress/config.ts
  • developers/leap.md
  • developers/node-tutorial.md
  • developers/submit-data.md
  • developers/wallets.md
  • nodes/mainnet.md
Additional comments: 5
learn/staking-governance-supply.md (5)
  • 30-30: The hyperlink update from ../../developers/staking.md to ../../nodes/staking.md aligns with the PR's objective to reorganize and update the documentation structure for better clarity and accessibility. Ensure that the new path correctly points to the intended staking.md file within the nodes directory and that this file exists and is accessible at the new location.
  • 27-33: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1-1]

The front matter of the document correctly sets the description, which is essential for metadata and SEO purposes. This is a good practice for documentation files.

  • 27-33: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [3-3]

The title "Staking, governance, & supply" succinctly captures the document's scope. This clarity is beneficial for readers navigating the documentation.

  • 27-33: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [5-29]

The introduction and explanation of Celestia's proof-of-stake mechanism are clear and informative. The use of a table to summarize key aspects of the consensus mechanism and blockchain framework is a good practice for readability and quick reference.

  • 27-33: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [32-104]

The sections on inflation, decentralized governance, TIA allocation at genesis, and unlocks are well-structured and provide comprehensive information on each topic. The use of images and links to external resources enhances the document's informational value. Ensure all external links are accurate and up-to-date.

Verification successful

The verification process confirmed that all external links provided in the document are accessible:

This ensures that the document's references are accurate and up-to-date, aligning with the review comment's approval and verification request.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the accessibility of external resources.
external_links=(
  "https://docs.cosmos.network/main/modules/staking"
  "https://github.com/celestiaorg/celestia-app/blob/main/docs/architecture/adr-019-strict-inflation-schedule.md"
  "https://github.com/celestiaorg/celestia-app/blob/v1.x/specs/src/specs/params.md"
  "https://docs.cosmos.network/main/modules/distribution"
  "https://community.optimism.io/docs/governance/allocations/#token-distribution-details"
)

for link in "${external_links[@]}"; do
  if ! curl --output /dev/null --silent --head --fail "$link"; then
    echo "Link check failed for: $link"
  else
    echo "Link is accessible: $link"
  fi
done

Length of output: 2215

Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 7584952 and f197d41.
Files selected for processing (1)
  • .vitepress/config.ts (9 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .vitepress/config.ts

Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between f197d41 and 7848248.
Files selected for processing (7)
  • .vitepress/config.ts (9 hunks)
  • developers/full-stack-modular-development-guide.md (1 hunks)
  • developers/node-tutorial.md (2 hunks)
  • developers/optimism.md (1 hunks)
  • developers/transaction-resubmission.md (1 hunks)
  • nodes/celestia-app-wallet.md (1 hunks)
  • nodes/consensus-node.md (1 hunks)
Files skipped from review due to trivial changes (5)
  • developers/full-stack-modular-development-guide.md
  • developers/optimism.md
  • developers/transaction-resubmission.md
  • nodes/celestia-app-wallet.md
  • nodes/consensus-node.md
Files skipped from review as they are similar to previous changes (2)
  • .vitepress/config.ts
  • developers/node-tutorial.md

@jcstein jcstein changed the title feat: updates for doc rearchitecture feat: updates for doc rearchitecture, part 1 Jan 31, 2024
@jcstein jcstein requested a review from Bidon15 January 31, 2024 19:04
@jcstein jcstein removed the request for review from Bidon15 January 31, 2024 19:09
@jcstein jcstein marked this pull request as draft January 31, 2024 19:09
@jcstein jcstein marked this pull request as ready for review January 31, 2024 19:19
@jcstein jcstein requested a review from Bidon15 January 31, 2024 19:19
Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 7848248 and d72113f.
Files selected for processing (3)
  • .vitepress/config.ts (7 hunks)
  • developers/node-tutorial.md (1 hunks)
  • developers/wallets.md (4 hunks)
Files skipped from review as they are similar to previous changes (2)
  • .vitepress/config.ts
  • developers/node-tutorial.md
Additional comments: 1
developers/wallets.md (1)
  • 5-21: The introduction and overview of wallet integrations with Celestia have been updated to reflect a broader approach to integrating Celestia chains with existing wallets. This change aligns with the PR objectives to enhance documentation clarity and accessibility.

Comment thread developers/wallets.md Outdated
Comment thread developers/wallets.md
Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d72113f and a1560fa.
Files selected for processing (8)
  • .vitepress/config.ts (7 hunks)
  • developers/celestia-node-key.md (1 hunks)
  • developers/optimism.md (1 hunks)
  • developers/rollkit.md (1 hunks)
  • developers/wallets.md (4 hunks)
  • nodes/celestia-app-metrics.md (1 hunks)
  • nodes/celestia-node-troubleshooting.md (1 hunks)
  • nodes/ibc-relayer.md (1 hunks)
Files skipped from review due to trivial changes (5)
  • developers/celestia-node-key.md
  • developers/rollkit.md
  • nodes/celestia-app-metrics.md
  • nodes/celestia-node-troubleshooting.md
  • nodes/ibc-relayer.md
Files skipped from review as they are similar to previous changes (3)
  • .vitepress/config.ts
  • developers/optimism.md
  • developers/wallets.md

Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a1560fa and 9d27b60.
Files selected for processing (1)
  • developers/wallets.md (3 hunks)
Additional comments: 6
developers/wallets.md (6)
  • 2-2: The description succinctly captures the essence of the document, focusing on adding Celestia network parameters to various wallets. This aligns well with the document's objectives.
  • 20-22: The introduction provides a clear overview of what the document will cover, setting the right expectations for the reader. It's concise and to the point.
  • 24-29: The section heading and introduction to adding Celestia network parameters to Keplr with React are clear and informative. It sets the stage for the detailed instructions and code example that follow.
  • 1-43: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [39-117]

This code example for integrating Keplr with React is comprehensive and includes error handling (e.g., checking if Keplr is installed and handling the failure of experimentalSuggestChain). However, there are a few points to consider:

  • Ensure that the alert function is an acceptable way to notify users in your application's context. While it's straightforward, it might not align with the UX design of more complex applications.
  • The use of experimentalSuggestChain is appropriate here, but it's marked as experimental. Keep an eye on Keplr's API for any changes or updates to this method.
  • The CSS module usage (styles) is assumed to be correctly set up. Ensure that the CSS module (Keplr.module.css) is properly configured and contains the relevant styles.

Overall, the example is well-constructed and should serve as a good starting point for developers.

  • 114-125: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [121-166]

The code snippets for passing Celestia network parameters to the AddNetworkKeplr function are clear and demonstrate how to use the component with different network configurations. However, ensure that the placeholders (e.g., {{constants.mainnetChainId}}) are correctly replaced with actual values during the build process or runtime. This dynamic content replacement is crucial for the code to function correctly in different environments.

  • 170-194: Instructions for adding a custom chain to Leap are straightforward and easy to follow. The step-by-step guide is clear, and the parameters provided are specific, which should help users successfully add a custom chain to their Leap wallet. Just ensure that the URLs and chain parameters are up-to-date and accurate.

Comment thread developers/wallets.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 9d27b60 and 94b37dd.
Files selected for processing (1)
  • developers/wallets.md (3 hunks)
Files skipped from review as they are similar to previous changes (1)
  • developers/wallets.md

@jcstein
Copy link
Copy Markdown
Member Author

jcstein commented Feb 5, 2024

Screenshot 2024-02-05 at 11 49 56 AM
  • double check flow and remove second specs link

Comment thread developers/wallets.md Outdated
Co-authored-by: Nguyen Nhu Viet <braveryandglory@gmail.com>
Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 94b37dd and ff859ec.
Files selected for processing (1)
  • developers/wallets.md (3 hunks)
Files skipped from review as they are similar to previous changes (1)
  • developers/wallets.md

@jcstein jcstein requested a review from Bidon15 February 5, 2024 20:56
Copy link
Copy Markdown
Member

@Bidon15 Bidon15 left a comment

Choose a reason for hiding this comment

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

LGTM. Awesome refactor 🤴

@jcstein jcstein merged commit 8c12369 into main Feb 6, 2024
@jcstein jcstein deleted the jcs/docs-rearchitecture-part-1 branch February 6, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants