MINOR: updated documentation for permalinks

This commit is contained in:
Will Rossiter 2010-10-22 02:09:15 +00:00
parent 7546e9429a
commit 1a5c88b469
2 changed files with 15 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class DocumentationPermalinks {
* Add a mapping of nice short permalinks to a full long path
*
* DocumentationPermalinks::add(array(
* 'debugging' => 'sapphire/topics/debugging.md'
* 'debugging' => 'current/en/sapphire/topics/debugging'
* ));
*
*

View File

@ -19,4 +19,17 @@ to load a module outside a documentation path).
Unregister a module (removes from documentation list). You can specify the module, the version
and the lang. If no version is specified then all folders of that lang are removed. If you do
not specify a version or lang the whole module will be removed from the documentation.
not specify a version or lang the whole module will be removed from the documentation.
## Permalinks
You can set short names for longer urls so they are easier to remember. Set the following in your mysite/_config.php file:
DocumentationPermalinks::add(array(
'debugging' => 'current/en/sapphire/topics/debugging',
'templates' => 'current/en/sapphire/topics/templates'
));