Skip to content

Commit bd49efe

Browse files
authored
fix(readme): improve readme and contributing (#824)
2 parents df9ab4a + 5e8d264 commit bd49efe

File tree

6 files changed

+42
-33
lines changed

6 files changed

+42
-33
lines changed

CONTRIBUTING.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Contributing Guidelines
22

3-
Thank you for helping improve the **Flare Developer Hub**!
3+
Thank you for helping improve **Flare Developer Hub**!
44
Your contributions make our documentation, tooling, and examples better for everyone.
55

66
We welcome:
77

88
- **[GitHub Issues](https://github.com/flare-foundation/developer-hub/issues):** Report bugs, suggest features, or ask questions.
9-
- **Pull Requests (PRs):** Submit fixes, improvements, or new content (documentation, examples, site features).
9+
- **[Pull Requests](https://github.com/flare-foundation/developer-hub/pulls):** Submit fixes, improvements, or new content (documentation, examples, site features).
1010

1111
## 🛠 Development Workflow
1212

13-
1. **Fork and branch:** Create a branch for your work:
13+
1. **Fork and branch:** Fork the repo on GitHub and create a branch for your work:
1414

1515
```bash
1616
git checkout -b feature/your-feature-name
@@ -20,7 +20,7 @@ We welcome:
2020
- Documentation (`docs/`)
2121
- Source code (`src/`)
2222
- Examples (`examples/`)
23-
- automation scripts (`automations/`, `docgen/`)
23+
- automation and docgen scripts (`automations/`, `docgen/`)
2424

2525
3. **Follow Style Guides:**
2626
- **Code/Docs:** Run [Pre-PR checks](#pre-pr-checks). Match existing code style.
@@ -66,13 +66,13 @@ We welcome:
6666
- ✅ **Provide Context:** Describe the problem, solution, and link related issues.
6767
- ✅ **Pass CI:** Fix any GitHub Actions failures before requesting review.
6868
- ✅ **Update Docs:** If behavior or usage changes.
69-
- ✅ **Confirm Licensing:** All PRs are submitted under this repo’s license.
69+
- ✅ **Confirm Licensing:** All PRs are submitted under this repo’s [license](LICENSE).
7070

7171
## <a id="pre-pr-checks"></a>🔍 Pre-PR Checks
7272

7373
Run these before submitting a PR:
7474

75-
1. **Build & verify internal links:**
75+
1. **Build & check internal links:**
7676

7777
```bash
7878
npm run build
@@ -90,30 +90,30 @@ Run these before submitting a PR:
9090
lychee --config lychee.toml .
9191
```
9292

93-
4. **If you modified examples**, run their formatters/tests:
94-
(example for Rust, see `examples/developer-hub-*/README.md` for more instructions)
93+
4. **If you modified examples**, run their formatters and tests, see `examples/developer-hub-*/README.md` for more instructions.
94+
Example for Rust:
9595

9696
```bash
9797
cd examples/developer-hub-rust/
9898
cargo fmt -- --check # Format
9999
cargo clippy --bins -- -D warnings # Lint
100100
cargo build --bins --locked # Build
101-
chmod +x test.sh && ./test.sh # Tes
101+
chmod +x test.sh && ./test.sh # Test
102102
```
103103

104104
## <a id="diagrams-style-guide"></a>🖼 Diagrams Style Guide
105105

106106
Follow these styles for consistency:
107107

108-
| Element | Light Mode | Dark Mode | Notes |
109-
| :----------------------- | :--------- | :-------- | :------------------------------------------------- |
110-
| Arrow Width | `1px` | `1px` | |
111-
| Arrow Color | `#595959` | `#ffffff` | |
112-
| Border Width | `1px` | `1px` | |
113-
| Border Color (Highlight) | `#e62058` | `#e62058` | Use for emphasis |
114-
| Border Color (Normal) | `#595959` | `#ffffff` | Default border |
115-
| Onchain Border Style | `Solid` | `Solid` | |
116-
| Offchain Border Style | `Dashed` | `Dashed` | \_Use only if mixing onchain and offchain elements |
108+
| Element | Light Mode | Dark Mode | Notes |
109+
| :----------------------- | :--------- | :-------- | :----------------------------------------------- |
110+
| Arrow Width | `1px` | `1px` | |
111+
| Arrow Color | `#595959` | `#ffffff` | |
112+
| Border Width | `1px` | `1px` | |
113+
| Border Color (Highlight) | `#e62058` | `#e62058` | Use for emphasis |
114+
| Border Color (Normal) | `#595959` | `#ffffff` | Default border |
115+
| Onchain Border Style | `Solid` | `Solid` | |
116+
| Offchain Border Style | `Dashed` | `Dashed` | Use only if mixing onchain and offchain elements |
117117

118118
See the [homepage architecture diagram](https://dev.flare.network/#understand-the-architecture) for an example.
119119

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ This repository contains the source code and content for the [Flare Developer Hu
44

55
This site is built with [Docusaurus](https://docusaurus.io/), a modern static site generator.
66

7-
> **Note:** This README is for contributors to the Developer Hub source.
8-
> If you just want to read the documentation, visit [dev.flare.network](https://dev.flare.network).
7+
> **Note:**
8+
> This README is for contributors to Developer Hub.
9+
> If you just want to read the docs, visit [dev.flare.network](https://dev.flare.network).
910
1011
## 🚀 Getting Started
1112

@@ -86,7 +87,8 @@ Language-specific examples use their native formatters:
8687
- Rust →`cargo fmt` for Rust
8788
- Python → `ruff` for Python
8889

89-
> **Note:** Prettier support for MDXv3 is evolving ([tracking issue](https://github.com/prettier/prettier/issues/12209)).
90+
> **Note:**
91+
> Prettier support for MDXv3 is evolving ([tracking issue](https://github.com/prettier/prettier/issues/12209)).
9092
> To skip formatting for a section:
9193
>
9294
> ```plaintext
@@ -106,8 +108,7 @@ To generate Solidity documentation:
106108
2. **Run the Documentation Generator:**
107109

108110
```bash
109-
cd docgen
110-
chmod +x generate-solidity-docs.sh
111+
cd docgen && chmod +x generate-solidity-docs.sh
111112
./generate-solidity-docs.sh
112113
```
113114

@@ -123,7 +124,7 @@ To generate Solidity documentation:
123124

124125
1. **Update addresses and feeds:**
125126

126-
Fetches latest contract addresses from `ContractRegistry` and feed data for use in site tables and components.
127+
Fetches latest contract addresses from `ContractRegistry` and feed data for use in tables and components.
127128

128129
```bash
129130
npm run automations
@@ -132,6 +133,7 @@ To generate Solidity documentation:
132133
2. **Update language dependencies:**
133134

134135
Updates dependencies in all `examples/*` subdirectories.
136+
Use with caution, run all test suites after updating.
135137

136138
```bash
137139
npm run update-deps
@@ -146,4 +148,4 @@ We welcome contributions of all sizes - from typo fixes to major feature additio
146148
```bash
147149
git checkout -b feature/my-change
148150
```
149-
3. Commit, push, and open a PR.
151+
3. Commit and push your changes, and open a PR.

examples/developer-hub-go/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# developer-hub-go
22

3-
## Tooling
3+
## Prerequisites
44

55
- [Go](https://go.dev/doc/install)
66
- [golangci-lint](https://golangci-lint.run/docs/welcome/install/)

examples/developer-hub-javascript/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# developer-hub-javascript
22

3-
## Tooling (recommended)
3+
## Prerequisites
44

55
- [Node v20](https://nodejs.org/en)
66

@@ -21,3 +21,9 @@ npm run format
2121
```bash
2222
npm run lint
2323
```
24+
25+
## Test
26+
27+
```bash
28+
npm run test
29+
```

examples/developer-hub-python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# developer-hub-python
22

3-
## Tooling
3+
## Prerequisites
44

55
- [uv](https://docs.astral.sh/uv/)
66

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# developer-hub-rust
22

3-
## Tooling
3+
## Prerequisites
44

5-
- [Rust](https://www.rust-lang.org/tools/install)
5+
- [Cargo](https://doc.rust-lang.org/cargo/)
66

77
## Install dependencies
88

99
```bash
10-
cargo build
10+
cargo build --bins
1111
```
1212

1313
## Format
@@ -19,11 +19,12 @@ cargo fmt
1919
## Lint
2020

2121
```bash
22-
cargo clippy --fix
22+
cargo clippy --bins -- -D warnings --fix
2323
```
2424

2525
## Test
2626

2727
```bash
28-
cargo test
28+
chmod +x test.sh
29+
./test.sh
2930
```

0 commit comments

Comments
 (0)