mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 14:35:26 +02:00
not module
This commit is contained in:
parent
5177227d1c
commit
bcfef10df4
2 changed files with 2 additions and 2 deletions
|
@ -41,12 +41,12 @@ export default class Page {
|
||||||
* @return {Promise<TableOfContent>}
|
* @return {Promise<TableOfContent>}
|
||||||
*/
|
*/
|
||||||
async createTableOfContent() {
|
async createTableOfContent() {
|
||||||
const { default: TableOfContent } = await import(/* webpackChunkName: "table-of-content" */ './table-of-content');
|
const { default: TableOfContent } = await import(/* webpackChunkName: "table-of-content" */ '../classes/table-of-content');
|
||||||
|
|
||||||
return new TableOfContent({
|
return new TableOfContent({
|
||||||
tagSelector:
|
tagSelector:
|
||||||
'h2.block-header--anchor,' +
|
'h2.block-header--anchor,' +
|
||||||
'h3.block-header--anchor,' +
|
'h3.block-header--anchor,' +
|
||||||
'h4.block-header--anchor',
|
'h4.block-header--anchor',
|
||||||
tocWrapperSelector: '#layout-sidebar-right',
|
tocWrapperSelector: '#layout-sidebar-right',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue