Skip to content

Commit ee4a385

Browse files
author
Zach Hannum
committed
README
1 parent d1121bb commit ee4a385

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

README.md

+13-19
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
# MkDocs Autolinks Plugin
22

3-
* * *
4-
5-
*An MkDocs plugin that simplifies relative linking between documents.*
3+
An MkDocs plugin that simplifies relative linking between documents.
64

75
The Autolinks plugins allows you to link to pages and images within your MkDocs site without provided the entire relative path to the file in your document structure.
86

9-
## Installation
10-
11-
* * *
7+
## Setup
128

13-
Install the package with pip:
14-
15-
```sh
16-
cd mkdocs-autolinks-plugin
17-
pip install .
18-
```
9+
Install the plugin using pip:
1910

20-
Enable the plugin in your `mkdocs.yml`:
11+
`pip install mkdocs-autolinks-plugin`
2112

13+
Activate the plugin in `mkdocs.yml`:
2214
```yaml
2315
plugins:
24-
- autolinks
16+
- search
17+
- autolinks
2518
```
2619
27-
More information about plugins in the [MkDocs documentation](https://www.mkdocs.org/user-guide/plugins/).
20+
> **Note:** If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set, but now you have to enable it explicitly.
21+
22+
More information about plugins in the [MkDocs documentation][mkdocs-plugins].
2823

29-
## Usage
3024

31-
* * *
25+
## Usage
3226

3327
To use this plugin, simply create a link that only contains the filename of file you wish to link to.
3428

@@ -41,7 +35,7 @@ docs/
4135
│ └── syntax_guide.md
4236
├── software/
4337
│ ├── git_flow.md
44-
│ └── qnx.md
38+
│ └── code_reviews.md
4539
└── images/
4640
├── avatar.png
4741
└── example.jpg
@@ -68,4 +62,4 @@ The Autolinks plugin also works with `jpg` and `png` files:
6862
```markdown
6963
# onboarding.md
7064
![Avatar](avatar.png)
71-
```
65+
```

0 commit comments

Comments
 (0)