From da0fd57b91314264af0839c14a9b4874b6466728 Mon Sep 17 00:00:00 2001 From: dasiux Date: Sat, 9 Oct 2021 23:05:15 +0200 Subject: [PATCH] fix example tablet desktop header/footer spacing --- docs/changelog.html | 2 +- docs/docs.html | 2 +- docs/index.html | 2 +- example/templates/partials/styles.twig | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/changelog.html b/docs/changelog.html index 823cbab..814f17e 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -1 +1 @@ -Changelog - @squirrel-forge/twighouse
@squirrel-forge/twighouse

Changelog

0.3.0

  • Some docs, more example data, templates and plugin details

0.2.0

  • Core features prototype

This page was generated using @squirrel-forge/twighouse@0.3.0

\ No newline at end of file +Changelog - @squirrel-forge/twighouse
@squirrel-forge/twighouse

Changelog

0.3.0

  • Some docs, more example data, templates and plugin details

0.2.0

  • Core features prototype

This page was generated using @squirrel-forge/twighouse@0.3.0

\ No newline at end of file diff --git a/docs/docs.html b/docs/docs.html index 0099c2b..72f48fb 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -1,4 +1,4 @@ -Docs - @squirrel-forge/twighouse
@squirrel-forge/twighouse

@squirrel-forge/twighouse

A simple, but extendable, json+twig render tool for node.

Installation

npm i @squirrel-forge/twighouse -g

Quickstart

To see a working example run following commands inside an empty directory. The example uses directives and the showdown module to render this README.md to html. For the example you must install showdown yourself, it is neither needed nor required for twighouse itself.

npm i showdown@1.9.1

Then run the commands to deploy the example and render it.

twighouse example -x
+Docs - @squirrel-forge/twighouse

@squirrel-forge/twighouse

A simple, but extendable, json+twig render tool for node.

Installation

npm i @squirrel-forge/twighouse -g

Quickstart

To see a working example run following commands inside an empty directory. The example uses directives and the showdown module to render this README.md to html. For the example you must install showdown yourself, it is neither needed nor required for twighouse itself.

npm i showdown@1.9.1

Then run the commands to deploy the example and render it.

twighouse example -x
 twighouse example dist

You will find the compiled files inside the dist directory and the example source data inside the example directory.

cli usage

twighouse target --boolean --path=../dir --str=about --str=index,about
 twighouse source target --boolean --path=../dir --str=about --str=index,about

Arguments

Using only one argument

the source argument is omitted and assumed to be the current working directory

  1. target - Path to write compiled html pages

Using two arguments

  1. source - Path from where to read data/ and templates/
  2. target - Path to write compiled html pages

Options

ShortLongTypeDescription
-d--datapathOverrides the source path argument for the data folder
-t--templatespathOverrides the source path argument for the templates folder
-l--limitstr, ..Limit which page or pages should be compiled
-m--minifyboolMinifies the html output
-o--onlyboolShow compiled pages json only
-v--verboseboolShow additional info
-x--exampleboolDeploy example data and templates, accepts only one, the target, argument

JSON input

The individual pages json is loaded from the {source}/data/ directory, which has two special directories which are not read as part of the structure. The fragments are loaded at runtime by reference in your json files and any js files in the plugins directory are executed right after the pages source tree was loaded.

Assume following data structure from the example build:

[example]
  |
diff --git a/docs/index.html b/docs/index.html
index 47fc266..a5ac7d2 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1 +1 @@
-@squirrel-forge/twighouse

@squirrel-forge/twighouse

A simple, but extendable, json+twig render tool for node.

twig & json

This page was generated using a few twig templates and some json files.
Check the docs or the code for more details.


This page was generated using @squirrel-forge/twighouse@0.3.0

\ No newline at end of file +@squirrel-forge/twighouse

@squirrel-forge/twighouse

A simple, but extendable, json+twig render tool for node.

twig & json

This page was generated using a few twig templates and some json files.
Check the docs or the code for more details.


This page was generated using @squirrel-forge/twighouse@0.3.0

\ No newline at end of file diff --git a/example/templates/partials/styles.twig b/example/templates/partials/styles.twig index 8ffc632..0825382 100644 --- a/example/templates/partials/styles.twig +++ b/example/templates/partials/styles.twig @@ -254,6 +254,9 @@ min-height: calc(100vh - 4.4rem); overflow-x: hidden; } + nav li { + margin: 0; + } } @media screen and (max-width: 1300px) { aside {