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
Add autodocs script for automated documentation generation
This script facilitates automatic documentation updates for a collection of scripts using AI-powered markdown generation. It processes a predefined list of scripts, generates individual documentation files, and updates the main README.md using context and language model assistance.
# Create the command that will generate the updated documentation
26
+
CMD="./context \"$script\" | llm -m openrouter/anthropic/claude-3.5-haiku \"Update the markdown documentation for this script.\" | ./apply-md --create-missing"
27
+
28
+
# Print and execute the command
29
+
echo"$ $CMD"
30
+
eval"$CMD"
31
+
32
+
echo"Updated $DOC_PATH"
33
+
echo""
34
+
else
35
+
echo"Warning: Script $script not found, skipping">&2
36
+
fi
37
+
done
38
+
39
+
# Update README.md based on all doc files
40
+
echo"Updating README.md..."
41
+
42
+
# Command to generate updated README.md content
43
+
README_CMD="./context \"docs/*.md\" | llm -m openrouter/anthropic/claude-3.5-haiku \"Generate a comprehensive README.md for this collection of scripts based on their documentation.\" | ./apply-md"
0 commit comments