Skip to content

Commit 6d66377

Browse files
authored
Update readme (#323)
1 parent 1d86ffa commit 6d66377

File tree

2 files changed

+150
-16
lines changed

2 files changed

+150
-16
lines changed

Basemark.png

1.05 KB
Loading

README.md

Lines changed: 150 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,166 @@
1-
### Development
1+
<p align="center">
2+
<img src="./Basemark.png" alt="Base logo" width="360" />
3+
</p>
24

3-
Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command
5+
<!-- Badge row 1 - status -->
46

5-
```
6-
npm i -g mintlify
7+
[![GitHub contributors](https://img.shields.io/github/contributors/base/docs)](https://github.com/base/docs/graphs/contributors)
8+
[![GitHub commit activity](https://img.shields.io/github/commit-activity/w/base/docs)](https://github.com/base/docs/graphs/contributors)
9+
[![GitHub Stars](https://img.shields.io/github/stars/base/docs.svg)](https://github.com/base/docs/stargazers)
10+
![GitHub repo size](https://img.shields.io/github/repo-size/base/docs)
11+
[![GitHub](https://img.shields.io/github/license/base/docs?color=blue)](https://github.com/base/docs/blob/main/LICENSE.md)
12+
13+
<!-- Badge row 2 - links and profiles -->
14+
15+
[![Website base.org](https://img.shields.io/website-up-down-green-red/https/base.org.svg)](https://base.org)
16+
[![Blog](https://img.shields.io/badge/blog-up-green)](https://base.mirror.xyz/)
17+
[![Docs](https://img.shields.io/badge/docs-up-green)](https://docs.base.org/)
18+
[![Discord](https://img.shields.io/discord/1067165013397213286?label=discord)](https://base.org/discord)
19+
[![Twitter Base](https://img.shields.io/twitter/follow/Base?style=social)](https://twitter.com/Base)
20+
21+
<!-- Badge row 3 - detailed status -->
22+
23+
[![GitHub pull requests by-label](https://img.shields.io/github/issues-pr-raw/base/docs)](https://github.com/base/docs/pulls)
24+
[![GitHub Issues](https://img.shields.io/github/issues-raw/base/docs.svg)](https://github.com/base/docs/issues)
25+
26+
Base Docs are community-managed. We welcome and encourage contributions from everyone to keep these docs accurate, helpful, and up to date.
27+
28+
> Note: This repository powers the public Base documentation site. Content lives under `docs/`. Do not edit `/_pages`.
29+
30+
## Local development
31+
32+
Prerequisite: Node.js v19+.
33+
34+
1. Clonde the repository.
35+
2. Install the Mint CLI to preview documentation changes locally:
36+
37+
```bash
38+
npm i -g mint
739
```
840

9-
Run the following command at the root of your documentation (where docs.json is)
41+
3. Preview locally (run from the `docs/` directory where `docs.json` lives):
1042

43+
```bash
44+
cd docs
45+
mint dev
1146
```
12-
mintlify dev
47+
48+
Alternatively, without a global install:
49+
50+
```bash
51+
npx mint dev
1352
```
1453

15-
### Publishing Changes
54+
### Troubleshooting
55+
56+
- Ensure Node.js v19+ and that you run `mint dev` from the directory containing `docs.json` (usually `docs/`).
57+
- Local preview differs from production: run `mint update` to update the CLI.
58+
59+
## How to contribute
60+
61+
1. **Fork and branch**: Fork `base/docs` and create a descriptive branch for your change.
62+
2. **Edit content in `docs/`**: Follow the structure and style guidelines below. Preview locally with the Mint CLI.
63+
3. **Open a pull request**: Provide a clear summary and links to related pages. The docs team and community will review.
64+
65+
> Tip: Prefer small, focused PRs. Link related guides and references directly in your content.
66+
67+
## Documentation structure
68+
69+
### Core principle: maintain existing structure
70+
71+
> Warning: Do not create new top-level sections. Place all new content within existing folders under `docs/`.
72+
73+
The Base documentation is organized into established sections (for example: `get-started/`, `learn/`, `base-account/`, `base-app/`, `base-chain/`, `cookbook/`, `mini-apps/`, `onchainkit/`). Fit new content into the most relevant existing section.
74+
75+
### Navigation policy
76+
77+
> Note: We generally do not change the global navigation (top-level tabs) or sidebar sections unless there is a clear, broadly beneficial need. Contributions should focus on improving existing pages and adding new pages within current sections.
78+
79+
### Section purpose and placement
80+
81+
- **Quickstart**: End-to-end setup to first success. Keep concise and current.
82+
- **Concepts**: Explanations of components, architecture, and design philosophy.
83+
- **Guides**: Step-by-step, action-oriented tutorials for specific tasks.
84+
- **Examples**: Complete, runnable examples demonstrating real-world usage.
85+
- **Technical Reference**: API/method/component specs with parameters and return types.
86+
- **Contribute**: Information for contributors and process updates.
87+
88+
#### Cookbook scope
89+
90+
- The `cookbook/` section hosts use case–focused guides and patterns, not product-specific documentation.
91+
- Prefer cross-cutting solutions that illustrate how to build on Base across tools and scenarios.
92+
93+
> Warning: Avoid subsection proliferation:
94+
> - Put all guides at the same level within the Guides section.
95+
> - Organize Reference by component/feature, not per use case.
96+
> - Use cross-links instead of adding new structural layers.
97+
98+
## Style and formatting
99+
100+
### Writing style
101+
102+
1. Be concise and consistent; use active voice and second person.
103+
2. Focus on the happy path; mention alternatives briefly where relevant.
104+
3. Use explicit, descriptive headings and filenames.
105+
4. Maintain consistent terminology; introduce abbreviations on first use.
106+
107+
### AI-friendly content
108+
109+
- Use clear, explicit language and link related pages directly.
110+
- Prefer bulleted lists for options/steps when not sequential.
111+
- Name and reference libraries and tools explicitly.
112+
- Use semantic, readable URLs and avoid ambiguous abbreviations.
113+
114+
> Checklist:
115+
> - Would a Large Language Model understand and follow this content?
116+
> - Can an engineer copy, paste, and run the examples as-is?
117+
118+
### Mintlify formatting
119+
120+
- Start main sections with H2 (`##`) and subsections with H3 (`###`).
121+
- Use fenced code blocks with language and optional filename.
122+
- Wrap images in `<Frame>` and include `alt` text.
123+
- Use callouts for emphasis: `<Note>`, `<Tip>`, `<Warning>`, `<Info>`, `<Check>`.
124+
- For procedures, prefer `<Steps>` / `<Step>`.
125+
- For alternatives, use `<Tabs>` / `<Tab>`.
126+
- For API docs, use `<ParamField>`, `<ResponseField>`, and request/response examples.
127+
128+
### Code examples
129+
130+
- Provide complete, runnable examples with realistic data.
131+
- Include proper error handling and edge cases.
132+
- Specify language and filename when helpful.
133+
- Show expected output or verification steps.
134+
135+
## Third-party guides policy
136+
137+
> Warning: We generally do not accept guides that primarily document a third-party product. Exceptions require a clear Base-focused use case and a tight integration with Base products. Simply deploying on Base or connecting to Base Account/Base App is not sufficient.
138+
139+
If your goal is to increase discoverability of your product, please request inclusion on the Base Ecosystem page instead. See the instructions for [updating the Base Ecosystem page](https://github.com/base/web?tab=readme-ov-file#updating-the-base-ecosystem-page).
16140

17-
Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
141+
## Review checklist (before submitting a PR)
18142

19-
#### Troubleshooting
143+
- [ ] Fits within existing structure (no new top-level sections)
144+
- [ ] Minimal, necessary subsections only
145+
- [ ] Consistent terminology; abbreviations introduced on first use
146+
- [ ] Code examples are complete, runnable, and validated
147+
- [ ] Cross-links to related guides/examples/references are included
148+
- [ ] Uses Mintlify components and heading hierarchy correctly
149+
- [ ] Accessible images with descriptive `alt` text and frames
150+
- [ ] AI-friendly: explicit, link-rich, and easy to follow
20151

21-
- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
22-
- Page loads as a 404 - Make sure you are running in a folder with `docs.json`
152+
## Submission process
23153

24-
### Storybook for hosting UI components
154+
1. Create a PR to `https://github.com/base/docs` with your changes.
155+
2. Include a clear description of the change and impacted pages.
156+
3. Request review from the docs team.
157+
4. Address feedback and iterate.
158+
5. Once approved, changes will be merged and published.
25159

26-
Checkout the [storybook README](storybook/README.md) for more information.
160+
## Publishing changes
27161

28-
### TODO
162+
Install the GitHub App in your organization to auto-deploy changes from this repo. Merges to the default branch deploy to production automatically.
29163

30-
- [ ] Add github action to deploy storybook to chromatic whenever there is a push to the `main` branch and only changes in `storybook` folder
164+
## Storybook for UI components
31165

32-
# Verification Test
166+
See `storybook/README.md` for details on local Storybook and component docs.

0 commit comments

Comments
 (0)