Squashed 'modules/libjuju/' content from commit c50c361
git-subtree-dir: modules/libjuju
git-subtree-split: c50c361a8b9a3bbf1a33f5659e492b481f065cd2
diff --git a/scripts/gendoc b/scripts/gendoc
new file mode 100755
index 0000000..3ef628e
--- /dev/null
+++ b/scripts/gendoc
@@ -0,0 +1,39 @@
+#!/bin/bash
+packages=(
+ juju.action
+ juju.annotation
+ juju.application
+ juju.cloud
+ juju.constraints
+ juju.controller
+ juju.delta
+ juju.errors
+ juju.exceptions
+ juju.juju
+ juju.loop
+ juju.machine
+ juju.model
+ juju.placement
+ juju.relation
+ juju.tag
+ juju.unit
+ juju.utils
+)
+
+for pkg in ${packages[@]}; do
+ cat <<EOD > docs/api/$pkg.rst
+$pkg
+$(echo $pkg | sed -e 's/./=/g')
+
+.. rubric:: Summary
+
+.. automembersummary:: $pkg
+
+.. rubric:: Reference
+
+.. automodule:: $pkg
+ :members:
+ :undoc-members:
+ :show-inheritance:
+EOD
+done