aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-04 01:29:15 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-04 01:29:15 +0200
commit1ffff49872433ef83ec23b802109e8dfd671ffdd (patch)
tree726e031d44cdf71df10a57add698128a7f6de1e7
parentAdd dependency information. (diff)
downloadmuppet-strings-1ffff49872433ef83ec23b802109e8dfd671ffdd.tar.gz
muppet-strings-1ffff49872433ef83ec23b802109e8dfd671ffdd.tar.xz
Start using sphinx's TODO module.
-rw-r--r--doc/conf.py4
-rw-r--r--doc/index.rst4
-rw-r--r--muppet/lookup.py5
3 files changed, 10 insertions, 3 deletions
diff --git a/doc/conf.py b/doc/conf.py
index 895caba..2d96d79 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -24,8 +24,12 @@ author = 'Hugo Hörnquist'
extensions = [
'sphinx.ext.autodoc', # Automatically extract source from pypthon files
'sphinx.ext.viewcode', # Adds source viewer to output
+ 'sphinx.ext.todo', # Add todo-lists to output
]
+# Actually enable the todo list
+todo_include_todos = True
+
# Fancy type aliases.
# For this to work, each module has to individually run
# from __future__ import annotations
diff --git a/doc/index.rst b/doc/index.rst
index 17dc708..017e4af 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -18,3 +18,7 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
+
+TODO
+====
+.. todolist::
diff --git a/muppet/lookup.py b/muppet/lookup.py
index d51b1af..17511f7 100644
--- a/muppet/lookup.py
+++ b/muppet/lookup.py
@@ -18,9 +18,8 @@ Example
.ref('text') \
.exec()
-TODO
-----
-- ``select``
+.. todo::
+ ``select``
Selects all values from a list which matches a given expression.
This would however require us to manage multiple values at once.
"""