An open API service indexing awesome lists of open source software.

https://github.com/sander76/mkdocs-abs-rel-plugin

MkDocs plugin for converting absolute links to relative ones.
https://github.com/sander76/mkdocs-abs-rel-plugin

Last synced: 6 months ago
JSON representation

MkDocs plugin for converting absolute links to relative ones.

Awesome Lists containing this project

README

          

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![Build Status](https://travis-ci.org/sander76/mkdocs-abs-rel-plugin.svg?branch=master)](https://travis-ci.org/sander76/mkdocs-abs-rel-plugin)

# Mkdocs absolute to relative link converter

Mkdocs officially only supports relative links. While this makes sense there are situation where it is useful to make use of absolute links. For example when creating a document with absolute links to an image folder.
If that file is to be moved later on, links are kept intact.

## Installation

```bash
pip install mkdocs-abs-rel-plugin
```

## Usage

In your `mkdocs.yml` file add `abs-to-rel` to the plugins entry:

```yaml
plugins:
- abs-to-rel
```