docs: Makefile for generating a combined device-details.rst file.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/docs/Makefile b/docs/Makefile
index db06a05..08af88d 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -49,6 +49,9 @@
 rules/periphery-rules.rst: $(wildcard rules/periphery/*) | $(CONDA_ENV_PYTHON)
 	$(IN_CONDA_ENV) cd rules/periphery; ./periphery-split-csv.py > /dev/null
 
+rules/device-details.rst: rules/device-details.py $(wildcard rules/device-details/*/index.rst) | $(CONDA_ENV_PYTHON)
+	$(IN_CONDA_ENV) cd rules; ./device-details.py > $(abspath $@)
+
 # Various automated fixups that can be run
 fixup:
 	# Make sure it is SkyWater
diff --git a/docs/conf.py b/docs/conf.py
index 94febbb..0e0d275 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -123,6 +123,7 @@
     # Files included in other rst files.
     'code-of-conduct.rst',
     'rules/periphery-rules.rst',
+    'rules/device-details/*/index.rst',
 ]
 
 # The name of the Pygments (syntax highlighting) style to use.