Add a mudpy.menu module to hold menu functions
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 24 Dec 2019 22:55:01 +0000 (22:55 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Mon, 30 Dec 2019 02:16:39 +0000 (02:16 +0000)
In preparation for relocating arbitrary Python expressions out of
the standard menu elements, provide a stub mudpy.menu module which
will house equivalent convenience functions and include an autodoc
section for it in the Sphinx API documentation template.

doc/source/api.rst
mudpy/__init__.py
mudpy/menu.py [new file with mode: 0644]

index 1b028ef..8af533c 100644 (file)
@@ -1,4 +1,4 @@
-.. Copyright (c) 2018 mudpy authors. Permission to use, copy,
+.. Copyright (c) 2018-2019 mudpy authors. Permission to use, copy,
    modify, and distribute this software is granted under terms
    provided in the LICENSE file distributed with this software.
 
    modify, and distribute this software is granted under terms
    provided in the LICENSE file distributed with this software.
 
@@ -33,6 +33,14 @@ mudpy\.data module
     :undoc-members:
     :show-inheritance:
 
     :undoc-members:
     :show-inheritance:
 
+mudpy\.menu module
+------------------
+
+.. automodule:: mudpy.menu
+    :members:
+    :undoc-members:
+    :show-inheritance:
+
 mudpy\.misc module
 ------------------
 
 mudpy\.misc module
 ------------------
 
index 3a8cf43..f9e00b8 100644 (file)
@@ -18,6 +18,7 @@ def load():
             "command",
             "daemon",
             "data",
             "command",
             "daemon",
             "data",
+            "menu",
             "misc",
             "password",
             "telnet",
             "misc",
             "password",
             "telnet",
diff --git a/mudpy/menu.py b/mudpy/menu.py
new file mode 100644 (file)
index 0000000..a1d18f7
--- /dev/null
@@ -0,0 +1,5 @@
+"""Utility functions for menu operation."""
+
+# Copyright (c) 2019 mudpy authors. Permission to use, copy,
+# modify, and distribute this software is granted under terms
+# provided in the LICENSE file distributed with this software.