feat: restore sidebar's table of contents for nested pages
All checks were successful
deploy / build (push) Successful in 2m27s

This commit is contained in:
Lucien Cartier-Tilet 2024-01-28 09:06:40 +01:00
parent 955c9aea3c
commit 87b3deeed3
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
9 changed files with 48 additions and 135 deletions

View File

@ -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',
],
},
],

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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