Skip to content

Commit

Permalink
Moved bootstrap to tests, created docs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsharman committed Aug 19, 2017
1 parent 5a4b086 commit 4a0067c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 37 deletions.
15 changes: 0 additions & 15 deletions build.php

This file was deleted.

15 changes: 15 additions & 0 deletions docs/build.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

require __DIR__ . '/../vendor/autoload.php';

use LearnosityQti\AppContainer;

// Generate entities
// $generator = AppContainer::getApplicationContainer()->get('learnosity_entity_generator');
// $generator->generateQuestionsClasses();
// $generator->generateItemClasses();
// $generator->generateActivityClasses();

// Generate documentation
$generator = AppContainer::getApplicationContainer()->get('learnosity_documentation_generator');
$generator->generateDocumentation();
3 changes: 1 addition & 2 deletions documentation.html → docs/documentation.html

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions issues.log

This file was deleted.

13 changes: 0 additions & 13 deletions logs.json

This file was deleted.

2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<phpunit bootstrap="./bootstrap.php">
<phpunit bootstrap="./tests/bootstrap.php">
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DocumentationGenerator
public function __construct(SchemasService $schemasService)
{
$templateDirectory = FileSystemUtil::getRootPath() . '/Config/resources/templates';
$this->documentationPath = FileSystemUtil::getRootPath() . '/../documentation.html';
$this->documentationPath = FileSystemUtil::getRootPath() . '/../docs/documentation.html';
$this->twig = new \Twig_Environment(new \Twig_Loader_Filesystem($templateDirectory), [
'debug' => true
]);
Expand Down
File renamed without changes.

0 comments on commit 4a0067c

Please sign in to comment.