Skip to content

Commit

Permalink
Merge 6b25404 into 2f7504c
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Apr 12, 2019
2 parents 2f7504c + 6b25404 commit 85dc6ef
Show file tree
Hide file tree
Showing 145 changed files with 4,299 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions website-gatsby/package.json
@@ -0,0 +1,28 @@
{
"description": "A website built with ocular",
"license": "MIT",
"keywords": [
"ocular"
],
"main": "index.js",
"scripts": {
"start": "yarn develop",
"clean": "rm -rf ./.cache ./public",
"develop": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve"
},
"dependencies": {
"@loaders.gl/core": "^0.8.0",
"@loaders.gl/draco": "^0.8.0",
"@loaders.gl/gltf": "^0.8.1",
"@probe.gl/stats-widget": "^3.0.1",
"math.gl": "^2.3.1"
},
"devDependencies": {
"gatsby": "2.2.0-rc.2",
"gatsby-plugin-styletron": "^3.0.5",
"ocular-gatsby": "1.0.0-alpha.17",
"sharp": "0.21.1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
14 changes: 14 additions & 0 deletions website/README.md
@@ -0,0 +1,14 @@
This is the source code of the demo website

## Developing

npm install
export MAPBOX_ACCESS_TOKEN=<insert_your_token> && npm start

## About the blog

The blog is a standalone, static website. Its contents are referenced by this demo app in the **blog** page. When publishing the demo site a build of the blog is pulled from the `origin/blog` branch to the `dist/` folder.

We use [Jekyll](https://jekyllrb.com/) to render the blog. It handles things such as templating, pagination, tagging and RSS feed for us. The source of the blog is on its own separate branch because:
- It does not depend on anything in master
- Only team members can publish articles, therefore it should not be pulled/forked with the source code.
34 changes: 34 additions & 0 deletions website/contents/demos.js
@@ -0,0 +1,34 @@
import {setContextDefaults} from 'luma.gl';
setContextDefaults({webgl2: true});

export {default as InstancingDemo} from '../../examples/core/instancing/app.js';
export {default as CubemapDemo} from '../../examples/core/cubemap/app.js';
// export {default as CustomPickingDemo} from '../../examples/core/custom-picking/app.js';
// export {default as DeferredRenderingDemo} from '../../examples/core/deferred-rendering/app.js';
export {default as MandelbrotDemo} from '../../examples/core/mandelbrot/app.js';
export {default as FragmentDemo} from '../../examples/core/fragment/app.js';
// export {default as ParticlesDemo} from '../../examples/core/particles/app.js';
// export {default as PersistenceDemo} from '../../examples/core/persistence/app.js';
export {default as PickingDemo} from '../../examples/core/picking/app.js';
export {default as ShadowmapDemo} from '../../examples/core/shadowmap/app.js';
export {default as TransformFeedbackDemo} from '../../examples/core/transform-feedback/app.js';
export {default as DOFDemo} from '../../examples/core/dof/app.js';
export {default as TransformDemo} from
'../../examples/core/transform/app.js';

export {default as Lesson01} from '../../examples/lessons/01/app.js';
export {default as Lesson02} from '../../examples/lessons/02/app.js';
export {default as Lesson03} from '../../examples/lessons/03/app.js';
export {default as Lesson04} from '../../examples/lessons/04/app.js';
export {default as Lesson05} from '../../examples/lessons/05/app.js';
export {default as Lesson06} from '../../examples/lessons/06/app.js';
export {default as Lesson07} from '../../examples/lessons/07/app.js';
export {default as Lesson08} from '../../examples/lessons/08/app.js';
export {default as Lesson09} from '../../examples/lessons/09/app.js';
export {default as Lesson10} from '../../examples/lessons/10/app.js';
export {default as Lesson11} from '../../examples/lessons/11/app.js';
export {default as Lesson12} from '../../examples/lessons/12/app.js';
export {default as Lesson13} from '../../examples/lessons/13/app.js';
export {default as Lesson14} from '../../examples/lessons/14/app.js';
export {default as Lesson15} from '../../examples/lessons/15/app.js';
export {default as Lesson16} from '../../examples/lessons/16/app.js';
2 changes: 2 additions & 0 deletions website/contents/framework.js
@@ -0,0 +1,2 @@
export const FRAMEWORK_NAME = 'luma.gl';
export const FRAMEWORK_GITHUB_URL = 'https://github.com/uber/luma.gl';
7 changes: 7 additions & 0 deletions website/contents/links.js
@@ -0,0 +1,7 @@
// TODO/xiaoji move to a GitHub file?
export default {
'deck.gl': 'https://uber.github.io/deck.gl',
'luma.gl': 'https://uber.github.io/luma.gl',
'react-map-gl': 'https://uber.github.io/react-map-gl',
'react-vis': 'https://uber.github.io/react-vis'
};

0 comments on commit 85dc6ef

Please sign in to comment.