Skip to content

Commit d535b82

Browse files
authored
Merge pull request vinta#1247 from C0derLint/travy
Update .travis.yml for automatic deployment
2 parents a10314a + 04c0ba8 commit d535b82

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.travis.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1-
language: ruby
1+
language: python
22

3-
rvm:
4-
- 2.2
3+
python:
4+
- "3.6"
55

66
before_script:
7-
- gem install awesome_bot
7+
- pip install mkdocs mkdocs-material
88

99
script:
10-
- awesome_bot README.md --allow-dupe --white-list pyparsing,graphviz.org
10+
- cp README.md docs/index.md
11+
- mkdocs build
12+
13+
deploy:
14+
provider: pages
15+
local-dir: "site"
16+
skip-cleanup: true
17+
github-token: $GITHUB_TOKEN
18+
keep-history: true
19+
on:
20+
branch: master

mkdocs.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ site_description: 'A curated list of awesome Python frameworks, libraries and so
44
site_author: 'Vinta Chen'
55
repo_name: 'vinta/awesome-python'
66
repo_url: 'https://github.com/vinta/awesome-python'
7-
theme: 'material'
8-
extra:
9-
feature:
10-
tabs: false
7+
theme:
8+
name: 'material'
119
palette:
1210
primary: 'red'
1311
accent: 'pink'
12+
extra:
1413
social:
1514
- type: 'github'
1615
link: 'https://github.com/vinta'
@@ -23,5 +22,5 @@ google_analytics:
2322
- 'auto'
2423
extra_css:
2524
- css/extra.css
26-
pages:
25+
nav:
2726
- "Life is short, you need Python.": "index.md"

0 commit comments

Comments
 (0)