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

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

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
59
60
61
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 'webpack'
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 July 10, 2019, 12:08 a.m.