Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Hannum committed Jan 14, 2020
1 parent d1121bb commit ee4a385
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
# MkDocs Autolinks Plugin

* * *

*An MkDocs plugin that simplifies relative linking between documents.*
An MkDocs plugin that simplifies relative linking between documents.

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.

## Installation

* * *
## Setup

Install the package with pip:

```sh
cd mkdocs-autolinks-plugin
pip install .
```
Install the plugin using pip:

Enable the plugin in your `mkdocs.yml`:
`pip install mkdocs-autolinks-plugin`

Activate the plugin in `mkdocs.yml`:
```yaml
plugins:
- autolinks
- search
- autolinks
```
More information about plugins in the [MkDocs documentation](https://www.mkdocs.org/user-guide/plugins/).
> **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.

More information about plugins in the [MkDocs documentation][mkdocs-plugins].

## Usage

* * *
## Usage

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

Expand All @@ -41,7 +35,7 @@ docs/
│ └── syntax_guide.md
├── software/
│ ├── git_flow.md
│ └── qnx.md
│ └── code_reviews.md
└── images/
├── avatar.png
└── example.jpg
Expand All @@ -68,4 +62,4 @@ The Autolinks plugin also works with `jpg` and `png` files:
```markdown
# onboarding.md
![Avatar](avatar.png)
```
```

0 comments on commit ee4a385

Please sign in to comment.