Skip to content

Commit 1c60133

Browse files
committed
add ocular config update with example commented out
1 parent a8ff308 commit 1c60133

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

docs/table-of-contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
]
3838
},
3939
{
40-
"title": "Overview 2",
40+
"title": "API Reference",
4141
"entries": [
4242
{
4343
"entry": "docs/xy-plot"

packages/website/ocular-config.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
1+
/* eslint-env node */
22
// default location for table of contents
3+
const resolve = require('path').resolve;
34
const DOCS = require('../../docs/table-of-contents.json');
45
// const DEPENDENCIES = require('./package.json').dependencies;
56

@@ -12,6 +13,13 @@ module.exports = {
1213
DIR_NAME: `${__dirname}`,
1314

1415
EXAMPLES: [
16+
// {
17+
// title: 'Plots',
18+
// // Path to code to download
19+
// path: 'docs/examples/showcases/plots-showcase',
20+
// image: 'images/examples/demo-thumb-line.jpg',
21+
// componentUrl: resolve(__dirname, '../showcase/showcase-sections/plots-showcase.js')
22+
// },
1523
// {
1624
// title: 'my example',
1725
// path: 'examples/my-example/',
@@ -63,5 +71,13 @@ module.exports = {
6371

6472
// For showing star counts and contributors.
6573
// Should be like btoa('YourUsername:YourKey') and should be readonly.
66-
GITHUB_KEY: null
74+
GITHUB_KEY: null,
75+
76+
webpack: {
77+
resolve: {
78+
alias: {
79+
'react-vis': resolve(__dirname, '../react-vis/src/')
80+
}
81+
}
82+
}
6783
};

0 commit comments

Comments
 (0)