Merge branch 'development'

* development:
  Add a refrence to themes_path
  realpath returns the canonicalized absolute pathname
  Dont set theme-variant if there is none
  Add Vulkan Tutorial to list of sites using the framework
  Fix autoloading and prioritize getting it as a dependency
  Change the way the commands are declare, separate "generate" and "serve"
  Support BOM at the beginning of content, fixes #372
  Applied fixes from StyleCI
  Add the daux --serve command to simplify writing documentation and reading.
  Fix the way front matter is handled, fixes #345
  Create a "daux" binary
  Add badges and code coverage
  Mark as non compatible with PHP 5.4
  Applied fixes from StyleCI
  Added .travis.yml file
  Build latest phar
  Add the ability to do relative links in documentations
  Compile latest version
  Minify files
  Remove Bootstrap and simplify styles

# Conflicts:
#	libs/DauxHelper.php
#	libs/bootstrap.php
This commit is contained in:
Stéphane Goetz 2016-07-29 22:00:43 +02:00
commit fb5fb41e96
2 changed files with 13 additions and 12 deletions

View File

@ -35,6 +35,7 @@ class DauxHelper
} }
$theme = explode('-', $params['html']['theme']); $theme = explode('-', $params['html']['theme']);
// do we have a variant or only a theme ? // do we have a variant or only a theme ?
if (isset($theme[1])) { if (isset($theme[1])) {
$params['html']['theme-variant'] = array_pop($theme); $params['html']['theme-variant'] = array_pop($theme);

View File

@ -1,15 +1,15 @@
<?php <?php
// Loaded as a dependency
if (file_exists(__DIR__ . '/../../../autoload.php')) {
return require_once __DIR__ . '/../../../autoload.php';
}
// Loaded in the project itself // Loaded in the project itself
if (file_exists(__DIR__ . '/../vendor/autoload.php')) { if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
return require_once __DIR__ . '/../vendor/autoload.php'; return require_once __DIR__ . '/../vendor/autoload.php';
} }
// Loaded as a dependency
if (file_exists(__DIR__ . '/../../../../autoload.php')) {
return require_once __DIR__ . '/../../../../autoload.php';
}
// Loaded in the project itself, when vendor isn't installed // Loaded in the project itself, when vendor isn't installed
if (file_exists(__DIR__ . '/../daux.phar')) { if (file_exists(__DIR__ . '/../daux.phar')) {
define('PHAR_DIR', __DIR__ . '/..'); define('PHAR_DIR', __DIR__ . '/..');