mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 18:35:29 -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
405 B
Python
17 lines
405 B
Python
import argparse
|
|
|
|
from dify_plugin.commands.generate_docs import generate_docs
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description="Dify Plugin SDK Documentation Generator")
|
|
parser.add_argument("command", choices=["generate-docs"], help="Command to run")
|
|
args = parser.parse_args()
|
|
|
|
if args.command == "generate-docs":
|
|
generate_docs()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|