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
{{ message }}
Repository navigation
export menu fragments from /docsrc/pages/*.mjs #57
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/','...'],],}
Activity
jaeh commentedon Jan 3, 2020
this currently is not possible, state preparation has to change.
first, the state has to be built once for all pages before they get transpiled,