From 80101a0f59e1dea10daecfa46f523085314b78e9 Mon Sep 17 00:00:00 2001
From: Kris Maglione
Date: Sun, 1 Nov 2009 00:20:48 -0400
Subject: [PATCH] Fix some help markup issues.
---
common/locale/en-US/developer.xml | 81 ++++++++++++++++++-------------
1 file changed, 46 insertions(+), 35 deletions(-)
diff --git a/common/locale/en-US/developer.xml b/common/locale/en-US/developer.xml
index 1dcc430d..3f7d7e74 100644
--- a/common/locale/en-US/developer.xml
+++ b/common/locale/en-US/developer.xml
@@ -57,39 +57,48 @@
-If you don't know in which file/section you should put some
-documentation, ask on the mailing list or on #vimperator.
+
+ If you don't know in which file/section you should put some
+ documentation, ask on the mailing list or on
+ #vimperator.
+
Generating documentation
-You can also autogenerate most of the XML help after you have
-written a new command, mapping or option. For this, use:
+
+ You can also autogenerate most of the XML help after you have
+ written a new command, mapping or option.
+
- :echo util.generateHelp(commands.get("addons"), "Extra text")
+:echo util.generateHelp(commands.get(addons), Extra text
]]>)
Writing plugins
-Writing &liberator.appname; plugins is incredibly simple.
-Plugins are simply JavaScript files which run with full chrome
-privileges and have full access to the &liberator.appname; and
-&liberator.host; APIs. Each plugin has its own global object,
-which means that the variables and functions that you create
-won't pollute the global window or private
-liberator namespaces. This means that there's no need
-to wrap your plugin in a closure, as is often the practice in
-JavaScript development. Furthermore, any plugin which is
-installed in your runtimepath/plugin directory
-will find its context stored in
-plugins.<pluginName>, which is often invaluable
-during development and testing.
+
+ Writing &liberator.appname; plugins is incredibly simple.
+ Plugins are simply JavaScript files which run with full chrome
+ privileges and have full access to the &liberator.appname; and
+ &liberator.host; APIs. Each plugin has its own global object,
+ which means that the variables and functions that you create
+ won't pollute the global window or private
+ liberator namespaces. This means that there's no need
+ to wrap your plugin in a closure, as is often the practice in
+ JavaScript development. Furthermore, any plugin which is
+ installed in your runtimepath/plugin directory
+ will find its context stored in
+ plugins.<pluginName>, which is often invaluable
+ during development and testing.
+
Plugin documentation
-Plugins may provide inline documentation, which will appear on
-the :help plugins page. The markup for help entries
-is the same as the above, with a few more plugin specific
-entries. Here is an example from the popular
-flashblock extension:
+
+ Plugins may provide inline documentation, which will appear on
+ the :help plugins page. The markup for help entries
+ is the same as the above, with a few more plugin specific
+ entries. Here is an example from the popular
+ flashblock extension:
+
-The inline XML is made possible by
-E4X.
-It's important that the documentation be assigned to the
-INFO variable, or &liberator.appname; will not be able
-to find it. The documentation that you provide behaves exactly
-as other &liberator.appname; documentation, which means that
-the tags you provide are available via :help with
-full tag completion and cross-referencing support. Although
-documentation is not required, we strongly recommend that all
-plugin authors provide at least basic documentation of the
-functionality of their plugins and of each of the options,
-commands, and especially mappings that they provide.
+
+ The inline XML is made possible by
+ E4X.
+ It's important that the documentation be assigned to the
+ INFO variable, or &liberator.appname; will not be able
+ to find it. The documentation that you provide behaves exactly
+ as other &liberator.appname; documentation, which means that
+ the tags you provide are available via :help with
+ full tag completion and cross-referencing support. Although
+ documentation is not required, we strongly recommend that all
+ plugin authors provide at least basic documentation of the
+ functionality of their plugins and of each of the options,
+ commands, and especially mappings that they provide.
+