This system requires a markdown repo. Use chevere/docs as example/base.
- Parses folders containing
.md
- Works with N sub-levels
README.md
for indexes.file-1.md
is 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
public/
- Use it for public content such as pics, icons and the manifest file. A file at
.vuepress/public/logo.svg
will 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.