From 04c0ba830dd4c6f8176866c50278d28b91d1419d Mon Sep 17 00:00:00 2001 From: Lint <44368997+C0derLint@users.noreply.github.com> Date: Wed, 27 Feb 2019 13:21:42 +0530 Subject: [PATCH] Update .travis.yml for automatic deployment --- .travis.yml | 20 +++++++++++++++----- mkdocs.yml | 9 ++++----- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 44c9735..9b09dc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,20 @@ -language: ruby +language: python -rvm: - - 2.2 +python: + - "3.6" before_script: - - gem install awesome_bot + - pip install mkdocs mkdocs-material script: - - awesome_bot README.md --allow-dupe --white-list pyparsing,graphviz.org + - cp README.md docs/index.md + - mkdocs build + +deploy: + provider: pages + local-dir: "site" + skip-cleanup: true + github-token: $GITHUB_TOKEN + keep-history: true + on: + branch: master diff --git a/mkdocs.yml b/mkdocs.yml index aa01d27..c99c6f2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,13 +4,12 @@ site_description: 'A curated list of awesome Python frameworks, libraries and so site_author: 'Vinta Chen' repo_name: 'vinta/awesome-python' repo_url: 'https://github.com/vinta/awesome-python' -theme: 'material' -extra: - feature: - tabs: false +theme: + name: 'material' palette: primary: 'red' accent: 'pink' +extra: social: - type: 'github' link: 'https://github.com/vinta' @@ -23,5 +22,5 @@ google_analytics: - 'auto' extra_css: - css/extra.css -pages: +nav: - "Life is short, you need Python.": "index.md"