{entries(plugins).map(([title, plugins], i) => <div key={i} className="space-bottom"> <a href={prefixUrl(`/plugins/#${slug(title)}`)} className='dark-link block small truncate'>{title}</a> {entries(plugins).map(([name], i) => <a key={i} href={prefixUrl(`/plugins/#${slug(name)}`)} className='block small truncate'>{name}</a> )} </div>
function url(ext, options) { if (options && options.local && process.env.DEPLOY_ENV === 'local') { return prefixUrl(`/dist/mapbox-gl.${ext}`); } else { return `https://api.tiles.mapbox.com/mapbox-gl-js/v${version}/mapbox-gl.${ext}`; } }
{entries(plugins).map(([name, plugin], i) => <div key={i} className='space-bottom1 keyline-all pad2 fill-white'> <a id={slug(name)}/> <h3><a href={plugin.website}>{name}</a></h3> { plugin.example && <a className="small quiet rcon" href={prefixUrl(`/example/${plugin.example}`)}>view example</a> } <p>{ plugin.description }</p> </div>
{entries(plugins).map(([name], i) => <a key={i} href={prefixUrl(`/plugins/#${slug(name)}`)} className='block small truncate'>{name}</a>
.map(({pathname, title}, i) => <a key={i} href={prefixUrl(pathname)} className={`block small truncate ${title === frontMatter.title && 'active'}`}>{title}</a>
import Redirect from '../../components/redirect'; import {prefixUrl} from '@mapbox/batfish/modules/prefix-url'; export default Redirect(prefixUrl('/example/heatmap-layer/'));