Files
droidrun/gen-docs-sdk-ref.sh
johnmalek312 ef0b14934e docs: add v5 docs with version switcher, replace CodeAct with FastAgent
- Delete legacy v1 and v2 docs
- Create v5 docs as new latest version
- Configure Mintlify navigation.versions for v3/v4/v5 switcher
- Replace all CodeAct references with FastAgent (XML tool-calling)
- Update internal event types to match FastAgent implementation
- Fix all cross-references to point to /v5/
- Remove v3→v4 migration guide from v5
- Update SKILL.md and gen-docs-sdk-ref.sh to target v5
2026-02-13 14:40:37 +11:00

20 lines
513 B
Bash
Executable File

#!/bin/bash
# Generate documentation for the SDK reference
pydoc-markdown
# rename .md to .mdx
# Rename all .md files to .mdx in the docs/v3/sdk directory
find docs/v5/sdk -name "*.md" -exec sh -c 'mv "$1" "${1%.md}.mdx"' _ {} \;
# update docs/v3/.generated-files.txt with the new files extension
# Set sed in-place flag for macOS and Linux compatibility
if [[ "$(uname)" == "Darwin" ]]; then
SED_INPLACE=(-i '')
else
SED_INPLACE=(-i)
fi
sed "${SED_INPLACE[@]}" 's/\.md/.mdx/g' docs/.generated-files.txt