Skip to content

Commit 55362c9

Browse files
61 mkdocs material fix (#62)
* Fix for mkdocs-material version 5 * Version bump * Travis Updated dependency versions * Fixed deps versions in doc + corrected mkdoc logos + updated icon
1 parent 0117311 commit 55362c9

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
lines changed

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ install:
4444
- sudo apt-get install tree
4545
- pip3 install -U pylint
4646
- sudo apt-get install enchant # needed for pyenchant
47-
- pip3 install pyenchant # needed for pylint spell checking
48-
- pip3 install coverage
47+
- pip3 install -U pyenchant # needed for pylint spell checking
48+
- pip3 install -U coverage
4949
# Packages for Emma
50-
- pip3 install -U Pygments Markdown matplotlib pandas pypiscout graphviz
50+
- pip3 install -U Pygments Markdown matplotlib pandas "pypiscout>=2.0" graphviz
5151
# Packages for Emma reports + html doc
5252
- sudo apt-get update
5353
- sudo apt-get install graphviz
5454
- pip3 install -U gprof2dot
5555
# Install pip deployment packages
56-
- pip3 install --upgrade setuptools
57-
- pip3 install --upgrade wheel
58-
- pip3 install --upgrade twine
56+
- pip3 install -U setuptools
57+
- pip3 install -U wheel
58+
- pip3 install -U twine
5959
# Install mkdocs packages for GitHub pages deployment
60-
- pip3 install mkdocs
61-
- pip3 install mkdocs-material
60+
- pip3 install -U "mkdocs>=1.1.2"
61+
- pip3 install -U "mkdocs-material>=5.2.1"
6262
# List installed pip packages
6363
- pip3 list
6464

@@ -120,10 +120,10 @@ jobs:
120120
skip_cleanup: true
121121
github_token: $GITHUB_TOKEN
122122
local_dir: site
123-
on:
124-
tags: true
125123
# on:
126-
# branch: master
124+
# tags: true
125+
on:
126+
branch: 61-mkdocs-material-fix
127127
# Deploy on PyPi database
128128
- provider: pypi
129129
# server: https://test.pypi.org/legacy/ # Activate for testing

Emma/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SUBPARSER_STRINGS:
2424

2525
VERSION_MAJOR = "3"
2626
VERSION_MINOR = "2"
27-
VERSION_PATCH = "1"
27+
VERSION_PATCH = "2"
2828
EMMA_VERSION = ".".join([VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH])
2929
EMMA_VISUALISER_VERSION = EMMA_VERSION
3030
EMMA_DELTAS_VERSION = EMMA_VERSION

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ emma-dev (. at) googlegroups.com
165165
| Pandas (v0.23.4+) | [pandas](https://pypi.org/project/pandas/) | BSD-3-Clause | [https://github.com/pandas-dev/pandas/](https://github.com/pandas-dev/pandas/); [http://pandas.pydata.org/getpandas.html](http://pandas.pydata.org/getpandas.html) |
166166
| Pygments (v2.3.1+) | [Pygments](https://pypi.org/project/Pygments/) | BSD-2-Clause | [https://bitbucket.org/birkenfeld/pygments-main/src/default/](https://bitbucket.org/birkenfeld/pygments-main/src/default/); [http://pygments.org/download/](http://pygments.org/download/) |
167167
| Matplotlib (v3.0.0+) | [matplotlib](https://pypi.org/project/matplotlib/) | Matplotlib License (BSD compatible) | [https://matplotlib.org/users/installing.html](https://matplotlib.org/users/installing.html); [https://github.com/matplotlib/matplotlib](https://github.com/matplotlib/matplotlib) |
168-
| SCout (v1.8+) | [pypiscout](https://pypi.org/project/pypiscout/) | MIT | [https://github.com/holzkohlengrill/SCout](https://github.com/holzkohlengrill/SCout) |
168+
| SCout (v2.0+) | [pypiscout](https://pypi.org/project/pypiscout/) | MIT | [https://github.com/holzkohlengrill/SCout](https://github.com/holzkohlengrill/SCout) |
169169

170170

171171
**Optional dependencies:**
@@ -188,8 +188,8 @@ Utility scripts used to build GitHub pages documentation. As a normal user you c
188188

189189
| Library (version) | pip package name | Licence | URL |
190190
|-------------------------------|-------------------------------------------------------------------|--------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
191-
| MkDocs (v1.0.4+) | [mkdocs](https://pypi.org/project/mkdocs/) | BSD-3Clause | [https://github.com/mkdocs/mkdocs](https://github.com/mkdocs/mkdocs) |
192-
| Material for MkDocs (v4.4.1+) | [mkdocs-material](https://pypi.org/project/mkdocs-material/) | MIT | [https://github.com/squidfunk/mkdocs-material](https://github.com/squidfunk/mkdocs-material) |
191+
| MkDocs (v1.1.2+) | [mkdocs](https://pypi.org/project/mkdocs/) | BSD-3Clause | [https://github.com/mkdocs/mkdocs](https://github.com/mkdocs/mkdocs) |
192+
| Material for MkDocs (v5.2.1+) | [mkdocs-material](https://pypi.org/project/mkdocs-material/) | MIT | [https://github.com/squidfunk/mkdocs-material](https://github.com/squidfunk/mkdocs-material) |
193193

194194

195195

mkdocs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ copyright: The Emma Authors
66
docs_dir: doc
77
use_directory_urls: False
88
theme:
9+
features:
10+
- tabs
11+
- instant
912
name: material
1013
palette:
1114
primary: "Black"
1215
accent: "Amber"
13-
logo:
14-
icon: "🔍"
16+
icon:
17+
logo: material/magnify
18+
#favicon: images/blah.png
1519
font: false
1620
language: "en"
1721
highlightjs: true
@@ -22,7 +26,7 @@ theme:
2226

2327
extra:
2428
social:
25-
- type: 'github'
29+
- icon: octicons/mark-github
2630
link: 'https://github.com/bmwcarit/Emma'
2731

2832
#google_analytics:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
extras_require={"dev": # Install dev version via `pip3 install pypiemma[dev]`
6969
["gprof2dot",
7070
"pylint",
71-
"mkdocs",
72-
"mkdocs-material"
71+
"mkdocs>=1.1.2", # There was a break in the config files: https://squidfunk.github.io/mkdocs-material/releases/5/
72+
"mkdocs-material>=5.2.1" # There was a break in the config files: https://squidfunk.github.io/mkdocs-material/releases/5/
7373
],
7474
},
7575
entry_points={ # Make Emma available as independent scripts

0 commit comments

Comments
 (0)