Moved /doc/ to /doc-src/

Moved the doc/ dir to /doc-src/ so that the actual
markdown files aren't substituted for the docs.
This commit is contained in:
Evan Prodromou 2009-02-10 22:33:57 -05:00
parent 7b9e69eb89
commit 1a7337f2fd
13 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ class DocAction extends Action
/** /**
* Class handler. * Class handler.
* *
* @param array $args array of arguments * @param array $args array of arguments
* *
* @return nothing * @return nothing
@ -59,7 +59,7 @@ class DocAction extends Action
{ {
parent::handle($args); parent::handle($args);
$this->title = $this->trimmed('title'); $this->title = $this->trimmed('title');
$this->filename = INSTALLDIR.'/doc/'.$this->title; $this->filename = INSTALLDIR.'/doc-src/'.$this->title;
if (!file_exists($this->filename)) { if (!file_exists($this->filename)) {
$this->clientError(_('No such document.')); $this->clientError(_('No such document.'));
return; return;
@ -71,14 +71,14 @@ class DocAction extends Action
function showPageTitle() { function showPageTitle() {
$this->element('h1', array('class' => 'entry-title'), $this->title()); $this->element('h1', array('class' => 'entry-title'), $this->title());
} }
// overrided to add hentry, and content-inner classes // overrided to add hentry, and content-inner classes
function showContentBlock() function showContentBlock()
{ {
$this->elementStart('div', array('id' => 'content', 'class' => 'hentry')); $this->elementStart('div', array('id' => 'content', 'class' => 'hentry'));
$this->showPageTitle(); $this->showPageTitle();
$this->showPageNoticeBlock(); $this->showPageNoticeBlock();
$this->elementStart('div', array('id' => 'content_inner', $this->elementStart('div', array('id' => 'content_inner',
'class' => 'entry-content')); 'class' => 'entry-content'));
// show the actual content (forms, lists, whatever) // show the actual content (forms, lists, whatever)
$this->showContent(); $this->showContent();
@ -88,7 +88,7 @@ class DocAction extends Action
/** /**
* Display content. * Display content.
* *
* @return nothing * @return nothing
*/ */
function showContent() function showContent()
@ -100,7 +100,7 @@ class DocAction extends Action
/** /**
* Page title. * Page title.
* *
* @return page title * @return page title
*/ */
function title() function title()

View File