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

feat: new docs structure (1/n) #146

Merged
merged 22 commits into from
Oct 30, 2024
Merged

Conversation

seiyan-writer
Copy link
Collaborator

@seiyan-writer seiyan-writer commented Sep 30, 2024

What is the purpose of the change?

This change introduces the first iteration of the new docs structure.

Describe the changes to the documentation

Summary:

This update introduces a top bar navigation system to organize and segment the docs more effectively. The top bar helps improve navigation and access to key docs categories. This implementation builds on earlier sidebar ideation and categorization efforts, with the goal of simplifying navigation and enhancing user experience.

The proposed top bar categories (for today) are: Getting Started*, User Guides, Learning, Building, Operating Nodes, and Reference.

The top bar structure is the first step in a larger revamp of the Sei docs. The next phases will involve refining the content within each section, gradually restructuring and adding new material as needed. The sidebar will aim to maintain a maximum depth of two levels to ensure ease of navigation and prevent users from becoming overwhelmed by overly nested structures.

The index page serves as the homepage for the docs, acting as a calibration point with use cases and user stories that help introduce Sei. Cards can be used to guide users toward relevant content based on what is trying to be accomplished.

The learning paths serve as guided entry points throughout the docs, offering structured progression for different levels of expertise. Alongside these paths, environment-specific indexes for EVM and Cosmos are provided. These paths can reside in the sidebar consistently, with customized styling to ensure they complement, rather than overpower, the other sub-doc sections.

The indexes leverage a new DocsCard component, inspired by the existing AppCard. This component is flexible and can be iterated on or further customized for different use cases and visual styles.

Section-Specific Descriptions:

Getting Started:

Introductory material and onboarding resources for new developers.

Note

The Getting Started section helps developers accomplish tasks on Sei without needing deep knowledge of the platform upfront. It assumes they have some blockchain exposure or experience and are more interested in practical applications than in Sei's underlying architecture.

The emphasis is on guiding users through tutorials or guides to get them onboarded with Sei-specific concepts as they go. This section would also cross-references other parts of the docs.

User Guides:

User-facing material and resources.

Note

The User Guides section is designed to guide users how to perform fundamental tasks on Sei, such as setting up wallets, managing accounts, and interacting with the network. This section provides user-friendly guides that make it easier for users to navigate and engage with the Sei ecosystem.

Learning:

Explainers for understanding the key concepts and mechanics of the Sei network.

Note

The Learning section offers users an opportunity to dive deeper into how Sei functions (without labeling concepts as "advanced"). It’s ideal for those looking to explore the network’s mechanics and gain a better understanding after using Getting Started, or for users who prefer to begin by learning the concepts from the outset. As the docs evolves, this section will continue to expand and align with the new proposed sidebar.

Building:

Resources for developers to set up, build, and deploy applications on Sei, from environment setup to smart contract development and ecosystem tools.

Note

The Building section provides developers with a comprehensive set of resources for end-to-end Sei development. It covers a variety of smart contract environments like CosmWasm and EVM, along with support for NFT Contracts, Pointer Contracts, and other key functionalities like the Token Factory and Multi-Sig Accounts.

Developers will also find resources for integrating assets, exploring the IBC Protocol for cross-chain connectivity, and best practices for using Ledger devices. This section includes tools and resources specific to the Sei ecosystem, ensuring developers have everything they need for successful decentralized application development across multiple environments.

Operating Nodes:

Node setup, configuration, and the go-to place for validators.

Note

Operating Nodes is dedicated to largely to validators who manage and maintain nodes on the Sei network. This section includes detailed guides on node setup, configuration, and validator best practices. Validators should be able to find everything they need here to ensure their nodes are correctly configured and optimized for network participation.

Reference:

The official technical reference for CLI, APIs, and more.

Note

The Reference section provides the official technical references, including API references, CLI usage, and other essential tools for developers and node operators. This section is designed to be a lookup resource for specific commands, endpoints, and technical specifications.

