Skip to content

Commit 61e26c3

Browse files
committed
Add redirect support and map /sources/ to /concepts/sources/
Fixes #229 Signed-off-by: Matt Ray <[email protected]>
1 parent c821ac6 commit 61e26c3

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3 AS builder
22

3-
RUN pip install mkdocs-material
3+
RUN pip install mkdocs-material mkdocs-redirects
44

55
COPY . /docs
66

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ all: build
2323

2424
install-mkdocs:
2525
ifndef HAS_MKDOCS
26-
pip3 install mkdocs
26+
pip3 install mkdocs-material mkdocs-redirects
2727
endif
2828

2929
help: ## Display this help

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This uses [`mkdocs`](https://www.mkdocs.org/)
55
Install it with:
66

77
```
8-
pip install mkdocs-material
8+
pip install mkdocs-material mkdocs-redirects
99
```
1010

1111
If you have Python3, you may need to run
1212

1313
```
14-
pip3 install mkdocs-material
14+
pip3 install mkdocs-material mkdocs-redirects
1515
```
1616

1717
## Serve the site locally
@@ -64,4 +64,3 @@ to get more details.
6464
This plugin is by no means part of [CNCF](https://www.cncf.io/) but we abide by
6565
its
6666
[code of conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md)
67-

mkdocs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,8 @@ markdown_extensions:
131131
- def_list
132132
- pymdownx.tasklist:
133133
custom_checkbox: true
134+
135+
plugins:
136+
- redirects:
137+
redirect_maps:
138+
'sources.md': 'concepts/sources.md'

0 commit comments

Comments
 (0)