From ca9220cee713fee0902a630b636b1190907947f1 Mon Sep 17 00:00:00 2001 From: Vinta Date: Fri, 27 Oct 2017 04:13:31 +0800 Subject: [PATCH] fancy theme: mkdocs-material https://github.com/squidfunk/mkdocs-material --- Makefile | 3 +-- mkdocs.yml | 30 +++++++++++++++++++++++------- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 3b5b08e..28fc9a7 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,7 @@ BASEDIR=$(CURDIR) DOCDIR=$(BASEDIR)/docs install: - pip install mkdocs - pip install mkdocs-bootswatch + pip install mkdocs mkdocs-material mkdocs-bootswatch link: ln -sf $(BASEDIR)/README.md $(DOCDIR)/index.md diff --git a/mkdocs.yml b/mkdocs.yml index ef7a5ec..d0ae59e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,9 +1,25 @@ -site_name: Awesome Python -site_url: https://awesome-python.com -site_description: A curated list of awesome Python frameworks, libraries and software -site_author: Vinta Chen -repo_url: https://github.com/vinta/awesome-python -theme: flatly -google_analytics: ['UA-510626-7', 'auto'] +site_name: 'Awesome Python' +site_url: 'https://awesome-python.com' +site_description: 'A curated list of awesome Python frameworks, libraries and software' +site_author: 'Vinta Chen' +repo_name: 'vinta/awesome-python' +repo_url: 'https://github.com/vinta/awesome-python' +theme: 'material' +extra: + feature: + tabs: false + palette: + primary: 'red' + accent: 'pink' + social: + - type: 'github' + link: 'https://github.com/vinta' + - type: 'twitter' + link: 'https://twitter.com/vinta' + - type: 'linkedin' + link: 'https://www.linkedin.com/in/vinta' +google_analytics: + - 'UA-510626-7' + - 'auto' pages: - "Life is short, you need Python.": "index.md"