Commit d2fdd17
Rename docs/ to mkdocs/, move examples under /docs/, inline source (#3859)
* Inline example source code into docs pages
Drop the mkdocs hook that materialized examples/<path>/README.md into
docs/examples/<path>/index.md stubs at build time. Move the 20 navigated
example READMEs directly into docs/examples/<path>.md (flat layout, no
per-example subdirectory) and delete the parallel .dstack.yml configs
since their content is already inline in the markdown. The two GCP NCCL
test yamls that were only referenced via dead "Source code" admonitions
are now inlined into their respective tabs.
Within the moved pages, convert absolute https://dstack.ai/(docs|examples)
links to relative .md paths so mkdocs strict mode validates them.
Non-navigated examples (misc/, llms/, server-deployment/, plugins/,
single-node-training/{qlora,optimum-tpu}, the AMD subdirs, etc.) are
left untouched for a later pass.
* Move examples under /docs/, merge single and distributed training
- Move docs/examples/ to docs/docs/examples/ so URLs become /docs/examples/...
instead of /examples/.... The old /examples/<cat>/<name>/ URLs continue to
work via redirects, including the recently-published /docs/examples/
{single-node-training,distributed-training}/ paths.
- Merge "Single-node training" and "Distributed training" example sections
into a single "Training" section. TRL and Axolotl pages now contain both
variants under top-level "Single-node training" and "Distributed training"
H2 sections; Ray+RAGEN moves over unchanged.
- Convert remaining absolute https://dstack.ai/(docs|examples)/... links to
relative .md links throughout the moved example pages and the concept docs
that point into them. Drop dead /docs/guides/{clusters,kubernetes} links
(target pages were removed earlier) and replace with anchor links to the
Kubernetes backend / cluster placement sections where appropriate.
- Inline two GCP NCCL test yamls (a3mega-nccl-tests, a3high-nccl-tests) that
were previously referenced via dead "Source code" admonitions.
* Drop redirect that collides with the real AMD example page
The redirect source 'docs/examples/accelerators/amd/index.md' is now the
canonical URL of the moved AMD example page, so the redirect plugin was
overwriting the real page's index.html with a self-referencing redirect,
producing an infinite loop.
* Add Accelerators link to footer Examples section
* Re-ordered top menu (moved Blog to the end)
* Rename docs/ to mkdocs/ and extract just recipes
The mkdocs source dir is now mkdocs/, and the previously-confusing
docs/docs/ nesting becomes mkdocs/docs/ (read: "in mkdocs sources,
the /docs/ URL section").
- mkdocs.yml: explicit docs_dir: mkdocs, plus custom_dir, cards_layout_dir,
pymdownx.snippets.base_path, edit_uri all repointed to mkdocs/
- scripts/docs/{gen_openapi_reference,gen_rest_plugin_spec_reference}.py
output paths repointed to mkdocs/docs/...; also write a trailing
newline so end-of-file-fixer doesn't fight with mkdocs serve
- .gitignore: openapi.json patterns repointed to mkdocs/docs/...; untrack
the three generated openapi.json files (they're regenerated by the
build and shouldn't be in git)
- .github/workflows/build.yml path filter updated to mkdocs/**
- README.md, AGENTS.md, contributing/{DOCS,BACKENDS}.md prose updated
- .justfile: extract docs recipes into mkdocs/.justfile (mkdocs-serve,
mkdocs-build) following the same pattern as runner/ and frontend/;
drop -w examples (no longer needed) and add --livereload to work
around mkdocs live-reload bugs
* Apply ruff import-sorting fixes to docs gen scripts
---------
Co-authored-by: Andrey Cheptsov <andrey.cheptsov@github.com>1 parent a9b1db9 commit d2fdd17
303 files changed
Lines changed: 913 additions & 1457 deletions
File tree
- .github/workflows
- contributing
- docs/examples
- clusters
- crusoe
- gcp
- lambda
- nccl-rccl-tests
- nebius
- distributed-training
- axolotl
- ray-ragen
- trl
- inference
- nim
- sglang
- trtllm
- vllm
- llms
- deepseek
- llama
- misc/docker-compose
- models
- deepseek-v4
- qwen36
- wan22
- single-node-training
- axolotl
- trl
- examples
- accelerators/tenstorrent
- clusters
- aws
- gcp
- nccl-rccl-tests
- distributed-training
- axolotl
- ray-ragen
- trl
- single-node-training
- axolotl
- trl
- mkdocs
- assets
- fonts
- images
- javascripts
- stylesheets
- blog
- posts
- images
- docs
- concepts
- snippets
- examples
- accelerators
- intel
- clusters
- inference
- llms
- deepseek
- llama
- misc/docker-compose
- models
- wan22
- training
- guides
- migration
- reference
- api
- http
- python
- cli/dstack
- dstack.yml
- plugins
- python
- rest
- server
- layouts
- overrides
- .icons/custom
- colored
- assets/images
- quotes
- partials
- scripts/docs
- skills/dstack
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 73 | + | |
81 | 74 | | |
82 | 75 | | |
83 | 76 | | |
84 | | - | |
| 77 | + | |
85 | 78 | | |
86 | 79 | | |
87 | 80 | | |
| |||
108 | 101 | | |
109 | 102 | | |
110 | 103 | | |
111 | | - | |
| 104 | + | |
112 | 105 | | |
113 | | - | |
| 106 | + | |
114 | 107 | | |
115 | 108 | | |
116 | 109 | | |
| |||
121 | 114 | | |
122 | 115 | | |
123 | 116 | | |
124 | | - | |
125 | | - | |
126 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
127 | 121 | | |
128 | 122 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
143 | 133 | | |
144 | 134 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
149 | 139 | | |
150 | 140 | | |
151 | 141 | | |
152 | | - | |
| 142 | + | |
153 | 143 | | |
154 | 144 | | |
155 | 145 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
0 commit comments