npm install --save gatsby-plugin-noodl
Enter this into your gatsby-config.js
inside plugins
:
module.exports = {
plugins: ['gatsby-plugin-noodl'],
}
Alternatively you can provide options to the plugin by passing them into the options
property:
module.exports = {
siteMetadata: {
siteTitle: '',
},
plugins: [
{
resolve: 'gatsby-plugin-noodl',
// Default options
options: {
assets: './src/resources/assets',
buildSource: 'remote',
config: 'www',
deviceType: 'web',
ecosEnv: 'test',
loglevel: 'debug',
path: '',
startPage: 'HomePage',
template: require.resolve('./src/templates/page.tsx'),
viewport: {
width: 1024,
height: 768,
},
},
},
],
}
The path to the template page that will be rendering noodl pages
The path to save downloaded assets to
If buildSource is "local" it will build using files locally (using "path" configured above).
If buildSource is "remote" it will build files remotely using the "config" key as the endpoint.
The config name (example: 'meetd2'
)
Defaults to aitmed
The eCOS environment. Defaults to stable
Environment | Value |
---|---|
Stable | 'stable' |
Test | 'test' |
Logging output level.
Level | Description |
---|---|
'error' |
Only log errors |
'warn' |
Only log warnings and errors |
'info' |
Only log info, warnings and errors |
'debug' |
Log everything |
'silent' |
Disable all logging |
The path to save yml files to
The viewport used to calculate the dimensions for static pages