This system requires a markdown repo. Use chevere/docs as example/base.
- Parses folders containing
.md - Works with N sub-levels
README.mdfor indexes.file-1.mdis automatic named toFile 1.
| Structure | Navigation | Sidebar |
|---|---|---|
| Files | Dropdown | Auto |
| Files with readme | Link | Combined |
| Files with readme + sub-folders | Link | Combined |
| Sub-folders | Grouped dropdown | Auto |
Use .php files to customize the document names / links. Must use <file>.md to flag markdown documents and folder/ to flag filesystem folders.
The sorting.php file enables to customize the menu sorting for nav and sidebar.
<?php
return [
'README.md',
'file-1.md',
'folder-1/',
];The naming.php file enables to customize the names used by the nodes (files and folders) and it will affect the link display for nav and sidebar.
<?php
return [
'README.md' => 'Intro',
'file-1.md' => '-> File 1',
'folder-1/' => '📁 Folder 1',
];The sidebar.php file enables to override the sidebar.
<?php
return 'auto';The .vuepress/ folder is required to config VuePress.
config-project.js- Injects config values to
config.js
- Injects config values to
enhanceApp-project.js- Injects custom Vue components to the VuePress app
public/- Use it for public content such as pics, icons and the manifest file. A file at
.vuepress/public/logo.svgwill resolve to/logo.svg
- Use it for public content such as pics, icons and the manifest file. A file at
styles/- Uses to store styling (CSS) properties.