Skip to content

Commit f52b8d4

Browse files
Gitznikhenryiii
andauthored
Switch to note admonition in readme (#1216)
* Switch to note admonition in readme * docs: use GFM syntax for admonitions Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: Henry Schreiner <[email protected]>
1 parent ddf8a1c commit f52b8d4

File tree

5 files changed

+47
-34
lines changed

5 files changed

+47
-34
lines changed

CONTRIBUTING.md

+15-13
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,21 @@ To run unit tests in Python3.12, you can run
126126
nox -s tests-3.12
127127
```
128128

129-
!!! tip You can run a specific unit test by passing arguments to pytest, the test runner pipx uses:
130-
131-
```
132-
nox -s tests-3.8 -- -k EXPRESSION
133-
```
134-
135-
`EXPRESSION` can be a test name, such as
136-
137-
```
138-
nox -s tests-3.8 -- -k test_uninstall
139-
```
140-
141-
Coverage errors can usually be ignored when only running a subset of tests.
129+
> [!TIP]
130+
>
131+
> You can run a specific unit test by passing arguments to pytest, the test runner pipx uses:
132+
>
133+
> ```
134+
> nox -s tests-3.8 -- -k EXPRESSION
135+
> ```
136+
>
137+
> `EXPRESSION` can be a test name, such as
138+
>
139+
> ```
140+
> nox -s tests-3.8 -- -k test_uninstall
141+
> ```
142+
>
143+
> Coverage errors can usually be ignored when only running a subset of tests.
142144
143145
### Running Unit Tests Offline
144146

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ _For comparison to other tools including pipsi, see
2727

2828
## Install pipx
2929

30-
> [!NOTE] It is not recommended to install `pipx` via `pipx`. If you'd like to do this anyway, take a look at the
30+
> [!WARNING]
31+
>
32+
> It is not recommended to install `pipx` via `pipx`. If you'd like to do this anyway, take a look at the
3133
> [`pipx-in-pipx`](https://github.com/mattsb42-meta/pipx-in-pipx) project and read about the limitations there.
3234
3335
### On macOS

docs/installation.md

+19-18
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ you did not get the warning):
6868
This will add both the above mentioned path and the `%USERPROFILE%\.local\bin` folder to your search path. Restart your
6969
terminal session and verify `pipx` does run.
7070

71-
!!! warning
72-
73-
It is not recommended to install `pipx` via `pipx`. If you'd like to do this anyway, take a look at the
74-
[`pipx-in-pipx`](https://github.com/mattsb42-meta/pipx-in-pipx) project and read about the limitations there.
71+
> [!WARNING]
72+
>
73+
> It is not recommended to install `pipx` via `pipx`. If you'd like to do this anyway, take a look at the
74+
> [`pipx-in-pipx`](https://github.com/mattsb42-meta/pipx-in-pipx) project and read about the limitations there.
7575
7676
### Using pipx without installing (via zipapp)
7777

@@ -123,20 +123,21 @@ sudo PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin PIPX_MAN_DIR=/usr/local/sha
123123
# Example: $ sudo PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin PIPX_MAN_DIR=/usr/local/share/man pipx install cowsay
124124
```
125125

126-
!!! note
127-
128-
After version 1.2.0, the default pipx paths have been moved from `~/.local/pipx` to specific user data directories on each platform using [platformdirs](https://pypi.org/project/platformdirs/) library
129-
130-
| Old Path | New Path |
131-
| ---------------------- | ------------------------------------------ |
132-
| `~/.local/pipx/.trash` | `platformdirs.user_data_dir()/pipx/trash` |
133-
| `~/.local/pipx/shared` | `platformdirs.user_data_dir()/pipx/shared` |
134-
| `~/.local/pipx/venvs` | `platformdirs.user_data_dir()/pipx/venv` |
135-
| `~/.local/pipx/.cache` | `platformdirs.user_cache_dir()/pipx` |
136-
| `~/.local/pipx/logs` | `platformdirs.user_log_dir()/pipx/log` |
137-
138-
`user_data_dir()`, `user_cache_dir()` and `user_log_dir()` resolve to appropriate platform-specific user data, cache and log directories.
139-
See the [platformdirs documentation](https://platformdirs.readthedocs.io/en/latest/api.html#platforms) for details.
126+
> [!NOTE]
127+
>
128+
> After version 1.2.0, the default pipx paths have been moved from `~/.local/pipx` to specific user data directories on
129+
> each platform using [platformdirs](https://pypi.org/project/platformdirs/) library
130+
>
131+
> | Old Path | New Path |
132+
> | ---------------------- | ------------------------------------------ |
133+
> | `~/.local/pipx/.trash` | `platformdirs.user_data_dir()/pipx/trash` |
134+
> | `~/.local/pipx/shared` | `platformdirs.user_data_dir()/pipx/shared` |
135+
> | `~/.local/pipx/venvs` | `platformdirs.user_data_dir()/pipx/venv` |
136+
> | `~/.local/pipx/.cache` | `platformdirs.user_cache_dir()/pipx` |
137+
> | `~/.local/pipx/logs` | `platformdirs.user_log_dir()/pipx/log` |
138+
>
139+
> `user_data_dir()`, `user_cache_dir()` and `user_log_dir()` resolve to appropriate platform-specific user data, cache and log directories.
140+
> See the [platformdirs documentation](https://platformdirs.readthedocs.io/en/latest/api.html#platforms) for details.
140141

141142
## Upgrade pipx
142143

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ nav:
3939
- Changelog: "changelog.md"
4040

4141
markdown_extensions:
42-
- admonition # note blocks, warning blocks -- https://github.com/mkdocs/mkdocs/issues/1659
42+
- markdown_gfm_admonition # GitHub's admonition (alert) syntax
4343

4444
plugins:
4545
- search:

noxfile.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77

88
PYTHON_ALL_VERSIONS = ["3.12", "3.11", "3.10", "3.9", "3.8"]
99
PYTHON_DEFAULT_VERSION = "3.12"
10-
DOC_DEPENDENCIES = ["jinja2", "mkdocs", "mkdocs-material", "mkdocs-gen-files", "mkdocs-macros-plugin", "towncrier"]
10+
DOC_DEPENDENCIES = [
11+
"jinja2",
12+
"mkdocs",
13+
"mkdocs-material",
14+
"mkdocs-gen-files",
15+
"mkdocs-macros-plugin",
16+
"towncrier",
17+
"markdown-gfm-admonition",
18+
]
1119
MAN_DEPENDENCIES = ["argparse-manpage[setuptools]"]
1220
TEST_DEPENDENCIES = ["pytest", "pypiserver[passlib]", 'setuptools; python_version>="3.12"', "pytest-cov"]
1321
# Packages whose dependencies need an intact system PATH to compile

0 commit comments

Comments
 (0)