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:
4
test/static/chapter/test.md
Normal file
4
test/static/chapter/test.md
Normal file
@@ -0,0 +1,4 @@
|
||||
Test comment
|
||||
```php
|
||||
$test = 'test';
|
||||
```
|
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
// test comment
|
||||
$test = 'test';
|
@@ -1,4 +0,0 @@
|
||||
<div class="grid-code"><div class="doc"></div><div class="code"><pre><code class="language-php"><?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>
|
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
// this is a test
|
||||
$test = 'some test code';
|
@@ -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',
|
||||
|
@@ -1,3 +1,4 @@
|
||||
<div><?= escape($title) ?></div>
|
||||
<div><?= escape($subtitle) ?></div>
|
||||
<div><?= escape($description) ?></div>
|
||||
<div><?= escape($chapter) ?></div>
|
||||
|
Reference in New Issue
Block a user