aboutsummaryrefslogtreecommitdiffstats
path: root/doc/config.txt
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-10-26 08:00:31 -0400
committerW. Trevor King <wking@tremily.us>2012-10-26 08:16:33 -0400
commit3b8cf46403e0a827a2a4b3f81b654323c821f5b1 (patch)
treee7c2880b8b51f1e55b999cda666d00f158694a19 /doc/config.txt
parent1c5079bdbb762a98bb7cf2efda14d8a74ac65fb4 (diff)
downloadbugseverywhere-3b8cf46403e0a827a2a4b3f81b654323c821f5b1.tar.gz
storage:util:config: path() now defaults to ~/.config/bugs-everywhere
Add a documentation section discussing the config file, respect XDG_CONFIG_HOME, and add BE_CONFIG_PATH.
Diffstat (limited to 'doc/config.txt')
-rw-r--r--doc/config.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/config.txt b/doc/config.txt
new file mode 100644
index 0000000..fd274ed
--- /dev/null
+++ b/doc/config.txt
@@ -0,0 +1,34 @@
+*************
+Configuration
+*************
+
+Config file format and location
+===============================
+
+Most of the information that BE needs lives in the bug repository
+itself, but there is user-specific information that does not fit into
+a shared repository. This per-user configuration information is
+stored in an `INI-style config file`__::
+
+ [default]
+ user = 'John Doe <jdoe@example.com>'
+
+__ configparser_
+
+The config file is located at ``~/.config/bugs-everywhere`` by
+default, but you can override the path by setting environment
+variables (see :py:func:`~libbe.storage.util.config.path` for
+details).
+
+Settings
+========
+
+Currently the only information stored in the configuration file is a
+user ID (see :py:func:`~libbe.ui.util.user.get_user_id`), as shown in
+the example above. However, many version control systems allow you to
+specify your name and email address, and BE will fall back to the
+VCS-configured values, so you probably don't need to set a BE-specific
+configuration.
+
+
+.. _configparser: http://docs.python.org/library/configparser.html