: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
Provenance
- Commit
ce9e08d- Tree
bc11893- Author
Sebastián Ramírez <tiangolo@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
cc53e94
4 files changed+66 added−52 removed
modified:docs/js/custom.js+1 added-1 removed
10 unmodified lines1112131415151617181986 unmodified lines10 unmodified lineslet termynals = [];
function createTermynals() { document .querySelectorAll(`.${termynalActivateClass} .codehilite`) .querySelectorAll(`.${termynalActivateClass} .highlight`) .forEach(node => { const text = node.textContent; const lines = text.split("\n"); const useLines = [];86 unmodified linesmodified:docs/contributing.md+55 added-45 removed
20 unmodified lines21 ### Activate the environment22 23 Activate the new environment with:24 25-<div class="termy">25+=== "Linux, macOS"26 27-```console28-$ source ./env/bin/activate29-```27+ <div class="termy">28 31-</div>29+ ```console30+ $ source ./env/bin/activate31+ ```32 33-Or in Windows' PowerShell:33+ </div>34 35-<div class="termy">35+=== "Windows PowerShell"36 37-```console38-$ .\env\Scripts\Activate.ps139-```37+ <div class="termy">38 41-</div>39+ ```console40+ $ .\env\Scripts\Activate.ps141+ ```42 43-Or if you use Bash for Windows (e.g. <a href="https://gitforwindows.org/" class="external-link" target="_blank">Git Bash</a>):43+ </div>44 45-<div class="termy">45+=== "Windows Bash"46 47-```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>):48 51-</div>49+ <div class="termy">50 51+ ```console52+ $ source ./env/Scripts/activate53+ ```54+55+ </div>56+57 To check it worked, use:58 55-<div class="termy">59+=== "Linux, macOS, Windows Bash"60 57-```console58-$ which pip61+ <div class="termy">62 60-some/directory/typer/env/bin/pip61-```63+ ```console64+ $ which pip65 63-</div>66+ some/directory/typer/env/bin/pip67+ ```68 65-If it shows the `pip` binary at `env/bin/pip` then it worked. 🎉69+ </div>70 67-Or in Windows PowerShell:71+=== "Windows PowerShell"72 69-<div class="termy">73+ <div class="termy">74 71-```console72-$ Get-Command pip75+ ```console76+ $ Get-Command pip77 74-some/directory/typer/env/bin/pip75-```78+ some/directory/typer/env/bin/pip79+ ```80 77-</div>81+ </div>82 83+If it shows the `pip` binary at `env/bin/pip` then it worked. 🎉84+85 !!! tip86 Every time you install a new package with `pip` under that environment, activate the environment again.87 88 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 lines106 Now re-activate the environment to make sure you are using the `flit` you just installed (and not a global one).107 108 And now use `flit` to install the development dependencies:109 104-<div class="termy">110+=== "Linux, macOS"111 106-```console107-$ flit install --deps develop --symlink112+ <div class="termy">113 109----> 100%110-```114+ ```console115+ $ flit install --deps develop --symlink116 112-</div>117+ ---> 100%118+ ```119 114-If you are on Windows, use `--pth-file` instead of `--symlink`:120+ </div>121 116-<div class="termy">122+=== "Windows"123 118-```console119-$ flit install --deps develop --pth-file124+ If you are on Windows, use `--pth-file` instead of `--symlink`:125 121----> 100%122-```126+ <div class="termy">127 124-</div>128+ ```console129+ $ flit install --deps develop --pth-file130 131+ ---> 100%132+ ```133+134+ </div>135+136 It will install all the dependencies and your local Typer in your local environment.137 138 #### Using your local Typer139 140 If 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.141 132-And 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.142+And 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.143 144 That way, you don't have to "install" your local version to be able to test every change.145 146 ### Format95 unmodified linesmodified:.gitignore+1 added
1 unmodified line2 *.pyc3 __pycache__4 env3.75 env3.66+env7 dist8 .mypy_cache9 .idea10 site3 unmodified linesmodified:mkdocs.yml+9 added-6 removed
5 unmodified lines6 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'14 15 repo_name: tiangolo/typer79 unmodified lines95 custom_fences:96 - name: mermaid97 class: mermaid98 format: !!python/name:pymdownx.superfences.fence_div_format99+ - pymdownx.tabbed100 101 extra: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'115 116 extra_css:117 - 'css/termynal.css'6 unmodified lines