Configure mkdocs with mkdocs-material and friends

This commit is contained in:
Aarni Koskela 2018-04-24 13:30:17 +03:00
parent 34314254f3
commit 13ace4a5c7
5 changed files with 39 additions and 0 deletions

3
.gitignore vendored
View file

@ -33,3 +33,6 @@ e2e-tests
coverage.txt coverage.txt
test/e2e/e2e\.test test/e2e/e2e\.test
# mkdocs
/site

6
docs/.pages Normal file
View file

@ -0,0 +1,6 @@
arrange:
- index.md
- deploy
- user-guide
- examples
- ...

1
docs/deploy/.pages Normal file
View file

@ -0,0 +1 @@
title: Deployment

24
mkdocs.yml Normal file
View file

@ -0,0 +1,24 @@
site_name: NGINX Ingress Controller
strict: true
repo_name: 'kubernetes/ingress-nginx'
repo_url: 'https://github.com/kubernetes/ingress-nginx'
markdown_extensions:
- admonition
- codehilite
- pymdownx.inlinehilite
- pymdownx.tasklist(custom_checkbox=true)
- toc:
permalink: true
theme:
name: material
feature:
tabs: true
logo:
icon: 'public' # globe icon
palette:
primary: 'teal'
accent: 'green'
plugins:
- search
- awesome-pages:
collapse_single_pages: true

5
requirements-docs.txt Normal file
View file

@ -0,0 +1,5 @@
mkdocs-material~=2.7.0
mkdocs-awesome-pages-plugin~=1.2.0
mkdocs~=0.17.0
pygments~=2.2.0
pymdown-extensions~=4.10