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

dropping OPM down #1085

Merged
merged 7 commits into from
Nov 7, 2024
Merged

dropping OPM down #1085

merged 7 commits into from
Nov 7, 2024

Conversation

sbvegan
Copy link
Collaborator

@sbvegan sbvegan commented Nov 7, 2024

Description

  • drops OPM down below OP Stack
  • creates an assets folder under interop
  • updates the redirects
  • removes experimental doc from builder section

@sbvegan sbvegan requested a review from a team as a code owner November 7, 2024 18:45
Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 8f5002d
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/672d1c6f0f765f0008da0a5c
😎 Deploy Preview https://deploy-preview-1085--docs-optimism.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

coderabbitai bot commented Nov 7, 2024

Walkthrough

The changes in this pull request involve modifications to the JSON configuration files for web pages, specifically in pages/_meta.json, pages/stack/_meta.json, and several other related files. The primary alterations include renaming keys and updating titles associated with the "OP MAINNET" and "OP STACK" sections, effectively interchanging them. Additionally, the "Experimental" section in pages/stack/_meta.json is updated to use uppercase letters for its key and title. The overall structure of the JSON files remains consistent, with some files being removed and new ones added to reflect these changes.

Changes

File Change Summary
pages/_meta.json - Renamed keys: "+++ OP MAINNET" to "+++ OP STACK"; "--- OP MAINNET" to "--- OP STACK"; "chain" to "stack"; "+++ OP STACK" to "+++ OP MAINNET"; "--- OP STACK" to "--- OP MAINNET"; "stack" to "chain".
- Updated titles accordingly.
pages/stack/_meta.json - Changed key: "--- Experimental" to "--- EXPERIMENTAL".
- Updated title from "Experimental" to "EXPERIMENTAL".
pages/builders/app-developers/_meta.json - Removed key: "contracts": "Smart contracts" from the JSON object.
pages/builders/app-developers/contracts.mdx - Removed file containing information about the Superchain ERC-20 contract.
pages/builders/app-developers/contracts/_meta.json - Removed mapping: "superchain-erc20": "SuperchainERC20" from the JSON object.
pages/builders/app-developers/contracts/superchain-erc20.mdx - Removed component: <SuperchainERC20 /> from the file.
pages/stack/interop/_meta.json - Removed keys: "superchain-erc20": "SuperchainERC20"; "superchain-weth": "SuperchainWETH (Interoperable ETH)"; "transfer-superchainERC20": "How to transfer a SuperchainERC20".
- Added key: "assets": "Assets".
pages/stack/interop/assets/_meta.json - Added new JSON file containing metadata for Superchain assets with mappings for "superchain-erc20", "superchain-weth", and "transfer-superchainERC20".
public/_redirects - Updated multiple URL redirections to reflect a reorganization of documentation structure, including adding new paths for resources related to Superchain assets.

Possibly related PRs

  • superchain-weth #1043: The changes in the main PR regarding the renaming and restructuring of JSON keys related to "OP MAINNET" and "OP STACK" are relevant to this PR, which adds a new entry for "superchain-weth" in the same JSON file, indicating a focus on interoperability features.
  • How to transfer a SuperchainERC20 #1048: This PR introduces a new documentation file for transferring SuperchainERC20 tokens, which is directly related to the changes in the main PR that involve the "OP MAINNET" and "OP STACK" sections, as both pertain to interoperability and token standards.
  • Corrected rude grammar errors in docs #1055: The grammar corrections in this PR may indirectly relate to the main PR's focus on improving documentation clarity, as both aim to enhance the overall quality of the documentation.
  • Documentation Improvements: Grammar, Structure, and Readability Fixes #1057: Similar to Corrected rude grammar errors in docs #1055, this PR focuses on improving grammar and readability, which aligns with the main PR's objective of restructuring and clarifying documentation.
  • Updated Breadcrumb script #1060: The updates to the breadcrumb script in this PR may relate to the main PR's changes in documentation structure, as breadcrumbs help navigate the updated sections.
  • remove wallet & cex section #1081: The removal of the "Wallets & CEX" section and the associated redirects are relevant to the main PR's focus on restructuring documentation, as both aim to streamline and clarify the content available to developers.

Suggested labels

documentation

Suggested reviewers

  • bradleycamacho
  • cpengilly

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

🧹 Outside diff range and nitpick comments (1)
pages/_meta.json (1)

81-90: Consider using a more descriptive key for the OP MAINNET section

The key "chain" might be ambiguous or confusing. Consider using a more descriptive key that better reflects the section's content, such as "mainnet" or "op-mainnet", to maintain clarity and consistency with the section title.

