1.3.2 • Published 3 months ago

uptick-demo-site v1.3.2

Weekly downloads
41
License
MIT
Repository
github
Last release
3 months ago

uptick-demo-site

npm version Downloads

Content for creating Uptick-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 uptick-demo-site

Styles

Either import the styles in your preprocessed stylesheet:

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

Or host and include the built css directly:

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

Widgets

Initialise the demo site components

import { init } from 'uptick-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/uptick-demo-site/dist'

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

  • head.html
  • required_static.html

Favicon

Copy favicon.png from this project's source directory into your jekyll root folder. Then add to the jekyll-seo-tag plugin to your project:

_config.yml

plugins:
  - jekyll-seo-tag

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/uptick/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.3.2

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.2.3

3 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago