From 87b3deeed34305985e4cc5253d71ca6640efb1f3 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 28 Jan 2024 09:06:40 +0100 Subject: [PATCH] feat: restore sidebar's table of contents for nested pages --- docs/.vuepress/config.ts | 151 ++++++++--------------------------- docs/stumpwm/colours.org | 4 +- docs/stumpwm/commands.org | 4 +- docs/stumpwm/groups.org | 4 +- docs/stumpwm/init.org | 4 +- docs/stumpwm/keybindings.org | 4 +- docs/stumpwm/mode-line.org | 4 +- docs/stumpwm/theme.org | 4 +- docs/stumpwm/utilities.org | 4 +- 9 files changed, 48 insertions(+), 135 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index c532ecd..c15b90a 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -10,103 +10,6 @@ interface ChildPage { link: string; } -const emacsChildPages: ChildPage[] = [ - { - text: 'Basic Configuration', - link: '/emacs/basic-config', - }, - { - text: 'Custom Elisp', - link: '/emacs/custom-elisp', - }, - { - text: 'Package Manager', - link: '/emacs/package-manager', - }, - { - text: 'Keybindings Managers', - link: '/emacs/keybinding-managers', - }, - { - text: 'Packages - Autocompletion', - link: '/emacs/packages/autocompletion', - }, - { - text: 'Packages - Applications', - link: '/emacs/packages/applications', - }, - { - text: 'Packages - Editing', - link: '/emacs/packages/editing', - }, - { - text: 'Packages - Emacs Built-ins', - link: '/emacs/packages/emacs-builtin', - }, - { - text: 'Packages - Making My Life Easier', - link: '/emacs/packages/helpful', - }, - { - text: 'Packages - LaTeX', - link: '/emacs/packages/latex', - }, - { - text: 'Packages - Org Mode', - link: '/emacs/packages/org', - }, - { - text: 'Packages - Programming', - link: '/emacs/packages/programming', - }, - { - text: 'Packages - Visual Configuration', - link: '/emacs/packages/visual-config', - }, - { - text: 'Packages - Misc', - link: '/emacs/packages/misc', - }, - { - text: 'Keybindings', - link: '/emacs/keybindings', - }, -]; -const stumpwmChildPages: ChildPage[] = [ - { - text: 'Basic Configuration', - link: '/stumpwm/init', - }, - { - text: 'Colours', - link: '/stumpwm/colours', - }, - { - text: 'Mode-Line', - link: '/stumpwm/mode-line', - }, - { - text: 'Groups and Placement', - link: '/stumpwm/groups', - }, - { - text: 'Theme', - link: '/stumpwm/theme', - }, - { - text: 'Commands', - link: '/stumpwm/commands', - }, - { - text: 'Keybindings', - link: '/stumpwm/keybindings', - }, - { - text: 'Utilities', - link: '/stumpwm/utilities', - }, -]; - export default defineUserConfig({ lang: 'en-US', title: "Phundrak's Dotfiles", @@ -136,7 +39,23 @@ export default defineUserConfig({ text: 'Emacs', link: '/emacs/', collapsible: true, - children: emacsChildPages, + children: [ + '/emacs/basic-config', + '/emacs/custom-elisp', + '/emacs/package-manager', + '/emacs/keybinding-managers', + '/emacs/packages/autocompletion', + '/emacs/packages/applications', + '/emacs/packages/editing', + '/emacs/packages/emacs-builtin', + '/emacs/packages/helpful', + '/emacs/packages/latex', + '/emacs/packages/org', + '/emacs/packages/programming', + '/emacs/packages/visual-config', + '/emacs/packages/misc', + '/emacs/keybindings', + ], }, '/scripts', '/desktop', @@ -150,7 +69,16 @@ export default defineUserConfig({ text: 'StumpWM', link: '/stumpwm/', collapsible: true, - children: stumpwmChildPages, + children: [ + '/stumpwm/init', + '/stumpwm/colours', + '/stumpwm/mode-line', + '/stumpwm/groups', + '/stumpwm/theme', + '/stumpwm/commands', + '/stumpwm/keybindings', + '/stumpwm/utilities', + ], }, '/tmux', '/bootstrap', @@ -159,26 +87,11 @@ export default defineUserConfig({ link: '/deprecated/', collapsible: true, children: [ - { - text: 'AwesomeWM', - link: '/deprecated/awesome', - }, - { - text: 'i3', - link: '/deprecated/i3', - }, - { - text: 'Nano', - link: '/deprecated/nano', - }, - { - text: 'Polybar', - link: '/deprecated/polybar', - }, - { - text: 'Spacemacs', - link: '/deprecated/spacemacs', - }, + '/deprecated/awesome', + '/deprecated/i3', + '/deprecated/nano', + '/deprecated/polybar', + '/deprecated/spacemacs', ], }, ], diff --git a/docs/stumpwm/colours.org b/docs/stumpwm/colours.org index 69dd770..03c59d5 100644 --- a/docs/stumpwm/colours.org +++ b/docs/stumpwm/colours.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Colours +#+title: Colours #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Colours +* Colours ** Colours :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/colors.lisp diff --git a/docs/stumpwm/commands.org b/docs/stumpwm/commands.org index d198d4a..f193e54 100644 --- a/docs/stumpwm/commands.org +++ b/docs/stumpwm/commands.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Commands +#+title: Commands #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Commands +* Commands ** Commands :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/commands.lisp diff --git a/docs/stumpwm/groups.org b/docs/stumpwm/groups.org index bdaa76f..e5c07f5 100644 --- a/docs/stumpwm/groups.org +++ b/docs/stumpwm/groups.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Groups and Placement +#+title: Groups and Placement #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Groups and Placement +* Groups and Placement ** Groups and Placement :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/placement.lisp :noweb yes diff --git a/docs/stumpwm/init.org b/docs/stumpwm/init.org index 2834291..dbc1000 100644 --- a/docs/stumpwm/init.org +++ b/docs/stumpwm/init.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Basic Configuration +#+title: Basic Configuration #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Basic Configuration +* Basic Configuration ** Init File :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/init.lisp diff --git a/docs/stumpwm/keybindings.org b/docs/stumpwm/keybindings.org index 55cdde9..5932f8d 100644 --- a/docs/stumpwm/keybindings.org +++ b/docs/stumpwm/keybindings.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Keybindings +#+title: Keybindings #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Keybindings +* Keybindings ** Keybinds :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/keybindings.lisp :noweb yes diff --git a/docs/stumpwm/mode-line.org b/docs/stumpwm/mode-line.org index 94294a4..a44b95f 100644 --- a/docs/stumpwm/mode-line.org +++ b/docs/stumpwm/mode-line.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Mode-Line +#+title: Mode-Line #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Mode-Line +* Mode-Line ** Mode-Line :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/modeline.lisp diff --git a/docs/stumpwm/theme.org b/docs/stumpwm/theme.org index 810fa43..34d0ce4 100644 --- a/docs/stumpwm/theme.org +++ b/docs/stumpwm/theme.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Theme +#+title: Theme #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Theme +* Theme ** Theme :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/theme.lisp :noweb yes diff --git a/docs/stumpwm/utilities.org b/docs/stumpwm/utilities.org index f84a647..a5577c1 100644 --- a/docs/stumpwm/utilities.org +++ b/docs/stumpwm/utilities.org @@ -1,8 +1,8 @@ -#+title: StumpWM — Utilities +#+title: Utilities #+setupfile: ../headers #+property: header-args:emacs-lisp :tangle no :exports results :cache yes :noweb yes -* StumpWM — Utilities +* Utilities ** Utilities :PROPERTIES: :header-args:lisp: :mkdirp yes :tangle ~/.stumpwm.d/utilities.lisp :noweb yes