You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Provide both quick start and detailed explanations
827
827
- Include troubleshooting sections
828
828
829
+
### Docs Site Development Workflow
830
+
831
+
The docs site is built with [Starlight](https://starlight.astro.build/) (Astro). Source files are in `docs/starlight-docs/`.
832
+
833
+
**Required workflow for all docs changes:**
834
+
835
+
1. **Build** — validates internal links via `starlight-links-validator` plugin. The build will fail if any internal links are broken. Never skip this step.
836
+
```bash
837
+
cd docs/starlight-docs && npm install && npm run build
838
+
```
839
+
840
+
2. **Preview** — start a local preview server and visually verify changes.
841
+
```bash
842
+
bash docs/starlight-docs/test/preview.sh # start server
843
+
# Open http://localhost:4321/docs in browser
844
+
bash docs/starlight-docs/test/preview.sh --stop # stop server
845
+
```
846
+
847
+
3. **Rebuild after changes** — if you make further edits, rebuild before previewing:
848
+
```bash
849
+
bash docs/starlight-docs/test/preview.sh --stop
850
+
bash docs/starlight-docs/test/preview.sh --build
851
+
bash docs/starlight-docs/test/preview.sh
852
+
```
853
+
854
+
**Critical rules:**
855
+
- **Never start the astro server directly** (e.g. `npx astro preview`, `nohup`, `npm run preview`). Always use `test/preview.sh` — it handles background process management correctly. Direct invocations will block the terminal.
856
+
- **Always build before previewing.** The link validator only runs during build. Previewing without building first will show stale output.
857
+
- **Never use `grep -P` (Perl regex)** — macOS does not support it. Use `sed` or `grep -E` instead.
858
+
- **Verify the server is responding** after starting preview by checking `curl -s http://localhost:4321/docs` returns 200 before telling the user it's ready.
859
+
860
+
**Sidebar configuration:**
861
+
- Sidebar labels and ordering are configured in `docs/starlight-docs/astro.config.mjs` — this is the single source of truth.
862
+
- **Do not use frontmatter `sidebar.label` or `sidebar.order` to control group/section headings.** Frontmatter only controls individual page labels, not the group name shown in the sidebar for a directory. Use explicit `items` with `label` in `astro.config.mjs` instead (see "Send Data" and "Get Started" sections as examples).
863
+
- Sections using `autogenerate` derive group labels from directory names (lowercase). Replace `autogenerate` with explicit `items` when proper casing or custom ordering is needed.
864
+
829
865
### Icons
830
866
831
867
Use OpenSearch UI (OUI) icons for documentation components. Browse the full set at https://oui.opensearch.org/1.23/#/display/icons. SVG sources are at https://github.com/opensearch-project/oui/tree/main/src/components/icon/assets. Prefer 32x32 icons over 16x16 for consistent sizing.
Copy file name to clipboardExpand all lines: docs/starlight-docs/src/content/docs/index.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ OpenSearch Observability Stack is an **open-source, OpenTelemetry-native observa
23
23
## Quickstarts
24
24
25
25
<LinkCardtitle="Install & Explore"href="/docs/get-started/installation/"description="Install the stack and explore traces already flowing from the built-in example services." />
26
-
<LinkCardtitle="Send Your First Traces"href="/docs/get-started/quickstart/"description="Instrument an app with OpenTelemetry and see traces in dashboards." />
26
+
<LinkCardtitle="Send Your First Traces"href="/docs/get-started/quickstart/first-traces/"description="Instrument an app with OpenTelemetry and see traces in dashboards." />
27
27
<LinkCardtitle="Trace an AI Agent"href="/docs/ai-observability/agent-tracing/"description="Instrument an AI agent with GenAI semantic conventions and visualize the execution graph." />
28
28
29
29
<Asidetype="tip">
@@ -41,4 +41,4 @@ The stack optionally ships with [example services](https://github.com/opensearch
41
41
## Community
42
42
43
43
-[GitHub](https://github.com/opensearch-project/observability-stack) — issues, PRs, and discussions
44
-
-[Contributing guide](/docs/contributing/) — how to contribute
44
+
-[Contributing guide](https://github.com/opensearch-project/observability-stack/blob/main/CONTRIBUTING.md) — how to contribute
0 commit comments