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
|`--doc-version <version>`| auto-detect | Preferred version for URL discovery (e.g. `v3`, `2.x`, `latest`) |
116
+
117
+
When `afdocs` discovers pages from a sitemap or `llms.txt`, it automatically filters out duplicate locale and version variants so you get a representative sample of unique content.
118
+
119
+
The resolution order for both flags is:
120
+
121
+
1.**Explicit flag** (`--doc-locale`, `--doc-version`) if provided
122
+
2.**Auto-detect** from the base URL path (e.g. `https://docs.example.com/fr/v3` detects `fr` and `v3`)
123
+
3.**Built-in fallback** when neither of the above yields a value: locale falls back to `en`; version prefers unversioned URLs, then `latest`/`stable`/`current`, then the highest semver. Pre-release channels (`dev`, `next`, `nightly`, `canary`) are ranked below stable versions
124
+
125
+
Use the flags when the base URL doesn't contain locale or version segments but the site organizes content by locale or version.
0 commit comments