Skip to content

Commit

Permalink
Solar_Cli_MakeDocs: a couple of fixes
Browse files Browse the repository at this point in the history
* [FIX] Package index now properly generates a link to the package overview.

* [CHG] Class index now generates a link to the class overview.

* [CHG] Method synopsis now displays Class::method(), instead of just method().
  • Loading branch information
Paul M. Jones committed May 1, 2010
1 parent 8ca5773 commit 9a3cc3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Solar/Cli/MakeDocs.php
Expand Up @@ -266,7 +266,7 @@ public function writePackageIndex()

foreach ($this->packages as $name => $info) {
$summ = empty($info['summ']) ? '-?-' : $info['summ'];
$text[] = "[[Package::$name | ] | $summ";
$text[] = "[[Package::$name | ]] | $summ";
}
$this->_write('package', 'index', $text);
}
Expand Down Expand Up @@ -383,7 +383,7 @@ public function writeClassesIndex()
$text[] = 'Class | Summary';
$text[] = '----- | -------';
foreach ($this->_classes_list as $name => $summ) {
$text[] = "$name | $summ";
$text[] = "[[$name::Overview | $name]] | $summ";
}
$this->_write('class', 'index', $text);
}
Expand Down Expand Up @@ -739,7 +739,7 @@ public function writeClassMethod($class, $name, $info)
$text = array();

// method synopsis
$text[] = '{{method: ' . $info['name'];
$text[] = '{{method: ' . $class . '::' . $info['name'];
$tmp = "{$info['final']} {$info['static']} {$info['access']}";
$tmp = preg_replace('/ {2,}/', ' ', trim($tmp));
$text[] = " @access $tmp";
Expand Down

0 comments on commit 9a3cc3d

Please sign in to comment.