Skip to content
Myr

:heavy_plus_sign: Upgrade Material-Mkdocs (#90)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* :heavy_plus_sign: Upgrade Material-Mkdocs * :bug: Fix Mkdocs config bug * :heavy_plus_sign: Upgrade Mkdocs-material configs

authored by Sebastián Ramírez · committed by GitHub · parent cc53e94 · Browse files · 4 files+66 added−52 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+66 added−52 removed

  • other:+66 added−52 removed

4 files+66 added−52 removed

modified:docs/js/custom.js+1 added-1 removed
modified:docs/contributing.md+55 added-45 removed
20 unmodified lines
21### Activate the environment2223Activate the new environment with:2425<div class="termy">25=== "Linux, macOS"2627```console28$ source ./env/bin/activate29```27 <div class="termy">2831</div>29 ```console30 $ source ./env/bin/activate31 ```3233Or in Windows' PowerShell:33 </div>3435<div class="termy">35=== "Windows PowerShell"3637```console38$ .\env\Scripts\Activate.ps139```37 <div class="termy">3841</div>39 ```console40 $ .\env\Scripts\Activate.ps141 ```4243Or if you use Bash for Windows (e.g. <a href="https://gitforwindows.org/" class="external-link" target="_blank">Git Bash</a>):43 </div>4445<div class="termy">45=== "Windows Bash"4647```console48$ source ./env/Scripts/activate49```47 Or if you use Bash for Windows (e.g. <a href="https://gitforwindows.org/" class="external-link" target="_blank">Git Bash</a>):4851</div>49 <div class="termy">5051 ```console52 $ source ./env/Scripts/activate53 ```5455 </div>5657To check it worked, use:5855<div class="termy">59=== "Linux, macOS, Windows Bash"6057```console58$ which pip61 <div class="termy">6260some/directory/typer/env/bin/pip61```63 ```console64 $ which pip6563</div>66 some/directory/typer/env/bin/pip67 ```6865If it shows the `pip` binary at `env/bin/pip` then it worked. 🎉69 </div>7067Or in Windows PowerShell:71=== "Windows PowerShell"7269<div class="termy">73 <div class="termy">7471```console72$ Get-Command pip75 ```console76 $ Get-Command pip7774some/directory/typer/env/bin/pip75```78 some/directory/typer/env/bin/pip79 ```8077</div>81 </div>8283If it shows the `pip` binary at `env/bin/pip` then it worked. 🎉8485!!! tip86 Every time you install a new package with `pip` under that environment, activate the environment again.8788 This makes sure that if you use a terminal program installed by that package (like `flit`), you use the one from your local environment and not any other that could be installed globally.
17 unmodified lines
106Now re-activate the environment to make sure you are using the `flit` you just installed (and not a global one).107108And now use `flit` to install the development dependencies:109104<div class="termy">110=== "Linux, macOS"111106```console107$ flit install --deps develop --symlink112 <div class="termy">113109---> 100%110```114 ```console115 $ flit install --deps develop --symlink116112</div>117 ---> 100%118 ```119114If you are on Windows, use `--pth-file` instead of `--symlink`:120 </div>121116<div class="termy">122=== "Windows"123118```console119$ flit install --deps develop --pth-file124 If you are on Windows, use `--pth-file` instead of `--symlink`:125121---> 100%122```126 <div class="termy">127124</div>128 ```console129 $ flit install --deps develop --pth-file130131 ---> 100%132 ```133134 </div>135136It will install all the dependencies and your local Typer in your local environment.137138#### Using your local Typer139140If you create a Python file that imports and uses Typer, and run it with the Python from your local environment, it will use your local Typer source code.141132And if you update that local Typer source code, as it is installed with `--symlink`, when you run that Python file again, it will use the fresh version of Typer you just edited.142And if you update that local Typer source code, as it is installed with `--symlink` (or `--pth-file` on Windows), when you run that Python file again, it will use the fresh version of Typer you just edited.143144That way, you don't have to "install" your local version to be able to test every change.145146### Format
95 unmodified lines
modified:.gitignore+1 added
1 unmodified line
2*.pyc3__pycache__4env3.75env3.66env7dist8.mypy_cache9.idea10site
3 unmodified lines
modified:mkdocs.yml+9 added-6 removed
5 unmodified lines
6 name: 'material'7 palette:8 primary: 'black'9 accent: 'teal'10 icon:11 repo: fontawesome/brands/github-alt12 logo: 'img/icon-white.svg'13 favicon: 'img/favicon.png'1415repo_name: tiangolo/typer
79 unmodified lines
95 custom_fences:96 - name: mermaid97 class: mermaid98 format: !!python/name:pymdownx.superfences.fence_div_format99 - pymdownx.tabbed100101extra:102 social:100 - type: 'github'103 - icon: fontawesome/brands/github-alt104 link: 'https://github.com/tiangolo/typer'102 - type: 'twitter'105 - icon: fontawesome/brands/twitter106 link: 'https://twitter.com/tiangolo'104 - type: 'linkedin'107 - icon: fontawesome/brands/linkedin108 link: 'https://www.linkedin.com/in/tiangolo'106 - type: 'rss'109 - icon: fontawesome/brands/dev110 link: 'https://dev.to/tiangolo'108 - type: 'medium'111 - icon: fontawesome/brands/medium112 link: 'https://medium.com/@tiangolo'110 - type: 'globe'113 - icon: fontawesome/solid/globe114 link: 'https://tiangolo.com'115116extra_css:117 - 'css/termynal.css'
6 unmodified lines