Commit: e7d80213065da3639db39f8f4f849c0da191d14d

Author: gwoo | Date: 2010-04-03 12:39:53 -0700
adding page titles
diff --git a/config/li3_docs.json b/config/li3_docs.json new file mode 100644 index 0000000..d6fb157 --- /dev/null +++ b/config/li3_docs.json @@ -0,0 +1,18 @@ +{ + "name":"li3_docs", + "version":"0.8", + "summary": "the lithium docs plugin", + "description": "Automatically generates documentation from docblocks", + "maintainers":[ + {"name": "gwoo", "website": "lithify.me"}, + {"name": "nate", "website": "lithify.me"}, + {"name": "nperson", "website": "lithify.me"} + ], + "sources":[ + "http:\/\/lab.lithify.me\/lab\/download\/li3_docs.phar.gz" + ], + "commands":{ + "install":[],"update":[],"remove":[] + }, + "requires":[] +} \ No newline at end of file diff --git a/views/browser/index.html.php b/views/browser/index.html.php index 583630a..60000d3 100644 --- a/views/browser/index.html.php +++ b/views/browser/index.html.php @@ -1,4 +1,4 @@ -<h2><?=$t('Libraries', array('scope' => 'li3_docs')); ?></h2> +<h2><?=$this->title($t('Libraries', array('scope' => 'li3_docs'))); ?></h2> <ul class="libraries"> <?php foreach ($libraries as $name => $config) { ?> <?php $display = ucwords(str_replace('_', ' ', $name)); ?> diff --git a/views/browser/view.html.php b/views/browser/view.html.php index c555b92..d8e6594 100644 --- a/views/browser/view.html.php +++ b/views/browser/view.html.php @@ -1,12 +1,10 @@ <?php - $cleanup = function($text) { return preg_replace('/\n\s+-\s/msi', "\n\n - ", $text); }; - $scope = strtok($object['identifier'], '\\') . '_docs'; -$curPath = str_replace('\\', '/', $name); - +$namespace = str_replace('\\', '/', $name); +$this->title($namespace); ?> <?php if ($object['children']) { ?> <h4><?=$t('Package contents', array('scope' => 'li3_docs')); ?></h4> @@ -90,7 +88,7 @@ $curPath = str_replace('\\', '/', $name); <h4><?=$t('Properties', array('scope' => 'li3_docs')); ?></h4> <ul class="properties"> <?php foreach ($object['properties'] as $name => $value) { ?> - <li><?php echo $this->html->link($name, "docs/{$curPath}::\${$name}"); ?></li> + <li><?php echo $this->html->link($name, "docs/{$namespace}::\${$name}"); ?></li> <?php } ?> </ul> <?php } ?> @@ -100,7 +98,7 @@ $curPath = str_replace('\\', '/', $name); <h4><?=$t('Methods', array('scope' => 'li3_docs')); ?></h4> <ul class="methods"> <?php foreach ($object['methods'] as $method) { ?> - <?php $url = "docs/{$curPath}::{$method->name}()"; ?> + <?php $url = "docs/{$namespace}::{$method->name}()"; ?> <li><?php echo $this->html->link($method->name, $url); ?></li> <?php } ?> </ul> diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index c0ab86f..9e8eb83 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -10,7 +10,7 @@ <html> <head> <?php echo $this->html->charset(); ?> - <title>Lithium API <?php echo $this->title(); ?></title> + <title>Docs > <?php echo $this->title(); ?></title> <?php echo $this->html->style(array('lithium', '/li3_docs/css/li3_docs')); ?> <?php echo $this->scripts(); ?> <?php echo $this->html->link('Icon', null, array('type' => 'icon')); ?>