@seiyan-writer seiyan-writer changed the base branch from main to feat/docs-revamp October 21, 2024 06:43
@seiyan-writer
Copy link
Collaborator Author

We'll use feature branch to capture revamp work and create dedicated deployment. Will follow with PRs aimed at updating different docs and sections.

@seiyan-writer
Copy link
Collaborator Author

This PR also captures a reworked version of the Getting Started guide and proposes incorporating video demos to complement or, in some cases, replace screenshots. Video demos tend to be cleaner, more dynamic, and easier to follow, especially for complex processes. If this approach works well, we could extend it to other parts of the docs.

We can also consider using GIFs for demonstrating command-line arguments (though not in every instance). GIFs can serve as useful supplements to the existing guides and tutorials.

We would need to be mindful adding these heavier media files.

@seiyan-writer seiyan-writer marked this pull request as ready for review October 21, 2024 07:00
@seiyan-writer seiyan-writer requested a review from a team as a code owner October 21, 2024 07:00
@cordt-sei
Copy link
Contributor

We would need to be mindful adding these heavier media files.

I would suggest only allowing webm or similar more efficient formats for this. gif is typically 10-30x the filesize

Base automatically changed from feat/docs-revamp to main October 25, 2024 17:49

## Requirements

- A compatible, non-custodial wallet, such as [MetaMask](https://metamask.io/), or [Compass](https://compasswallet.io/).
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to have a link to where they could view all their wallet options.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, doesn't necessarily need to be a non-custodial wallet, just needs to be a Sei supported wallet.


<br/>

<div style={{ display: 'flex', justifyContent: 'center' }}>
Copy link
Contributor

Choose a reason for hiding this comment

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

This is great, and I love the video, but would it make sense to just have a button here that actually allows them to connect to a chain that way they don't need to leave the docs page?

Copy link
Contributor

Choose a reason for hiding this comment

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

We could add the association API directly into the docs too imo..


## Linking Wallet Addresses

<Callout emoji="💡">
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as my previous comment, what if we allow them to associate directly from within the docs?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a super decent idea


This new explorer supports both EVM and Native Sei.

Simply search for your wallet address to view your holdings. To import tokens into MetaMask, use the contract addresses found in the explorer. Learn more [here](https://support.metamask.io/managing-my-tokens/custom-tokens/how-to-display-tokens-in-metamask/).
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we want to add an input box that allows them to paste an address, then we auto open that address in sei trace?

@@ -1,7 +1,7 @@
import { Blockquote, List, Paper, Text, Title } from '@mantine/core';
import { Callout } from 'nextra/components';

# Smart Contracts
# Sei Smart Contracts
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make more sense to say "VM Smart Contracts" or something? I feel that people know that these are Sei smart contracts..

Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably remove these cards in favor of straight text, but we can get designs for all these pages to improve the look and feel later on

@seiyan-writer seiyan-writer changed the base branch from main to feat/docs-revamp October 29, 2024 01:47
@seiyan-writer
Copy link
Collaborator Author

To address in follow-up updates:

  • Add a link where users can view all supported wallet options and clarify that any Sei-supported wallet can be used. (pages/start/user-quickstart.mdx)
  • Consider adding a "Connect to Chain" button within the docs so users can connect to the chain without leaving the page. (pages/start/user-quickstart.mdx)
  • Integrate the association API directly in the docs to enable users to complete association steps in place. (pages/start/user-quickstart.mdx)
  • Add an input box allowing users to paste an address and auto-open that address in Sei Trace. (pages/start/user-quickstart.mdx)
  • Consider replacing current cards with straight text, with plans for future design improvements. (pages/start/dev-smart-contracts.mdx)

@seiyan-writer seiyan-writer merged commit b6cd98e into feat/docs-revamp Oct 30, 2024
1 check passed
@seiyan-writer seiyan-writer deleted the feat/docs-revamp-layout branch October 30, 2024 04:53
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.

4 participants