1.0.7 • Published 7 years ago

abas-demo-site v1.0.7

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

abas-demo-site

Content for creating ABAS branded demo sites, such as:

The demo site framework contains all the styles, a base template to use with Jekyll, and some common Javascript widgets.

Installation

Download the package:

npm install abas-demo-site

Styles

Either import the styles in your preprocessed stylesheet:

@import "node_modules/abas-demo-site/dist/abas-demo-site";

Or host and include the built css directly:

<link href="/node_modules/abas-demo-site/dist/abas-demo-site.css" rel="stylesheet">

Widgets

Initialise the demo site components

import { init } from 'abas-demo-site'

init();

Base Template

To use the base template, you will need to replace the default Jekyll _layouts directory in your config with the dist folder of this package:

_config.yml

layouts_dir: 'node_modules/abas-demo-site/dist'

The base layout depends on the following templates existing in your Jekyll _includes folder:

  • head.html
  • required_static.html

Usage

Base Template Customisation

A number of variables are used to customise the base template, which are set in your Jekyll config:

_config.yml

package_name: Cool Package
package_github_url: https://github.com/ABASystems/cool-package
package_npm_url: https://www.npmjs.com/package/cool-package

Source Code Previewer

To implement a source code previewer, use the following HTML mount:

<code
  class="script"
  data-source="static/demo-script.jsx"
>Loading ...</code>
1.0.7

7 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago