Skip to content
On this page

TOC

txt
docs/src
├── code-editors
├── components
├── nodejs
├── posix
│   └── wsl
├── ssh
├── vitePress
└── win32
bash
#!/usr/bin/env bash
# cygwin
C:\cygwin64\bin\bash.exe -l
c:/cygwin64/bin/zsh.exe -l
get-command bash -l
bash -l
cd /cygdrive/c/Users/$(whoami)/WebstormProjects/vite-press-docs/
tree -l docs/src
tree docs/src -d -L 2

# 
tree docs/src -d -L 2 -I node_modules -I components -I public
tree docs/src -d -L 2 -I node_modules -I components -I public -J
tree docs/src -d -L 2 -I node_modules -I components -I public -J -o ./temp/toc.json

# tree command with full path. with files for
tree docs/src -L 2 -I node_modules -I components -I public -J -f -o ./temp/toc.json
code ./temp/toc.json
# cp temp/toc.json docs/.vuepress/public/toc.json?
bash
node treeJSONToViteSideBar
# in verify-toc.test.mjs (for now)