tree

mdu tree prints the titles of the detected Markdown pages as an indented tree. A folder's README.md is the parent page; the other pages in the folder and in its subfolders appear beneath it.

Usage

mdu tree [PATH] [options]

The alias mdu print runs the same command. See Paths and file search for the default source folder and common options for --pattern and --hidden.

Example

$ mdu tree ./ProjectDocs/Usage
Usage
  fix
  render
  tree
  pdf
  page
  serve
  lint
    Rule 5
    Rule 2
    Rule 3
    Lint Rules Reference

Each line is a page title, taken from the title front matter or the level-one heading. Pages appear in the order they are found on disk; the rendered navigation sorts them with navigation.order.

Use another pattern when your pages have a different extension:

mdu tree ./ProjectDocs --pattern "*.markdown"

Search documentation

Press Esc to close

Start typing to search the documentation.

Media settings

Choose which providers may load videos automatically across this site. Your choices are stored in this browser.