Update 23-01-2020
This commit is contained in:
@@ -91,30 +91,31 @@ $ jupyter notebook
|
||||
|
||||
#### Mkdocs
|
||||
|
||||
Mkdocs si'installe dans `/usr/local/bin` :
|
||||
Il faut installer Mkdocs avec pip dans --user
|
||||
|
||||
```bash
|
||||
bruno@silverbook:/usr/local/bin$ ./mkdocs --version
|
||||
mkdocs, version 0.17.2
|
||||
$ pip3 install --user mkdocs
|
||||
```
|
||||
|
||||
Par défaut, c'est **mkdocs** installé avec Python 2 (macOS) qui se lance.
|
||||
|
||||
Pour utiliser **mkdocs** installé pour Python 3 (Homebrew):
|
||||
Mkdocs s'installe dans `'/Users/bruno/Library/Python/3.7/bin'` :
|
||||
|
||||
```bash
|
||||
bruno@silverbook:~/project$ /usr/local/bin/mkdocs serve
|
||||
~/Library/Python/3.7/bin$ ./mkdocs --version
|
||||
mkdocs, version 1.0.4 from /Users/bruno/Library/Python/3.7/lib/python/site-packages/mkdocs (Python 3.7)
|
||||
```
|
||||
|
||||
On peut ajouter le chemin au $PATH, en ajoutant la ligne suivante au .zshrc ou .bash_profile:
|
||||
|
||||
```bash
|
||||
export PATH=/Users/bruno/Library/Python/3.7/bin:$PATH
|
||||
```
|
||||
|
||||
|
||||
|
||||
Par comparaison, les extensions Python 2 s'installent dans `/Library/Python/2.7/site-packages/`
|
||||
|
||||
**Mkdocs** si'installe dans `~/Library/Python/2.7/bin` :
|
||||
On installe de la même manière le thème [Material](https://squidfunk.github.io/mkdocs-material/getting-started/):
|
||||
|
||||
```bash
|
||||
bruno@silverbook:~/Library/Python/2.7/bin$ ./mkdocs --version
|
||||
mkdocs, version 0.17.2
|
||||
$ pip3 install --user mkdocs-material
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user