summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-30 15:26:54 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-10 19:00:52 -0400
commitec3b719dab4ae3c51d8bd52ab2b4176f82c5006f (patch)
treec1fc0f63c955b61ef1d9a648c78dfdc7f87bc2c7
parent413e9b486b1a84960d4c8ddac130e87280f64c6a (diff)
downloadgitblit-ec3b719dab4ae3c51d8bd52ab2b4176f82c5006f.tar.gz
gitblit-ec3b719dab4ae3c51d8bd52ab2b4176f82c5006f.zip
Documentation
-rw-r--r--src/site/resources/6x12.dfontbin0 -> 89952 bytes
-rw-r--r--src/site/resources/6x13.dfontbin0 -> 132838 bytes
-rw-r--r--src/site/resources/7x13.dfontbin0 -> 120394 bytes
-rw-r--r--src/site/resources/7x14.dfontbin0 -> 89640 bytes
-rw-r--r--src/site/setup_plugins.mkd43
5 files changed, 42 insertions, 1 deletions
diff --git a/src/site/resources/6x12.dfont b/src/site/resources/6x12.dfont
new file mode 100644
index 00000000..8c35f35a
--- /dev/null
+++ b/src/site/resources/6x12.dfont
Binary files differ
diff --git a/src/site/resources/6x13.dfont b/src/site/resources/6x13.dfont
new file mode 100644
index 00000000..6cf59fe9
--- /dev/null
+++ b/src/site/resources/6x13.dfont
Binary files differ
diff --git a/src/site/resources/7x13.dfont b/src/site/resources/7x13.dfont
new file mode 100644
index 00000000..577d638b
--- /dev/null
+++ b/src/site/resources/7x13.dfont
Binary files differ
diff --git a/src/site/resources/7x14.dfont b/src/site/resources/7x14.dfont
new file mode 100644
index 00000000..465af8ea
--- /dev/null
+++ b/src/site/resources/7x14.dfont
Binary files differ
diff --git a/src/site/setup_plugins.mkd b/src/site/setup_plugins.mkd
index 4e5c733a..6ab4f1ef 100644
--- a/src/site/setup_plugins.mkd
+++ b/src/site/setup_plugins.mkd
@@ -3,4 +3,45 @@
*SINCE 1.5.0*
-Document (limited) plugin infrastructure.
+Gitblit supports extending and enhacing the core functionality through plugins. This mechanism is very young and incomplete with few extension points, but you can expect it to evolve rapidly in upcoming releases.
+
+### Architecture
+
+The existing plugin mechanism is based on [pf4j](https://github.com/decebals/pf4j). Plugins are distributed as zip files and may include their runtime dependencies or may rely on the bundled dependencies of other plugins and/or Gitblit core.
+
+The zip plugins are stored in `${baseFolder}/plugins` and are unpacked on startup into folders of the same name.
+
+A plugin defines it's metadata in the META-INF/MANIFEST.MF file:
+
+ Plugin-Class: com.gitblit.plugins.cookbook.CookbookPlugin
+ Plugin-Dependencies: foo, bar
+ Plugin-Id: gitblit-plugin
+ Plugin-Provider: John Doe
+ Plugin-Version: 1.0
+
+In addition to extending Gitblit core, plugins can also define extension points that may be implemented by other plugins. Therefore a plugin may depend on other plugins.
+
+ Plugin-Dependencies: foo, bar
+
+Plugins are controlled by the `plugin` SSH dispatch command. Only *administrators* have permission to use this dispatch command.
+
+The pf4j plugin framework relies on a javac apt processor to generate compile-time extension information, so be sure to enable apt processing in your build process.
+
+### Extension Point: SSH DispatchCommand
+
+You can provide your own custom SSH commands by extending the DispatchCommand.
+
+For some examples of how to do this, please see:
+
+[gitblit-cookbook-plugin (Maven project)](https://dev.gitblit.com/summary/gitblit-cookbook-plugin.git)
+[gitblit-powertools-plugin (Ant/Moxie project)](https://dev.gitblit.com/summary/gitblit-powertools-plugin.git)
+
+### Mac OSX Fonts
+
+Gitblit's core SSH commands and those in the *powertools* plugin rely on use of ANSI border characters to provide a pretty presentation of data. Unfortunately, the fonts provided by Apple - while very nice - don't work well with ANSI border characters. The following public domain fixed-width, fixed-point, bitmapped fonts work very nicely. I find the 6x12 font with a line spacing of ~0.8 to be quite acceptable.
+
+[6x12.dfont](6x12.dfont)
+[6x13.dfont](6x13.dfont)
+[7x13.dfont](7x13.dfont)
+[7x14.dfont](7x14.dfont)
+