Skip to content

Rename a file

mkdocs.yml

# This example shows how to rename a single file in the doc site.
site_name: ok-with-rename
plugins:
  - simple:
      semiliterate:
      - pattern: '^foo.bar$'
        destination: baz.md

Input

ok-with-rename/
├── foo.bar
├── mkdocs.yml
└── README.md

Output

site/
├── assets/
│   ├── images/
│   │   └── favicon.png
│   ├── javascripts/
│   │   ├── lunr/
│   │   │   └── min/
│   │   └── workers/
│   └── stylesheets/
├── baz/
│   └── index.html
└── index.html