mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
038edf957e
- Added CLI for generating documentation with `generate-docs` command. - Introduced `SchemaDocumentationGenerator` to create structured documentation from schemas. - Implemented `SchemaDoc` class for schema metadata and documentation management. - Updated `PluginConfiguration` to include descriptions for plugin components. - Added support for outside reference fields in the SchemaDocumentationGenerator to improve documentation clarity. - Updated SchemaDoc to include outside_reference_fields parameter. - Modified various entity classes to utilize outside_reference_fields for better schema representation. - Introduced new container type checks and helper methods for handling dynamic fields in documentation generation.
17 lines
279 B
Bash
Executable File
17 lines
279 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
set -o pipefail
|
|
|
|
SCRIPT_DIR="$(dirname "$0")"
|
|
PYTHON_SDK_DIR="$(dirname "${SCRIPT_DIR}")"
|
|
|
|
function main {
|
|
cd "${PYTHON_SDK_DIR}"
|
|
pdm run python dify_plugin/cli.py generate-docs
|
|
mkdir -p .mkdocs/docs
|
|
mv docs.md .mkdocs/docs/schema.md
|
|
}
|
|
|
|
main
|