1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-24 07:13:32 +02:00

Converted chapters to markdown and changed pages to vertical layout

This commit is contained in:
Andrew Davis
2019-01-02 20:12:35 -06:00
parent 0c17549268
commit cbd3c539bb
56 changed files with 1305 additions and 1060 deletions

View File

@@ -0,0 +1,4 @@
Test comment
```php
$test = 'test';
```

View File

@@ -1,4 +0,0 @@
<?php
// test comment
$test = 'test';

View File

@@ -1,4 +0,0 @@
<div class="grid-code"><div class="doc"></div><div class="code"><pre><code class="language-php">&lt;?php
</code></pre></div><div class="doc">this is a test</div><div class="code"><pre><code class="language-php">$test = 'some test code';
</code></pre></div></div>

View File

@@ -1,4 +0,0 @@
<?php
// this is a test
$test = 'some test code';

View File

@@ -4,13 +4,13 @@ use Apprentice\Page;
return [
'icon_dir' => __DIR__ . '/../icons',
'code_dir' => __DIR__ . '/code',
'chapter_dir' => __DIR__ . '/chapter',
'templates_dir' => __DIR__ . '/templates',
'output_dir' => '/tmp/apprentice_output',
'files_dir' => __DIR__ . '/files',
'pages' => [
Page::create('index', 'index.phtml'),
Page::create('test', null, 'test.php', [
Page::create('test', null, 'test.md', [
'title' => 'Test Title',
'subtitle' => 'Test Subtitle',
'description' => 'Test Description',

View File

@@ -1,3 +1,4 @@
<div><?= escape($title) ?></div>
<div><?= escape($subtitle) ?></div>
<div><?= escape($description) ?></div>
<div><?= escape($chapter) ?></div>