Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
new ocular-gatsby website
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome committed Sep 4, 2019
1 parent 28a5d09 commit f2d1379
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 257 deletions.
2 changes: 0 additions & 2 deletions website.old/.eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions website.old/html.config.js

This file was deleted.

14 changes: 0 additions & 14 deletions website.old/package.json

This file was deleted.

27 changes: 0 additions & 27 deletions website.old/src/config.js

This file was deleted.

35 changes: 0 additions & 35 deletions website.old/src/mdRoutes.js

This file was deleted.

13 changes: 0 additions & 13 deletions website.old/src/styles/_variables.scss

This file was deleted.

Empty file removed website.old/src/styles/index.scss
Empty file.
2 changes: 0 additions & 2 deletions website.old/static/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion website/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('ocular-gatsby/gatsby-browser');
module.exports.wrapPageElement = require('ocular-gatsby/gatsby-browser').wrapPageElement;
3 changes: 1 addition & 2 deletions website/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const {getGatsbyConfig, registerReactComponent} = require('ocular-gatsby/api');
const {getGatsbyConfig} = require('ocular-gatsby/api');

const config = require('./ocular-config');

module.exports = getGatsbyConfig(config);

2 changes: 1 addition & 1 deletion website/gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('ocular-gatsby/gatsby-ssr');
module.exports.wrapPageElement = require('ocular-gatsby/gatsby-ssr').wrapPageElement;
78 changes: 47 additions & 31 deletions website/ocular-config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,63 @@
const DOCS = require("../docs/table-of-contents.json");

// default location for table of contents
const DOCS = require('../docs/table-of-contents.json');

module.exports = {
DOC_FOLDER: "/Users/jerome/code/viewport-mercator-project/website/../docs/",
ROOT_FOLDER: "/Users/jerome/code/viewport-mercator-project/website/../",
// Adjusts amount of debug information from ocular-gatsby
logLevel: 4,

DOC_FOLDER: `${__dirname}/../docs/`,
ROOT_FOLDER: `${__dirname}/../`,
DIR_NAME: `${__dirname}`,

EXAMPLES: [
// {title: 'my example', path: 'examples/my-example/', image: 'images/my-example.jpg'}
// {
// title: 'my example',
// path: 'examples/my-example/',
// image: 'images/my-example.jpg',
// componentUrl: '../examples/app.js'
// }
],
// your table of contents go there
DOCS,

THEME_OVERRIDES: [
// {key: 'primaryFontFamily', value: 'serif'}
],

PROJECT_TYPE: "github",
PROJECT_NAME: "viewport-mercator-project",
PROJECT_ORG: "uber-common",
PROJECT_URL: "https://github.com/uber-common/viewport-mercator-project",
PROJECT_DESC: "Utilities for working with Web Mercator Projections",
WEBSITE_PATH: "/website/",
PROJECT_TYPE: 'github',
PROJECT_NAME: 'viewport-mercator-project',
PROJECT_ORG: 'uber-common',
PROJECT_URL: 'https://github.com/uber-common/viewport-mercator-project',
PROJECT_DESC: 'Utilities for working with Web Mercator Projections',
PATH_PREFIX: '',

FOOTER_LOGO: "",
FOOTER_LOGO: '',

HOME_PATH: "/",
HOME_HEADING: "Utilities for working with Web Mercator Projections",
HOME_PATH: '/',
HOME_HEADING: 'Utilities for working with Web Mercator Projections',
HOME_RIGHT: null,
HOME_BULLETS: [],
HOME_BULLETS: [
],

PROJECTS: {
// 'Project name': 'http://project.url',
},
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/'
}
],
ADDITIONAL_LINKS: [
// {name: 'link label', href: 'http://link.url'}
],
Expand All @@ -37,18 +66,5 @@ module.exports = {

// For showing star counts and contributors.
// Should be like btoa('YourUsername:YourKey') and should be readonly.
GITHUB_KEY: null,

// TODO/ib - from gatsby starter, clean up
siteTitle: "viewport-mercator-project", // Site title.
siteTitleAlt: "viewport-mercator-project", // Alternative site title for SEO.
siteLogo: "/logos/logo-1024.png", // Logo used for SEO and manifest.
siteUrl: "https://ocular", // Domain of your website without pathPrefix.
pathPrefix: "/viewport-mercator-project", // Prefixes all links. For cases when deployed to example.github.io/gatsby-advanced-starter/.
siteDescription: "viewport-mercator-project", // Website description used for RSS feeds/meta description tag.
siteRss: "/rss.xml", // Path to the RSS file.
dateFromFormat: "YYYY-MM-DD", // Date format used in the frontmatter.
dateFormat: "DD/MM/YYYY", // Date format for display.
userName: "WebGL User", // Username to display in the author segment.
copyright: "Copyright © 2019 Uber. MIT Licensed" // Copyright string for the footer of the website and RSS feed.
GITHUB_KEY: null
};
31 changes: 18 additions & 13 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
{
"description": "A website built with ocular",
"license": "MIT",
"keywords": [
"ocular"
],
"name": "viewport-mercator-project",
"version": "1.0.0",
"description": "Utilities for working with Web Mercator Projections",
"main": "index.js",
"scripts": {
"clean": "rm -rf ./.cache ./public",
"develop": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve"
"start": "yarn clean && yarn develop",
"build": "yarn clean && yarn clean-public && gatsby build",
"clean": "rm -rf ./.cache",
"clean-public": "rm -rf ./public",
"develop": "gatsby develop --port=801",
"serve": "gatsby serve",
"deploy": "NODE_DEBUG=gh-pages gh-pages -d public"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"gatsby": "2.0.85",
"ocular-gatsby": "1.0.0-alpha.4"
},
"devDependencies": {}
"gatsby": "^2.15.6",
"ocular-gatsby": "^1.0.0",
"react": "^16.9.0",
"react-dom": "^16.9.0"
}
}
106 changes: 0 additions & 106 deletions website/src/components/site-query.jsx

This file was deleted.

0 comments on commit f2d1379

Please sign in to comment.