aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-02-06 13:09:24 -0500
committerW. Trevor King <wking@drexel.edu>2010-02-06 13:09:24 -0500
commit668be5b01d9ad47f4f9714bfe8deee377341eb35 (patch)
tree367f0df6c880bc1a6815d1d290cb30f9a3352660 /doc
parent23b523c3ddd527012f0ae18dc2b3da2fadcfdae2 (diff)
downloadbugseverywhere-668be5b01d9ad47f4f9714bfe8deee377341eb35.tar.gz
Added libbe.bug to the Sphinx documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/conf.py5
-rw-r--r--doc/ids.txt53
-rw-r--r--doc/index.txt2
-rw-r--r--doc/libbe.bug.txt7
-rw-r--r--doc/libbe.txt12
5 files changed, 76 insertions, 3 deletions
diff --git a/doc/conf.py b/doc/conf.py
index b2dab25..ea03b08 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -13,12 +13,13 @@
import sys, os
-import libbe.version
-
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.append(os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
+
+import libbe.version
# -- General configuration -----------------------------------------------------
diff --git a/doc/ids.txt b/doc/ids.txt
new file mode 100644
index 0000000..ba1837b
--- /dev/null
+++ b/doc/ids.txt
@@ -0,0 +1,53 @@
+**********
+Object IDs
+**********
+
+Format
+======
+
+BE IDs are formatted::
+
+ <bug-directory>[/<bug>[/<comment>]]
+
+where each ``<..>`` is a UUID. For example::
+
+ bea86499-824e-4e77-b085-2d581fa9ccab/3438b72c-6244-4f1d-8722-8c8d41484e35
+
+refers to bug ``3438b72c-6244-4f1d-8722-8c8d41484e35`` which is
+located in bug directory ``bea86499-824e-4e77-b085-2d581fa9ccab``.
+This is a bit of a mouthful, so you can truncate each UUID so long as
+it remains unique. For example::
+
+ bea/343
+
+If there were two bugs ``3438...`` and ``343a...`` in ``bea``, you'd
+have to use::
+
+ bea/3438
+
+BE will only truncate each UUID down to three characters to slightly
+future-proof the short user ids. However, if you want to save keystrokes
+and you *know* there is only one bug directory, feel free to truncate
+all the way to zero characters::
+
+ /3438
+
+Cross references
+================
+
+To refer to other bug-directories/bugs/comments from bug comments, simply
+enclose the ID in pound signs (``#``). BE will automatically expand the
+truncations to the full UUIDs before storing the comment, and the reference
+will be appropriately truncated (and hyperlinked, if possible) when the
+comment is displayed.
+
+Scope
+=====
+
+Although bug and comment IDs always appear in compound references,
+UUIDs at each level are globally unique. For example, comment
+``bea/343/ba96f1c0-ba48-4df8-aaf0-4e3a3144fc46`` will *only* appear
+under ``bea/343``. The prefix (``bea/343``) allows BE to reduce
+caching global comment-lookup tables and enables easy error messages
+("I couldn't find ``bea/343/ba9`` because I don't know where the
+``bea`` bug directory is located").
diff --git a/doc/index.txt b/doc/index.txt
index f1c1542..9c964fa 100644
--- a/doc/index.txt
+++ b/doc/index.txt
@@ -29,7 +29,7 @@ Contents:
distributed_bugtracking.txt
hacking.txt
spam.txt
-
+ libbe.txt
Indices and tables
==================
diff --git a/doc/libbe.bug.txt b/doc/libbe.bug.txt
new file mode 100644
index 0000000..41427c5
--- /dev/null
+++ b/doc/libbe.bug.txt
@@ -0,0 +1,7 @@
+****************
+:mod:`libbe.bug`
+****************
+
+.. automodule:: libbe.bug
+ :members:
+ :undoc-members:
diff --git a/doc/libbe.txt b/doc/libbe.txt
new file mode 100644
index 0000000..dd04df1
--- /dev/null
+++ b/doc/libbe.txt
@@ -0,0 +1,12 @@
+************
+:mod:`libbe`
+************
+
+.. automodule:: libbe
+ :members:
+ :undoc-members:
+
+.. toctree::
+ :maxdepth: 2
+
+ libbe.bug.txt