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

Add docs for ChainIDE #2896

Merged
merged 1 commit into from
Dec 28, 2023
Merged

Add docs for ChainIDE #2896

merged 1 commit into from
Dec 28, 2023

Conversation

xiadd
Copy link
Contributor

@xiadd xiadd commented Dec 27, 2023

Summary by CodeRabbit

  • Documentation
    • Enhanced the setup guide for IRISnet blockchain development with ChainIDE.
    • Added a tutorial for issuing and managing FTs and NFTs on IRISnet Cosmos.
    • Provided a detailed user guide for the IRISnet EVM IDE functionalities.
    • Improved the formatting of the documentation for better readability.

Copy link

coderabbitai bot commented Dec 27, 2023

Walkthrough

The recent updates to the documentation focus on enhancing the developer experience with IRISnet and ChainIDE. Formatting tweaks in the config file improve readability, while new guides offer step-by-step instructions for setting up dApp environments, managing fungible and non-fungible tokens within the Cosmos ecosystem, and utilizing the EVM IDE functionalities for smart contract operations.

Changes

File Path Change Summary
.../config.js Formatting changes: quotes, indentation, and reorganization for consistency.
.../configuration.md Detailed instructions for setting up dApp development environments on IRISnet.
.../cosmos-usage.md Guide for issuing and managing FTs and NFTs on IRISnet Cosmos.
.../usage.md Comprehensive guide for using IRISnet EVM IDE for smart contract operations.

🐇✨
In the world of code, where logic's the king,
A rabbit hopped through, making IDEs sing.
With tweaks and guides, so clear and bright,
We craft and create, from day into night.
🌟🚀

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 with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. 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.
    • @coderabbitai read the files in the src/scheduler package and generate 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.

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.

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a2ac8c2 and af4aa2e.
Files selected for processing (4)
  • docs/.vuepress/config.js (1 hunks)
  • docs/chainide-for-irisnet/configuration.md (1 hunks)
  • docs/chainide-for-irisnet/cosmos-usage.md (1 hunks)
  • docs/chainide-for-irisnet/usage.md (1 hunks)
Files skipped from review due to trivial changes (1)
  • docs/.vuepress/config.js
Additional comments: 9
docs/chainide-for-irisnet/cosmos-usage.md (3)
  • 1-3: The front matter indicates the order of the document. Ensure that this order is consistent with the navigation structure of the documentation.

  • 11-17: Verify that the image URLs are accessible and the images are correctly displayed with appropriate alt text for accessibility.

  • 11-23: The instructions provided are clear and concise. Ensure that the steps are accurate and up-to-date with the current version of the IRISnet Cosmos IDE.

docs/chainide-for-irisnet/configuration.md (3)
  • 1-3: The front matter indicates the order of the document. Ensure that this order is consistent with the navigation structure of the documentation.

  • 11-25: Verify that the image URLs are accessible and the images are correctly displayed with appropriate alt text for accessibility.

  • 11-51: The instructions provided are clear and concise. Ensure that the steps are accurate and up-to-date with the current version of the ChainIDE environment configuration for IRISnet.

docs/chainide-for-irisnet/usage.md (3)
  • 1-3: The front matter indicates the order of the document. Ensure that this order is consistent with the navigation structure of the documentation.

  • 11-65: Verify that the image URLs are accessible and the images are correctly displayed with appropriate alt text for accessibility.

Verification successful

The executed script was designed to check the accessibility of the image URLs by attempting to fetch them without downloading the content. Since there was no output from the script, it implies that all the curl requests were successful, and none of the URLs returned an error status code. This suggests that all the image URLs are accessible.

However, the script does not verify the presence of appropriate alt text for accessibility, as this would require parsing the markdown content of the usage.md file to ensure that each image link is accompanied by descriptive alt text.

Given the information at hand:

  • The image URLs are verified to be accessible.
  • The presence of appropriate alt text for accessibility has not been verified.

To complete the verification, we would need to check the markdown content for the presence of alt text. Since the alt text is visible in the provided snippet (each ![img] is followed by a URL), we can infer that the alt text is simply "img", which is not descriptive. For proper accessibility, the alt text should describe the content or function of the image.

Based on the above points:

  • : The image URLs are accessible.
  • : The alt text for the images is not descriptive and should be improved for accessibility.
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify that the image URLs return a 200 status code.
urls=(
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FQgBGZS91QA5GP2AXMTIl%2Fimage.png?alt=media&token=2f54c253-7113-457e-918c-6d8922c5be95"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FE2cSwSZdbKLZK5YN7XGK%2Fimage.png?alt=media&token=47ea9493-d238-474e-ab62-17a9d1f83dd3"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2Fc3NCif0cmQb6idg1jY4z%2Fimage.png?alt=media&token=a3bfae68-88a5-480d-b296-de50afd1b019"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FIOilLElJDiaICoy6AUpF%2Fimage.png?alt=media&token=26ef30aa-6746-417e-a634-4970b64bb53d"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FczE48oDmrmEi2hNWpGds%2Fimage.png?alt=media&token=3f51d9b4-063e-48dd-a60e-b13b54bc0781"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FLRhasXHh6XnfX6AsxOko%2Fimage.png?alt=media&token=81c389b6-c8b0-43c2-a26e-7f5ee01d60c9"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2F57zu9JFBQunvzHoVKsvC%2Fimage.png?alt=media&token=5d255844-fec0-4287-a493-44d90c8d88f3"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2F6rkcZA6xBoCtRpYVM2cp%2Fimage.png?alt=media&token=a38b25f5-c15d-4621-97d6-0fdce7c138e0"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FLrJQS2V3i4xlCzSpqlXJ%2Fimage.png?alt=media&token=d1465e33-034d-414b-a7e9-41b0c069508e"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FqUmdHgsKhKzqCsCqotgp%2Fimage.png?alt=media&token=38ca1cc9-9c42-497b-b1e4-5e1173eace35"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FbyVtEZJW5HOzHxtw6mx2%2Fimage.png?alt=media&token=3b456fc1-40c8-4c91-889e-09ba4dd8e950"
  "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2F6WvZX7unWkGkXKV7OfEE%2Fimage.png?alt=media&token=1845bc06-3128-44e4-9ec3-9c3e7e18c44d"
)

for url in "${urls[@]}"; do
  if ! curl -o /dev/null -sIf "$url"; then
    echo "Image at $url is not accessible."
  fi
done

Length of output: 5612

* 11-69: The instructions provided are clear and concise. Ensure that the steps are accurate and up-to-date with the current version of the IRISnet EVM IDE.

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a2ac8c2 and 436f99d.
Files selected for processing (4)
  • docs/.vuepress/config.js (1 hunks)
  • docs/chainide-for-irisnet/configuration.md (1 hunks)
  • docs/chainide-for-irisnet/cosmos-usage.md (1 hunks)
  • docs/chainide-for-irisnet/usage.md (1 hunks)
Files skipped from review due to trivial changes (3)
  • docs/.vuepress/config.js
  • docs/chainide-for-irisnet/configuration.md
  • docs/chainide-for-irisnet/usage.md
Additional comments: 4
docs/chainide-for-irisnet/cosmos-usage.md (4)
  • 1-3: The front matter syntax with the --- delimiters and the order field is correct and commonly used in static site generators like VuePress to specify page order.

  • 9-11: Ensure that the instructions for connecting a wallet are up-to-date and that the "Kelpr Wallet" is the intended wallet for users to connect with. If there are other supported wallets, consider mentioning them for user convenience.

  • 13-19: Verify that the images are correctly linked, accessible, and display the intended content. Broken image links or outdated images can significantly reduce the quality of documentation.

  • 21-23: Confirm that the names "IRIS FT Toolkit" and "IRIS NFT Toolkit" are accurate and match the labels in the ChainIDE interface. Any discrepancy can lead to confusion for the users.

@aofengli aofengli requested a review from taramakage December 28, 2023 01:51
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.

Review Status

Actionable comments generated: 8

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a2ac8c2 and 6507c67.
Files selected for processing (4)
  • docs/.vuepress/config.js (1 hunks)
  • docs/chainide-for-irisnet/configuration.md (1 hunks)
  • docs/chainide-for-irisnet/cosmos-usage.md (1 hunks)
  • docs/chainide-for-irisnet/usage.md (1 hunks)
Files skipped from review as they are similar to previous changes (3)
  • docs/.vuepress/config.js
  • docs/chainide-for-irisnet/configuration.md
  • docs/chainide-for-irisnet/cosmos-usage.md
Additional comments: 5
docs/chainide-for-irisnet/usage.md (5)
  • 1-3: The front matter of the Markdown file has been updated with an order field. This is typically used to specify the order of pages in documentation generated by static site generators like VuePress.

  • 5-7: The section title and introductory note are clear and provide a good overview of what the section will cover.

  • 11-11: Ensure that the README.md file mentioned is included in the project template and that the automatic preview functionality is working as described.

Verification successful

Given the output from the shell script, we can confirm that a README.md file exists within the project template, as it has been located and its content displayed. However, the automatic preview functionality is not something that can be verified through the content of the README.md file itself. This functionality would be part of the ChainIDE software or development environment, and its verification would require access to the ChainIDE configuration or direct testing within the environment.

Therefore, while we can verify the existence of the README.md file, we cannot confirm the automatic preview functionality based on the provided script output. For this part of the verification, you may need to manually check within the ChainIDE environment or review its documentation or configuration files that specify this feature.

  • : The README.md file is included in the project template.
  • : Manual verification is needed to ensure that the automatic preview functionality is working as described.
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify that the README.md file exists in the project template and check for preview functionality.
fd README.md --exec cat {} \;

Length of output: 3849

* 13-13: The image URL should be verified to ensure that it is accessible and displays the correct content. If the image is hosted on an external server, consider the implications of potential downtime or changes to the URL.
Verification successful

The verification script has successfully confirmed that the image URL is accessible by returning an HTTP 200 status code, which indicates that the request has succeeded. Therefore, the image URL in the documentation is verified to be accessible.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify that the image is accessible.
curl -o /dev/null -s -w "%{http_code}\n" "https://3869740696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FQgBGZS91QA5GP2AXMTIl%2Fimage.png?alt=media&token=2f54c253-7113-457e-918c-6d8922c5be95"

Length of output: 254

* 69-69: The reference to port forwarding is good, but it should be verified that the link is correct and that the content at the link is up-to-date and relevant.
Verification successful

The provided link "https://chainide.gitbook.io/chainide-english-1/port-forwarding" is correct and accessible, as indicated by the HTTP status code 200.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify that the port forwarding documentation link is correct and accessible.
curl -o /dev/null -s -w "%{http_code}\n" "https://chainide.gitbook.io/chainide-english-1/port-forwarding"

Length of output: 109

docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
docs/chainide-for-irisnet/usage.md Show resolved Hide resolved
@taramakage taramakage merged commit a5eb1d6 into irisnet:master Dec 28, 2023
3 checks passed
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.

3 participants