Automate generation of short documentaion in readme
authorKarl O. Pinc <kop@karlpinc.com>
Wed, 19 Jun 2024 22:42:44 +0000 (17:42 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Wed, 19 Jun 2024 22:42:44 +0000 (17:42 -0500)
src/pgwui_develop/TEMPLATE/README.rst.mak

index 80d2e5cf685d9bd3691c1434d343bd469a873a11..595d240f856010c3c764968ac3a801f9f9146ae1 100644 (file)
@@ -27,7 +27,12 @@ ${component}
 Short Documentation
 -------------------
 
-${component} stands for `PostgreSQL`_ Web User Interface .
+<%
+    pgname = summary[0:11]
+    if pgname == 'PostgreSQL ':
+        pgname = '`PostgreSQL`_ '
+    shortdoc = f'{component} stands for {pgname}{summary[11:]}.'
+%>${shortdoc}
 
 
 Usage
@@ -39,7 +44,7 @@ URL Configuration
 -----------------
 
 The default URL for ${component} looks like
-*https://www.example.com/upload*.
+*https://www.example.com/${short_name}*.
 
 See the PGWUI_Server documentation for how to configure a different
 URL.