<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,26 +1,69 @@
 &lt;?php
+/**
+ * @package WordPress
+ * @subpackage Tarski
+ */
 
-// Path constants
+/**
+ * Tarski's constants.
+ * 
+ * These mostly provide convenient aliases for filesystem paths. Tarski's many
+ * files live in a number of directories (the main ones being /app and
+ * /library), so keeping includes simple is greatly helped by a sane set of
+ * path constants. The one exception is TARSKIVERSIONFILE, which defines the
+ * URL of the update notifier.
+ * 
+ * @see TarskiVersion
+ * @link http://tarskitheme.com/help/updates/notifier/
+ */
 define('TARSKICLASSES', TEMPLATEPATH . '/library/classes');
 define('TARSKIHELPERS', TEMPLATEPATH . '/library/helpers');
 define('TARSKIDISPLAY', TEMPLATEPATH . '/app/templates');
 define('TARSKICACHE', WP_CONTENT_DIR . '/tarski');
 define('TARSKIVERSIONFILE', 'http://tarskitheme.com/version.atom');
 
-// Core library files
+/**
+ * Core library files.
+ * 
+ * These files will be loaded whenever WordPress is. They include a few key
+ * functions, and the core classes that Tarski requires to load its options,
+ * add dependencies to document heads, and output comments.
+ * 
+ * @see Options
+ * @see Asset
+ * @see TarskiCommentWalker
+ */
 require_once(TEMPLATEPATH . '/library/core.php');
 require_once(TARSKICLASSES . '/options.php');
 require_once(TARSKICLASSES . '/asset.php');
 require_once(TARSKICLASSES . '/comment_walker.php');
 
-// Admin library files
+/**
+ * Admin library files.
+ * 
+ * These library files are required for Tarski's administrative functions:
+ * notifying the user about updates, selecting pages to add to the navbar,
+ * defining the options page parameters, and so on. They are loaded only on
+ * when a WordPress admin page is accessed, so as to reduce the load on the
+ * server.
+ * 
+ * @see TarskiVersion
+ * @see WalkerPageSelect
+ */
 if (is_admin()) {
 	require_once(TARSKICLASSES . '/version.php');
 	require_once(TARSKICLASSES . '/page_select.php');
 	require_once(TARSKIHELPERS . '/admin_helper.php');
 }
 
-// Various helper libraries
+/**
+ * Templating libraries.
+ * 
+ * As a theme, particularly given its complexity and multiplicity of options,
+ * Tarski needs a lot of templating functions. There is an ongoing effort to
+ * split functions up into logical groups spread across more and smaller files,
+ * so that each grouping remains comprehensible and each function easy to find.
+ */
 require_once(TARSKIHELPERS . '/template_helper.php');
 require_once(TARSKIHELPERS . '/content_helper.php');
 require_once(TARSKIHELPERS . '/comments_helper.php');
@@ -28,12 +71,26 @@ require_once(TARSKIHELPERS . '/author_helper.php');
 require_once(TARSKIHELPERS . '/tag_helper.php');
 require_once(TARSKIHELPERS . '/widgets.php');
 
-// API files
+/**
+ * API files.
+ * 
+ * Tarski's API is actually spread across much of the library files required
+ * above, but certain pieces of functionality such as generic template hooks,
+ * legacy API handlers, and deprecated functions, all live in specialised API
+ * files where they can be easily found and documented.
+ */
 require_once(TEMPLATEPATH . '/app/api/hooks.php');
 require_once(TEMPLATEPATH . '/app/api/constants_helper.php');
 include_once(TEMPLATEPATH . '/app/api/deprecated.php');
 
-// Launch
+/**
+ * Launcher.
+ * 
+ * The launcher file makes an inital round of function calls, loading any
+ * available localisation files, defining several constants which WordPress
+ * requires, registering widget sidebars, and adding numerous actions and
+ * filters.
+ */
 require_once(TEMPLATEPATH . '/app/launcher.php');
 
 ?&gt;
\ No newline at end of file</diff>
      <filename>functions.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d3e90bcf15840a7b883cecd39b1fb57c37af13a1</id>
    </parent>
  </parents>
  <author>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </author>
  <url>http://github.com/ionfish/tarski/commit/6fe211053c1298b800e90b85be13c04e1237749a</url>
  <id>6fe211053c1298b800e90b85be13c04e1237749a</id>
  <committed-date>2008-11-10T16:18:28-08:00</committed-date>
  <authored-date>2008-11-10T16:18:28-08:00</authored-date>
  <message>Add package info and documentation to functions.php.


git-svn-id: https://tarski.googlecode.com/svn/trunk@841 8ec1c81d-c82d-0410-ab24-9d07384f4a97</message>
  <tree>0f4a4ac5285fc18277db6d5d742a8c8b696d1df3</tree>
  <committer>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </committer>
</commit>
