Browse Source

Move run-tigsite.php out of src/ ; add catig12 in config

master
Thierry 3 years ago
parent
commit
520c072b52
5 changed files with 23 additions and 4 deletions
  1. +1
    -1
      README
  2. +4
    -3
      run-tigsite.php
  3. +2
    -0
      sites/catig12/commands/one-shot/README
  4. +8
    -0
      sites/catig12/commands/replace-sidebar.yml
  5. +8
    -0
      sites/catig12/config.yml

+ 1
- 1
README View File

@@ -2,4 +2,4 @@ Tools to manage the development of a static site.

Documentation of this software is located in docs/index.html.

Released under the GPL (General Public Licence), version 2 or later.
Released under the GPL (General Public Licence), version 2 or later.

src/run-tigsite.php → run-tigsite.php View File

@@ -12,7 +12,9 @@

define('DS', DIRECTORY_SEPARATOR);

require_once 'app/autoload.php';
$ROOT_DIR = __DIR__;

require_once $ROOT_DIR . DS . 'src' . DS . 'app' . DS . 'autoload.php';

$USAGE = <<<USAGE
Usage :
@@ -36,9 +38,8 @@ if(count($argv) != 3){
$siteName = $argv[1];
$command = $argv[2];

$ROOT = dirname(__DIR__);

$siteDir = $ROOT . DS . 'sites' . DS . $siteName;
$siteDir = $ROOT_DIR . DS . 'sites' . DS . $siteName;

if(!is_dir($siteDir)){
echo "Wrong site name : directory sites/$siteName does not exist\n";

+ 2
- 0
sites/catig12/commands/one-shot/README View File

@@ -0,0 +1,2 @@
Contains commands that were written to be executed only once


+ 8
- 0
sites/catig12/commands/replace-sidebar.yml View File

@@ -0,0 +1,8 @@
#
# Command to replace the right sidebar
# Uses the page configuration 'sidebar-right' directive
#
commandClass: replaceHtml
before: '<aside class="left">'
after: '</aside>'
replacement-file: static/html/sidebar.html

+ 8
- 0
sites/catig12/config.yml View File

@@ -0,0 +1,8 @@
location: /home/thierry/dev/maths/categories/catig12
exclude:
- 'z.*'
- '*/z.*'
- .git
- .gitignore
- static

Loading…
Cancel
Save