Skip to content

Commit ea36707

Browse files
authored
Couple minor fixes + AGENTS.md (#929)
* add to meta.json * fix stuff * add to meta.json * fix readme * make agents.md
1 parent 344cd91 commit ea36707

File tree

5 files changed

+47
-21
lines changed

5 files changed

+47
-21
lines changed

AGENTS.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Agent Playbook
2+
3+
## Repository Snapshot
4+
5+
- Documentation site built with Next.js 13 and Nextra (`pages/` holds `.mdx` content, `_meta.json` defines navigation order).
6+
- Key scripts: `npm run dev`, `npm run build`, `npm run start`, `npm run lint`.
7+
- Node.js 22 is available; Python execution may be blocked in this environment.
8+
9+
## Workflow Guidelines
10+
11+
- Default to `apply_patch` for hand edits; avoid bulk formatters unless requested.
12+
- Keep additions ASCII unless the surrounding file already uses Unicode.
13+
- Preserve any pre-existing local changes; never revert files you did not modify for the current task.
14+
- When touching documentation directories, update the sibling `_meta.json` so every `.mdx`/`.md` page appears in the navigation.
15+
- Comment only when clarification is essential—most prose and code should remain self-explanatory.
16+
17+
## Documentation Style
18+
19+
- Organize content according to the [Diátaxis](https://diataxis.fr/) framework: Tutorials (learning-oriented), How-to guides (goal-oriented), Explanations (understanding-oriented), and Reference (information-oriented).
20+
- Tutorials: guide the reader through a concrete end-to-end task; assume no prior knowledge, provide step-by-step instructions, and postpone theory until after success.
21+
- How-to guides: focus on achieving a specific outcome; start with prerequisites, list concise actionable steps, and limit background details to what is essential for completing the task.
22+
- Explanations: clarify concepts, trade-offs, and rationale; connect ideas, reference related materials, and avoid procedural instructions.
23+
- Reference: present facts, APIs, configuration tables, and schemas; structure information for quick lookup with consistent formatting and terminology.
24+
- Match the existing section type when editing; move or split content if it drifts outside the intended Diátaxis category.
25+
- Lead with user needs, keep paragraphs short, and surface actionable steps early for tutorials and how-to guides.
26+
- Use consistent terminology across related pages; prefer active voice and second person.
27+
- Include code snippets or command blocks only when they advance the user goal for that section type.
28+
29+
## Command & Sandbox Notes
30+
31+
- Run shell commands through `bash -lc` and always set the `workdir` argument (usually the repo root).
32+
- Network access is restricted; prefer local data. Use `rg` for searching.
33+
- Destructive git commands (`reset --hard`, `checkout --`) are off limits unless the user explicitly requests them.
34+
35+
## Validation
36+
37+
- Run `npm run lint` after significant content or component changes when feasible.
38+
- For structural documentation edits, double-check rendered navigation by restarting the docs dev server if already running.
39+
40+
## Deliverables
41+
42+
- Summaries should state what changed and reference file paths with line numbers when practical.
43+
- Suggest logical follow-up actions (tests, builds, deploy checks) when they help the user.

README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ This repository contains interactive documentation for the [Pyth Network](https:
44

55
## Documentation Format
66

7-
### Interactive components
8-
9-
The interactive components on each page use a shared-key value store to communicate with each other.
10-
This key-value store is
11-
127
## Local Development
138

149
First, run `npm i` to install the dependencies.
@@ -27,21 +22,6 @@ docker run -d -p 3000:3000 documentation
2722

2823
Then navigate to localhost:3000 in the browser.
2924

30-
## Tests
31-
32-
Simply run `npm run test`.
33-
34-
The tests include a compiler check for all code snippets written in .mdx files. These tests will automatically extract
35-
the relevant snippets into separate files under the `.code_tests` folder (ignored by git) and then try to build each one.
36-
The files are named per the file path to the code snippet.
37-
These files remain after the tests complete, which allows you to examine them to help debug the error in case a test fails.
38-
39-
You can also run the code tests for a specific mdx file using:
40-
41-
```
42-
npm run test -- -t get-price.mdx
43-
```
44-
4525
## License
4626

4727
This project is derived from the [Nextra Docs Template](https://github.com/shuding/nextra-docs-template).
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"mathematical-representation": "Mathematical Representation",
33
"reward-examples": "Reward Examples",
4-
"slashing-rulebook": "Slashing Rulebook"
4+
"slashing-rulebook": "Slashing Rulebook",
5+
"publisher-quality-ranking": "Publisher Quality Ranking"
56
}

pages/price-feeds/core/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"push-feeds": "Push Feeds",
3737
"market-hours": "Market Hours",
3838
"best-practices": "Best Practices",
39+
"rate-limits": "Rate Limits",
3940
"error-codes": "Error Codes",
4041
"api-instances-and-providers": "API Instances and Providers",
4142
"contract-addresses": "Contract Addresses",

pages/price-feeds/pro/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"type": "separator"
1818
},
1919
"price-feed-ids": "Price Feed IDs",
20+
"payload-reference": "Payload Reference",
2021

2122
"websocket-api-reference": {
2223
"title": "Websocket API Reference ↗",

0 commit comments

Comments
 (0)