Skip to content
Myr

contributing.md

This file

Path

docs/contributing.md

305 lines · 7.7 KiB · Markdown

Last changed by

📝 Add docs and scripts to test completion in different shells (#953)Sebastián Ramírezbefore adoption944a6d9

History of this file

Take it

The walk stopped after 200 commits: lines older than e6b1a2f point at it.

🔧 Update MkDocs to have titles in Markdown files instead of config (#913)Sebastián Ramírezbefore adoption6b264ac

lines 1–2why, one step back
1# Development - Contributing
2

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 3–6why, one step back
3First, you might want to see the basic ways to [help Typer and get help](help-typer.md){.internal-link target=_blank}.
45## Developing6

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 7why, one step back
7If you already cloned the <a href="https://github.com/fastapi/typer" class="external-link" target="_blank">typer repository</a> and you want to deep dive in the code, here are some guidelines to set up your environment.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 8why, one step back
8

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 9why, one step back
9### Virtual Environment

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 10why, one step back
10

✏️ Fix typo in `docs/contributing.md` (#947)Sebastián Ramírezbefore adoptioncb196cf

line 11why, one step back
11Follow the instructions to create and activate a [virtual environment](virtual-environments.md){.internal-link target=_blank} for the internal code of `typer`.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 12why, one step back
12

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 13why, one step back
13### Install Requirements Using `pip`

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 14why, one step back
14

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 15why, one step back
15After activating the environment, install the required packages:

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 16why, one step back
16

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 17why, one step back
17<div class="termy">

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 18why, one step back
18

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 19why, one step back
19```console

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

lines 20–22why, one step back
20$ pip install -r requirements.txt
2122---> 100%

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 23why, one step back
23```

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 24why, one step back
24

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 25why, one step back
25</div>

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 26why, one step back
26

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 27why, one step back
27It will install all the dependencies and your local Typer in your local environment.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 28why, one step back
28

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 29why, one step back
29### Using your Local Typer

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 30why, one step back
30

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 31why, one step back
31If you create a Python file that imports and uses Typer, and run it with the Python from your local environment, it will use your cloned local Typer source code.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 32why, one step back
32

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 33why, one step back
33And if you update that local Typer source code when you run that Python file again, it will use the fresh version of Typer you just edited.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 34why, one step back
34

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 35why, one step back
35That way, you don't have to "install" your local version to be able to test every change.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 36why, one step back
36

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 37why, one step back
37/// note | "Technical Details"

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 38why, one step back
38

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 39why, one step back
39This only happens when you install using this included `requirements.txt` instead of running `pip install typer` directly.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 40why, one step back
40

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 41why, one step back
41That is because inside the `requirements.txt` file, the local version of Typer is marked to be installed in "editable" mode, with the `-e` option.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 42why, one step back
42

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 43why, one step back
43///

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 44why, one step back
44

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 45why, one step back
45### Format

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 46why, one step back
46

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 47why, one step back
47There is a script that you can run that will format and clean all your code:

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

lines 48–49why, one step back
48
49<div class="termy">

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 50why, one step back
50

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 51why, one step back
51```console

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 52why, one step back
52$ bash scripts/format.sh

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 53why, one step back
53```

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 54why, one step back
54

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 55why, one step back
55</div>

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 56why, one step back
56

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 57why, one step back
57It will also auto-sort all your imports.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 58why, one step back
58

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 59why, one step back
59## Tests

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 60why, one step back
60

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

lines 61–62why, one step back
61There is a script that you can run locally to test all the code and generate coverage reports in HTML:
62

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 63why, one step back
63<div class="termy">

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 64why, one step back
64

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 65why, one step back
65```console

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 66why, one step back
66$ bash scripts/test-cov-html.sh

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 67why, one step back
67```

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 68why, one step back
68

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

lines 69–70why, one step back
69</div>
70

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 71why, one step back
71This command generates a directory `./htmlcov/`, if you open the file `./htmlcov/index.html` in your browser, you can explore interactively the regions of code that are covered by the tests, and notice if there is any region missing.

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 72why, one step back
72

📝 Add docs and scripts to test completion in different shells (#953)Sebastián Ramírezbefore adoption944a6d9

lines 73–213why, one step back
73## Completion
7475To try and test the completion for different shells and check that they are working you can use a Docker container.7677There's a `Dockerfile` and a a Docker Compose file `compose.yaml` at `./scripts/docker/`.7879It has installed `bash`, `zsh`, `fish`, and `pwsh` (PowerShell for Linux).8081It also has installed `nano` and `vim`, so that you can check the modified configuration files for the shells (for example `.bashrc`, `.zshrc`, etc).8283It also has `uv` installed, so you can install the dependencies and the project quickly.8485The Docker Compose file mounts the main directory as `/code` inside the container, so you can change things and try them out.8687Go to the `./scripts/docker/` directory:8889```console90$ cd scripts/docker/91```9293Then run an interactive session with `bash` inside the container:9495```console96$ docker compose run typer bash9798root@79c4b9b70cbe:/code#99```100101Then inside the container, you can install `typer` with:102103```console104$ uv pip install -r requirements.txt105```106107Then, you can start the shell you want to use, the one where you want to try out completion:108109* `bash`110* `fish`111* `pwsh`112* `zsh`113114For example:115116```console117$ zsh118```119120Then install `typer` completion:121122```console123$ typer --install-completion124```125126/// info127128In `pwsh` you will probably get a warning of:129130```plaintext131Set-ExecutionPolicy: Operation is not supported on this platform.132```133134this is because that configuration is only available in Windows (and needed there), not in PowerShell for Linux.135136///137138For completion to take effect, you need to restart the shell. So, exit the current shell:139140```console141$ exit142```143144and start a new shell (for the same shell you installed completion in) again. For example:145146```console147$ zsh148```149150Now you could create a demo file on the same Typer directory in your editor, for example `demo.py`:151152```python153import typer154155app = typer.Typer()156157158@app.command()159def hello():160 print("Hello")161162163@app.command()164def goodbye():165 print("Goodbye")166167168if __name__ == "__main__":169 app()170```171172Because the directory is mounted as a volume, you will be able to access the file from inside the container.173174So, you can try running it with the `typer` command, that will use the installed shell completion:175176```console177$ typer demo.py <TAB>178```179180And you should see the completion working:181182```console183run -- Run the provided Typer app.184utils -- Extra utility commands for Typer apps.185```186187And the same for the commands in your `demo.py` file:188189```console190$ typer demo.py run <TAB>191192hello goodbye193```194195You can also check the configuration file using `nano` or `vim`, for example:196197```bash198nano ~/.zshrc199```200201It will show some content like:202203```bash204fpath+=~/.zfunc; autoload -Uz compinit; compinit205206207zstyle ':completion:*' menu select208```209210If you exit from the container, you can start a new one, you will probably have to install the packages again and install completion again.211212Using this process, you can test all the shells, with their completions, being able to start from scratch quickly in a fresh container, and verifying that everything works as expected.213

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 214why, one step back
214## Docs

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 215why, one step back
215

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 216why, one step back
216First, make sure you set up your environment as described above, that will install all the requirements.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 217why, one step back
217

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 218why, one step back
218### Docs live

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 219why, one step back
219

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 220why, one step back
220During local development, there is a script that builds the site and checks for any changes, live-reloading:

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 221why, one step back
221

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 222–224why, one step back
222<div class="termy">
223224```console

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 225why, one step back
225$ python ./scripts/docs.py live

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 226why, one step back
226

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

lines 227–229why, one step back
227<span style="color: green;">[INFO]</span> Serving on http://127.0.0.1:8008
228<span style="color: green;">[INFO]</span> Start watching changes229<span style="color: green;">[INFO]</span> Start detecting changes

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 230–233why, one step back
230```
231232</div>233

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 234why, one step back
234It will serve the documentation on `http://127.0.0.1:8008`.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 235why, one step back
235

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 236why, one step back
236That way, you can edit the documentation/source files and see the changes live.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 237why, one step back
237

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 238why, one step back
238/// tip

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 239why, one step back
239

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 240why, one step back
240Alternatively, you can perform the same steps that scripts does manually.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 241why, one step back
241

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 242why, one step back
242Go into the docs director at `docs/`:

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 243why, one step back
243

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

lines 244–245why, one step back
244```console
245$ cd docs/

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 246why, one step back
246```

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 247why, one step back
247

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 248why, one step back
248Then run `mkdocs` in that directory:

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 249why, one step back
249

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 250why, one step back
250```console

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 251why, one step back
251$ mkdocs serve --dev-addr 8008

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

lines 252–253why, one step back
252```
253

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 254why, one step back
254///

🔧 Update tabs and admonitions with new syntax and new MkDocs features (#906)Sebastián Ramírezbefore adoption289b230

line 255why, one step back
255

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 256why, one step back
256#### Typer CLI (optional)

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 257why, one step back
257

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 258why, one step back
258The instructions here show you how to use the script at `./scripts/docs.py` with the `python` program directly.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 259why, one step back
259

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 260why, one step back
260But you can also use <a href="https://typer.tiangolo.com/typer-cli/" class="external-link" target="_blank">Typer CLI</a>, and you will get autocompletion in your terminal for the commands after installing completion.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 261why, one step back
261

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 262why, one step back
262If you install Typer CLI, you can install completion with:

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 263–266why, one step back
263
264<div class="termy">265266```console

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

lines 267–270why, one step back
267$ typer --install-completion
268269zsh completion installed in /home/user/.bashrc.270Completion will take effect once you restart the terminal.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 271–274why, one step back
271```
272273</div>274

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 275why, one step back
275### Docs Structure

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 276why, one step back
276

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 277why, one step back
277The documentation uses <a href="https://www.mkdocs.org/" class="external-link" target="_blank">MkDocs</a>.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 278why, one step back
278

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 279why, one step back
279And there are extra tools/scripts in place in `./scripts/docs.py`.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 280why, one step back
280

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 281why, one step back
281/// tip

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 282why, one step back
282

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 283why, one step back
283You don't need to see the code in `./scripts/docs.py`, you just use it in the command line.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 284why, one step back
284

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 285why, one step back
285///

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 286–296why, one step back
286
287All the documentation is in Markdown format in the directory `./docs`.288289Many of the tutorials have blocks of code.290291In most of the cases, these blocks of code are actual complete applications that can be run as is.292293In fact, those blocks of code are not written inside the Markdown, they are Python files in the `./docs_src/` directory.294295And those Python files are included/injected in the documentation when generating the site.296

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 297why, one step back
297### Docs for Tests

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 298–300why, one step back
298
299Most of the tests actually run against the example source files in the documentation.300

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 301why, one step back
301This helps to make sure that:

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

line 302why, one step back
302

📝 Add docs for virtual environments, environment variables, and update contributing (#946)Sebastián Ramírezbefore adoption73b9698

line 303why, one step back
303* The documentation is up-to-date.

👷 Refactor GitHub Action to comment docs deployment URLs and update token, preparing for GitHub org (#896)Sebastián Ramírezbefore adoptione6b1a2f

lines 304–305why, one step back
304* The documentation examples can be run as is.
305* Most of the features are covered by the documentation, ensured by test coverage.