-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website: Move to
gatsby-theme-ocular
(#545)
- Loading branch information
Showing
9 changed files
with
1,382 additions
and
1,343 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,111 @@ | ||
const {getGatsbyConfig} = require('ocular-gatsby/api'); | ||
const resolve = require('path').resolve; | ||
const DOC_TABLE_OF_CONTENTS = require('../docs/table-of-contents.json'); | ||
|
||
const config = require('./ocular-config'); | ||
module.exports = { | ||
plugins: [ | ||
{ | ||
resolve: `gatsby-theme-ocular`, | ||
options: { | ||
logLevel: 1, // Adjusts amount of debug information from ocular-gatsby | ||
|
||
const gatsbyConfig = getGatsbyConfig(config); | ||
// Folders | ||
DIR_NAME: `${__dirname}`, | ||
ROOT_FOLDER: `${__dirname}/../`, | ||
|
||
gatsbyConfig.plugins.push({resolve: 'gatsby-plugin-no-sourcemaps'}); | ||
DOCS: DOC_TABLE_OF_CONTENTS, | ||
DOC_FOLDERS: [ | ||
`${__dirname}/../docs/`, | ||
`${__dirname}/../modules/`, | ||
`${__dirname}/../arrowjs/` | ||
], | ||
|
||
// Ensure gatsby-source-filesystem doesn't pick up too many files in modules directory | ||
// https://www.gatsbyjs.org/packages/gatsby-source-filesystem/#options | ||
gatsbyConfig.plugins.forEach(plugin => { | ||
if (plugin && typeof plugin === 'object' && plugin.resolve === 'gatsby-source-filesystem') { | ||
plugin.options = plugin.options || {}; | ||
plugin.options.ignore = plugin.options.ignore || []; | ||
plugin.options.ignore.push('**/modules/**/test'); | ||
plugin.options.ignore.push('**/modules/**/src'); | ||
plugin.options.ignore.push('**/modules/**/dist'); | ||
plugin.options.ignore.push('**/modules/**/wip'); | ||
plugin.options.ignore.push('**/modules/**/*.json'); | ||
plugin.options.ignore.push('**/arrowjs/**/*.json'); | ||
} | ||
}); | ||
PROJECT_TYPE: 'github', | ||
|
||
// NOTE: uncomment to debug config | ||
// console.log(JSON.stringify(gatsbyConfig, null, 2)); | ||
PROJECT_NAME: 'loaders.gl', | ||
PROJECT_ORG: 'uber-web', | ||
PROJECT_URL: 'https://github.com/uber-web/loaders.gl', | ||
PROJECT_DESC: 'Loaders for Big Data Visualization', | ||
PATH_PREFIX: '/', | ||
|
||
module.exports = gatsbyConfig; | ||
FOOTER_LOGO: '', | ||
|
||
GA_TRACKING: null, | ||
|
||
// For showing star counts and contributors. | ||
// Should be like btoa('YourUsername:YourKey') and should be readonly. | ||
GITHUB_KEY: null, | ||
|
||
HOME_PATH: '/', | ||
|
||
HOME_HEADING: 'Loaders for Big Data Visualization', | ||
|
||
HOME_RIGHT: null, | ||
|
||
HOME_BULLETS: [ | ||
{ | ||
text: 'A collection of the best open source loaders', | ||
desc: 'Parsers and encoders for many major 3D, geospatial and tabular formats.', | ||
img: 'images/icon-high-precision.svg' | ||
}, | ||
{ | ||
text: 'Framework Agnostic', | ||
desc: 'Loaders and Writers can be used with any visualization framework.', | ||
img: 'images/icon-high-precision.svg' | ||
}, | ||
{ | ||
text: 'Works in Browser, Worker Threads and Node.js', | ||
desc: 'Move your code around and rely on your loaders to keep working.', | ||
img: 'images/icon-high-precision.svg' | ||
} | ||
], | ||
|
||
PROJECTS: [ | ||
{ | ||
name: 'deck.gl', | ||
url: 'https://deck.gl' | ||
}, | ||
{ | ||
name: 'luma.gl', | ||
url: 'https://luma.gl' | ||
}, | ||
{ | ||
name: 'react-map-gl', | ||
url: 'https://uber.github.io/react-map-gl' | ||
}, | ||
{ | ||
name: 'nebula.gl', | ||
url: 'https://nebula.gl/' | ||
} | ||
], | ||
|
||
LINK_TO_GET_STARTED: 'docs/developer-guide/get-started', | ||
|
||
ADDITIONAL_LINKS: [], | ||
|
||
INDEX_PAGE_URL: resolve(__dirname, './templates/index.jsx'), | ||
|
||
EXAMPLES: [ | ||
// { | ||
// title: 'Point Clouds & Meshes', | ||
// image: 'images/example-pointcloud.png', | ||
// componentUrl: resolve(__dirname, '../examples/pointcloud/app.js'), | ||
// path: 'examples/pointcloud' | ||
// }, | ||
{ | ||
title: '3D Tiles', | ||
image: 'images/example-3d-tiles.png', | ||
componentUrl: resolve(__dirname, '../examples/deck.gl/3d-tiles/app.js'), | ||
path: 'examples/3d-tiles' | ||
}, | ||
{ | ||
title: 'glTF', | ||
image: 'images/example-gltf.jpg', | ||
componentUrl: resolve(__dirname, './templates/example-gltf.jsx'), | ||
path: 'examples/gltf' | ||
} | ||
] | ||
} | ||
}, | ||
{resolve: 'gatsby-plugin-no-sourcemaps'} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.