publish: Peform the publish step to ready the viz for hosting

Description Usage Arguments Details

View source: R/publish.R

Description

Determine the type and dispatch to that method to produce files to serve up as the final viz

publish a given id

publish a list representing a viz

publish a page

publish a section

Publish a resource: determine whether a file should be exported (i.e., copied to target/something/), copy the file, and update the viz item with the relative path

JSON data publishing (json, geojson)

Tabular data publishing (csv, tsv, etc.)

Image publishing

Favicon resource

Add a font to the page

javascript publishing TODO allow for cdn js

css publishing

from here on out will use svg-inject to get svg to dom

Footer publishing

Social icons

Header publishing

publish landing page

publish template

check dimensions and size, publish thumbnail

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
publish(viz)

## S3 method for class 'character'
publish(viz)

## S3 method for class 'list'
publish(viz)

## S3 method for class 'page'
publish(viz)

## S3 method for class 'section'
publish(viz)

## S3 method for class 'resource'
publish(viz)

## S3 method for class 'json'
publish(viz)

## S3 method for class 'tabular'
publish(viz)

## S3 method for class 'img'
publish(viz)

## S3 method for class 'ico'
publish(viz)

## S3 method for class 'googlefont'
publish(viz)

## S3 method for class 'js'
publish(viz)

## S3 method for class 'css'
publish(viz)

## S3 method for class 'svg'
publish(viz)

## S3 method for class 'footer'
publish(viz)

## S3 method for class 'social'
publish(viz)

## S3 method for class 'header'
publish(viz)

## S3 method for class 'landing'
publish(viz)

## S3 method for class 'template'
publish(viz)

## S3 method for class 'thumbnail'
publish(viz)

Arguments

viz

vizlab object or identifier

Details

Sections are published individually but are returned invisibly as text to be used directly.

This copies static resources to the target directory, and attaches the relative path to the file if a file was copied in.

The job of minification or css precompiling could also be added here, but currently this is not handled.

Also, templating the resources that make sense would be useful

also, svg will support landscape or portrait for mobile support


USGS-VIZLAB/vizlab documentation built on April 12, 2018, 9:09 a.m.