-  "chain": {
+  "mainnet": {
     "title": "OP Mainnet",
     "display": "children"
   },
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 58394cf and de5b2b6.

📒 Files selected for processing (2)
  • pages/_meta.json (1 hunks)
  • pages/stack/_meta.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • pages/stack/_meta.json
🔇 Additional comments (2)
pages/_meta.json (2)

68-77: LGTM: OP STACK section is well-structured

The configuration follows the established pattern with proper hierarchy and consistent casing.


68-90: Verify impact on documentation navigation

Since this reorganization might affect documentation URLs and navigation structure, please ensure:

  1. All internal documentation links are updated to reflect the new structure
  2. No redirects are needed for existing bookmarks
  3. Navigation hierarchy makes sense from a user perspective
✅ Verification successful

Based on the search results, I can now generate the final response since we have comprehensive information about the internal documentation links.

Documentation structure changes appear safe

The search results show that all internal links in the documentation are properly structured and follow a consistent pattern. The changes in _meta.json represent a reorganization that:

  1. Maintains existing URL paths (/chain/* and /stack/* links are preserved)
  2. Only affects the visual organization/grouping of navigation items
  3. Does not break any existing internal documentation links

The extensive link analysis confirms this is a safe documentation structure change that won't impact navigation or existing bookmarks.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for potential broken internal links in markdown files
# Look for links containing the old structure
rg -g '*.md' -g '*.mdx' -i ']\((?:.*/)?(?:chain|stack)/'

Length of output: 23332

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)
pages/stack/interop/_meta.json (1)

7-7: Consider adding descriptions for better documentation.

To improve documentation maintainability, consider adding description fields to provide context about the content structure.

Example enhancement:

-    "assets": "Assets"
+    "assets": {
+        "title": "Assets",
+        "description": "Documentation for Superchain assets including ERC20, WETH, and transfer guides"
+    }
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between de5b2b6 and f56d7f5.

📒 Files selected for processing (8)
  • next-env.d.ts (1 hunks)
  • pages/builders/app-developers/_meta.json (0 hunks)
  • pages/builders/app-developers/contracts.mdx (0 hunks)
  • pages/builders/app-developers/contracts/_meta.json (0 hunks)
  • pages/builders/app-developers/contracts/superchain-erc20.mdx (0 hunks)
  • pages/stack/interop/_meta.json (1 hunks)
  • pages/stack/interop/assets/_meta.json (1 hunks)
  • public/_redirects (1 hunks)
💤 Files with no reviewable changes (4)
  • pages/builders/app-developers/_meta.json
  • pages/builders/app-developers/contracts.mdx
  • pages/builders/app-developers/contracts/_meta.json
  • pages/builders/app-developers/contracts/superchain-erc20.mdx
✅ Files skipped from review due to trivial changes (2)
  • next-env.d.ts
  • pages/stack/interop/assets/_meta.json
🔇 Additional comments (2)
pages/stack/interop/_meta.json (1)

7-7: LGTM! Verify content relocation.

The consolidation of asset-related entries under a new "assets" section improves the documentation structure.

Let's verify that the removed content has been properly relocated:

✅ Verification successful

Let me check the content of public/_redirects and the other files to verify if they handle the path changes correctly.


Content relocation verified and properly handled

The restructuring is well-managed:

  • All removed content exists in the new /assets/ location
  • Proper redirects are in place for the old paths:
    • /stack/interop/superchain-erc20/stack/interop/assets/superchain-erc20
    • /stack/interop/superchain-weth/stack/interop/assets/superchain-weth
    • /stack/interop/transfer-superchainERC20/stack/interop/assets/transfer-superchainERC20
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removed content exists in the new location
# and that there are no broken references to the old paths

# Check if the content exists in the new location
rg -l "SuperchainERC20|SuperchainWETH|transfer.*SuperchainERC20" pages/stack/interop/assets/

# Check for any broken references to old paths
rg -l "stack/interop/(superchain-erc20|superchain-weth|transfer-superchainERC20)"

Length of output: 443


Script:

#!/bin/bash
# Check the redirects file and references in other files
cat public/_redirects

# Check references in the interop pages
rg -A 2 -B 2 "stack/interop/(superchain-erc20|superchain-weth|transfer-superchainERC20)" pages/stack/interop.mdx pages/stack/interop/explainer.mdx

Length of output: 11181

public/_redirects (1)

115-118: Verify target paths exist for new asset documentation redirects.

The redirects look well-structured and maintain consistency with the existing patterns. However, we should ensure the target paths exist to prevent 404 errors.

Let's verify the target paths and check for any circular redirects:

✅ Verification successful

Target paths verified, no circular redirects found

The verification confirms:

  • Target documentation files exist at the correct locations:
    • pages/stack/interop/assets/superchain-erc20.mdx
    • pages/stack/interop/assets/superchain-weth.mdx
  • No circular redirects were detected in the target files
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify target paths exist and check for circular redirects

# Test 1: Check if the target documentation files exist
echo "Checking for target documentation files..."
fd -e mdx -e md "superchain-(erc20|weth)" "pages/stack/interop/assets/"

# Test 2: Look for any potential circular redirects
echo "Checking for circular redirects..."
grep -r "assets/superchain" pages/stack/interop/assets/

Length of output: 396

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

🧹 Outside diff range and nitpick comments (3)
pages/stack/interop.mdx (3)

