You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pages can export menus, those get merged into the state.
this allows automagical menu generation.
questions:
? how will we determine page order
using a 'priority' key in the exported menu object. no!not easy to change, every page has to be changed without overview over priorities
using /docsrc/app.mjs to export an array with menu item priorities. no!separates menu order from menu
using an array of strings within app.menu to determine order,
then replace those identifiers with the menu exported from the page.
// /docsrc/pages/page1.mjsexportconststate={menu: [{text: 'page1 link text',to: '/page1/',// should be derived automagicallyitems: [{text: 'subsection link text',to: '#subsection'},],},],}// /docsrc/pages/page2.mjsexportconststate={menu: {text: 'page2 link text',to: '/page2/',// should be derived automagically],}// /docsrc/app.mjsexportconststate={menu: [{text: 'index page link',to: '/'},['/page2/','/page1/','...'],],}
The text was updated successfully, but these errors were encountered:
abstract:
pages can export menus, those get merged into the state.
this allows automagical menu generation.
questions:
? how will we determine page order
no! not easy to change, every page has to be changed without overview over priorities
no! separates menu order from menu
then replace those identifiers with the menu exported from the page.
The text was updated successfully, but these errors were encountered: