Skip to content

Commit

Permalink
Try docsify routerMode: "history"
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Nov 9, 2023
1 parent 053cf07 commit 491512f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 22 deletions.
28 changes: 14 additions & 14 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!-- - [Project Home](https://mar10.github.io/wunderbaum/) -->

- User Guide
- [Quick start](/tutorial/quick_start.md)
- [Initialization](/tutorial/tutorial_initialize.md)
- [Events](/tutorial/tutorial_events.md)
- [Render](/tutorial/tutorial_render.md)
- [Grid](/tutorial/tutorial_grid.md)
- [Edit](/tutorial/tutorial_edit.md)
- [Drag'n'Drop](/tutorial/tutorial_dnd.md)
- [Filter](/tutorial/tutorial_filter.md)
- [Keyboard](/tutorial/tutorial_keyboard.md)
- [Select](/tutorial/tutorial_select.md)
- [Advanced](/tutorial/tutorial_advanced.md)
- [Concepts](/tutorial/concepts.md)
- [Migration](/tutorial/migrate.md)
- [Quick start](/tutorial/quick_start)
- [Initialization](/tutorial/tutorial_initialize)
- [Events](/tutorial/tutorial_events)
- [Render](/tutorial/tutorial_render)
- [Grid](/tutorial/tutorial_grid)
- [Edit](/tutorial/tutorial_edit)
- [Drag'n'Drop](/tutorial/tutorial_dnd)
- [Filter](/tutorial/tutorial_filter)
- [Keyboard](/tutorial/tutorial_keyboard)
- [Select](/tutorial/tutorial_select)
- [Advanced](/tutorial/tutorial_advanced)
- [Concepts](/tutorial/concepts)
- [Migration](/tutorial/migrate)
- [API Reference](/wunderbaum/api/index.html ":ignore")
- [Contribute](/tutorial/contribute.md)
- [Contribute](/tutorial/contribute)
- [Changelog](https://github.com/mar10/wunderbaum/blob/main/CHANGELOG.md)
- [![GitHub version](https://img.shields.io/github/v/release/mar10/wunderbaum?display_name=tag&sort=semver)](https://github.com/mar10/wunderbaum/releases/latest)

Expand Down
19 changes: 13 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">

<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css"> -->
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify/themes/dark.css"> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css">
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css">
<!-- Settings for -->
<style>
:root {
Expand All @@ -25,6 +26,11 @@
/* --base-color: red; */
}
</style>
<!-- Docsify v4 -->
<script defer src="https://cdn.jsdelivr.net/npm/docsify@4"></script>
<script defer src="https://cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
</head>

<body>
Expand All @@ -37,18 +43,19 @@
window.$docsify = {
name: 'Wunderbaum',
repo: 'mar10/wunderbaum',
// routerMode: "history", // Allow google indexing(?). Default: hash
routerMode: "history", // Allow google indexing(?). Default: hash
loadSidebar: true,
auto2top: true,
// homepage: 'home.md', // Default: 'README.md'
// // Or use the readme in your repo
// homepage:
// 'https://raw.githubusercontent.com/docsifyjs/docsify/master/README.md',

// loadNavbar: true,
logo: '/assets/tree_logo_32.png',
coverpage: true,
}
</script>
<!-- Docsify v4 -->
<script src="https://cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
</body>

</html>
2 changes: 2 additions & 0 deletions docs/tutorial/tutorial_edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ const tree = new Wunderbaum({
?> See also a [live demo](https://mar10.github.io/wunderbaum/demo/#demo-plain),
activate a node, and hit <code>F2</code>.
?> See also [EditOptionsType](https://mar10.github.io/wunderbaum/api/types/types.EditOptionsType.html).
### Related Methods
- `tree.isEditingTitle()`
Expand Down
5 changes: 3 additions & 2 deletions docs/tutorial/tutorial_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ Depending on the event type, the event handler functions can return a value,
that is used by the tree to control the default behavior. For example, the
`beforeActivate` event handler can return `false` to prevent activation of a node.

The event handler functions are called with a single argument, the
[Tree Event](https://mar10.github.io/wunderbaum/api/interfaces/types.WbTreeEventType.html).
The event handler functions are called with a single argument, of type
[WbTreeEventType](https://mar10.github.io/wunderbaum/api/interfaces/types.WbTreeEventType.html).

The event object contains the following properties:

```js
Expand Down
2 changes: 2 additions & 0 deletions docs/tutorial/tutorial_filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
?> See also a [live demo](https://mar10.github.io/wunderbaum/demo/#demo-plain)
and enter some text in the _Filter_ control at the top.

?> See also [FilterOptionsType](https://mar10.github.io/wunderbaum/api/types/types.FilterOptionsType.html).

### Related Methods

- `util.foo()`
Expand Down
3 changes: 3 additions & 0 deletions docs/tutorial/tutorial_initialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Common options include:
</dd>
</dl>

?> See [WunderbaumOptions](https://mar10.github.io/wunderbaum/api/interfaces/wb_options.WunderbaumOptions.html)
for a complete list of options.

### Dynamic Options

Some node options can be defined in a flexible way, using a dynamic pattern.
Expand Down

0 comments on commit 491512f

Please sign in to comment.