Skip to content

Commit

Permalink
organize examples in folders (visgl#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored May 2, 2024
1 parent dff45bb commit ddda3ea
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions website/src/examples-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const sidebars = {
type: 'category',
label: '@deck.gl-community/editable-layers',
items: [
"editable-layers-editor",
"editable-layers-advanced"
"editable-layers/editor",
"editable-layers/advanced"
]
},
// {
Expand Down
5 changes: 0 additions & 5 deletions website/src/examples/editable-layers-advanced.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions website/src/examples/editable-layers-editor.mdx

This file was deleted.

5 changes: 5 additions & 0 deletions website/src/examples/editable-layers/advanced.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Advanced

import Demo from './advanced';

<Demo />
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, {Component} from 'react';
import {GITHUB_TREE} from '../constants/defaults';
import App from '../../../examples/editable-layers/advanced/src/example';
import {GITHUB_TREE} from '../../constants/defaults';
import App from '../../../../examples/editable-layers/advanced/src/example';

import {makeExample} from '../components';
import {makeExample} from '../../components';

class AdvancedDemo extends Component {
static title = 'Advanced';
Expand Down
5 changes: 5 additions & 0 deletions website/src/examples/editable-layers/editor.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Editor

import Demo from './editor';

<Demo />
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, {Component} from 'react';
import {GITHUB_TREE} from '../constants/defaults';
import {Example as App} from '../../../examples/editable-layers/editor/example';
import {GITHUB_TREE} from '../../constants/defaults';
import {Example as App} from '../../../../examples/editable-layers/editor/example';

import {makeExample} from '../components';
import {makeExample} from '../../components';

class EditorDemo extends Component {
static title = 'Editor';
Expand Down

0 comments on commit ddda3ea

Please sign in to comment.