Line range hint 1-6: Improve the frontmatter description for clarity and proper capitalization

The description should be a clear, concise sentence rather than a list of terms. Additionally, technical terms should be properly capitalized.

 ---
 title: Interop
-description: Documentation covering Cross Chain Message, Explainer, Message Passing, Op Supervisor, Superchain Erc20, Superchain Weth, Supersim, Transfer Superchainerc20 in the Interop section of the OP Stack ecosystem.
+description: Documentation covering cross-chain messaging, message passing, OP Supervisor, SuperchainERC20, SuperchainWETH, and SuperSim in the Interop section of the OP Stack ecosystem.
 lang: en-US
 ---

Line range hint 8-12: Improve the main content description

The content description should be more informative and use proper capitalization for technical terms.

 # Interop
 
-Documentation covering Cross Chain Message, Explainer, Message Passing, Op Supervisor, Superchain Erc20, Superchain Weth, Supersim, Transfer Superchainerc20 in the Interop section of the OP Stack ecosystem.
+The Interop section provides documentation about cross-chain communication and asset management in the OP Stack ecosystem. Learn about message passing between chains, the OP Supervisor, and various tools for managing cross-chain assets.

Line range hint 14-24: Improve card title capitalization and approve consolidation

The consolidation of asset-related documentation under a single "Cross domain assets" card improves organization. However, some card titles need proper capitalization.

 <Cards>
-  <Card title="Anatomy of a cross-chain message" href="/stack/interop/cross-chain-message" />
+  <Card title="Anatomy of a Cross-Chain Message" href="/stack/interop/cross-chain-message" />
 
-  <Card title="Interoperability explainer" href="/stack/interop/explainer" />
+  <Card title="Interoperability Explainer" href="/stack/interop/explainer" />
 
-  <Card title="Interop message passing overview" href="/stack/interop/message-passing" />
+  <Card title="Interop Message Passing Overview" href="/stack/interop/message-passing" />
 
   <Card title="OP Supervisor" href="/stack/interop/op-supervisor" />
 
-  <Card title="Supersim multichain development environment" href="/stack/interop/supersim" />
+  <Card title="SuperSim Multichain Development Environment" href="/stack/interop/supersim" />
 
-  <Card title="Cross domain assets" href="/stack/interop/assets" />
+  <Card title="Cross-Domain Assets" href="/stack/interop/assets" />
 </Cards>
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between f56d7f5 and 8f5002d.

📒 Files selected for processing (3)
  • pages/stack/interop.mdx (1 hunks)
  • pages/stack/interop/assets.mdx (1 hunks)
  • words.txt (3 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
pages/stack/interop.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
  • For H1, H2, and H3 headers:
    1. Use sentence case, capitalizing only the first word.
    2. Preserve the capitalization of proper nouns, technical terms, and acronyms as defined in the 'nouns.txt' file located in the root directory of the project.
    3. Do not automatically lowercase words that appear in the 'nouns.txt' file, regardless of their position in the header.
  • Flag any headers that seem to inconsistently apply these rules for manual review.
  • When reviewing capitalization, always refer to the 'nouns.txt' file for the correct capitalization of proper nouns and technical terms specific to the project.
    "
pages/stack/interop/assets.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
  • For H1, H2, and H3 headers:
    1. Use sentence case, capitalizing only the first word.
    2. Preserve the capitalization of proper nouns, technical terms, and acronyms as defined in the 'nouns.txt' file located in the root directory of the project.
    3. Do not automatically lowercase words that appear in the 'nouns.txt' file, regardless of their position in the header.
  • Flag any headers that seem to inconsistently apply these rules for manual review.
  • When reviewing capitalization, always refer to the 'nouns.txt' file for the correct capitalization of proper nouns and technical terms specific to the project.
    "
🪛 LanguageTool
words.txt

[duplication] ~152-~152: Möglicher Tippfehler: ein Wort wird wiederholt
Context: ...OREPRICE ignoreprice implicity Immunefi Inator inator INFLUXDBV influxdbv initcode IPCDISABLE...

(GERMAN_WORD_REPEAT_RULE)


[style] ~292-~292: Möchten Sie die modernere Schreibweise „proxid“ verwenden?
Context: ...ze productionized Protip Proxied Proxyd proxyd pseudorandomly Pyth Pyth's QRNG Quickno...

(I_ANSTATT_Y)


[duplication] ~397-~397: Möglicher Tippfehler: ein Wort wird wiederholt
Context: ...le VHOSTS vhosts Viem viem Viem's voxel VMDEBUG vmdebug VMODULE vmodule Warpcast xlarge XORI xt...

(GERMAN_WORD_REPEAT_RULE)

🔇 Additional comments (1)
pages/stack/interop/assets.mdx (1)

7-7: LGTM!

The import statement is clean and properly structured.

pages/stack/interop/assets.mdx Show resolved Hide resolved
pages/stack/interop/assets.mdx Show resolved Hide resolved
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.

2 participants