markdown-exec 1.10.0__tar.gz → 1.10.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/CHANGELOG.md +25 -0
- markdown_exec-1.10.2/CODE_OF_CONDUCT.md +84 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/CONTRIBUTING.md +13 -41
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/PKG-INFO +6 -5
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/README.md +1 -1
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/ruff.toml +9 -2
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/vscode/launch.json +11 -1
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/.overrides/partials/comments.html +1 -1
- markdown_exec-1.10.2/docs/.overrides/partials/path-item.html +22 -0
- markdown_exec-1.10.2/docs/changelog.md +5 -0
- markdown_exec-1.10.2/docs/code_of_conduct.md +5 -0
- markdown_exec-1.10.2/docs/contributing.md +5 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/credits.md +1 -2
- markdown_exec-1.10.2/docs/css/mkdocstrings.css +72 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/gallery.md +1 -13
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/index.md +1 -0
- markdown_exec-1.10.2/docs/insiders/index.md +157 -0
- markdown_exec-1.10.2/docs/insiders/installation.md +67 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/license.md +1 -0
- markdown_exec-1.10.2/docs/reference/api.md +9 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/usage/index.md +9 -9
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/usage/pyodide.md +1 -1
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/usage/shell.md +1 -1
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/usage/tree.md +1 -1
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/duties.py +31 -14
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/mkdocs.yml +13 -11
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/pyproject.toml +41 -34
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/scripts/gen_credits.py +2 -2
- markdown_exec-1.10.2/scripts/get_version.py +26 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/scripts/insiders.py +5 -38
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/scripts/make.py +3 -7
- markdown_exec-1.10.2/src/markdown_exec/__init__.py +55 -0
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/debug.py +13 -15
- markdown_exec-1.10.2/src/markdown_exec/_internal/formatters/__init__.py +1 -0
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/_exec_python.py +1 -1
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/base.py +10 -7
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/bash.py +3 -3
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/console.py +5 -5
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/markdown.py +2 -2
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/pycon.py +3 -6
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/pyodide.py +12 -9
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/python.py +4 -4
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/sh.py +3 -3
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/formatters/tree.py +2 -2
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/logger.py +28 -31
- markdown_exec-1.10.0/src/markdown_exec/__init__.py → markdown_exec-1.10.2/src/markdown_exec/_internal/main.py +12 -32
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/mkdocs_plugin.py +14 -12
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/processors.py +20 -7
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/_internal}/rendering.py +14 -10
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/assets}/pyodide.css +6 -1
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/assets}/pyodide.js +12 -6
- markdown_exec-1.10.2/src/markdown_exec/formatters/__init__.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/base.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/bash.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/console.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/markdown.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/pycon.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/pyodide.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/python.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/sh.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/formatters/tree.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/logger.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/mkdocs_plugin.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/processors.py +17 -0
- markdown_exec-1.10.2/src/markdown_exec/py.typed +0 -0
- markdown_exec-1.10.2/src/markdown_exec/rendering.py +17 -0
- markdown_exec-1.10.2/tests/test_api.py +203 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_base_formatter.py +4 -1
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_converter.py +1 -1
- markdown_exec-1.10.0/CODE_OF_CONDUCT.md +0 -133
- markdown_exec-1.10.0/docs/changelog.md +0 -1
- markdown_exec-1.10.0/docs/code_of_conduct.md +0 -1
- markdown_exec-1.10.0/docs/contributing.md +0 -1
- markdown_exec-1.10.0/docs/css/mkdocstrings.css +0 -27
- markdown_exec-1.10.0/docs/insiders/index.md +0 -239
- markdown_exec-1.10.0/docs/insiders/installation.md +0 -88
- markdown_exec-1.10.0/docs/snippets/gallery/pytermgui.py +0 -39
- markdown_exec-1.10.0/scripts/gen_ref_nav.py +0 -37
- markdown_exec-1.10.0/src/markdown_exec/formatters/__init__.py +0 -1
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/LICENSE +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/coverage.ini +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/git-changelog.toml +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/mypy.ini +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/pytest.ini +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/vscode/settings.json +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/config/vscode/tasks.json +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/.overrides/main.html +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/css/insiders.css +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/css/material.css +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/insiders/changelog.md +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/insiders/goals.yml +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/js/feedback.js +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/js/insiders.js +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/schema.json +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/ansi.sh +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/argparse.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/argparse_format.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/chalk.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/d2.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/diagrams.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/drawsvg.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/expandable_filetree.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/hyperbolic.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/matplotlib.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/plotly.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/pydeps.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/qrcode.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/rich.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/rich_terminal.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/runpy.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/gallery/textual.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/usage/boolean_matrix.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/usage/hide.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/usage/multiple.pycon +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/usage/platform_html.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/usage/platform_md.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/usage/source.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/snippets/usage/source.pycon +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/docs/usage/python.md +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/scripts/make +0 -0
- /markdown_exec-1.10.0/src/markdown_exec/py.typed → /markdown_exec-1.10.2/src/markdown_exec/_internal/__init__.py +0 -0
- {markdown_exec-1.10.0/src/markdown_exec → markdown_exec-1.10.2/src/markdown_exec/assets}/ansi.css +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/__init__.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/conftest.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_headings.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_python.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_shell.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_toc.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_tree.py +0 -0
- {markdown_exec-1.10.0 → markdown_exec-1.10.2}/tests/test_validator.py +0 -0
@@ -5,6 +5,31 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
7
|
<!-- insertion marker -->
|
8
|
+
## [1.10.2](https://github.com/pawamoy/markdown-exec/releases/tag/1.10.2) - 2025-03-18
|
9
|
+
|
10
|
+
<small>[Compare with 1.10.1](https://github.com/pawamoy/markdown-exec/compare/1.10.1...1.10.2)</small>
|
11
|
+
|
12
|
+
### Bug Fixes
|
13
|
+
|
14
|
+
- Escape Pyodide output, improve error handling ([ec83f48](https://github.com/pawamoy/markdown-exec/commit/ec83f48db29708b03e8d2487ccb0d5ee0889a464) by Timothée Mazzucotelli). [Issue-87](https://github.com/pawamoy/markdown-exec/issues/87)
|
15
|
+
|
16
|
+
### Code Refactoring
|
17
|
+
|
18
|
+
- Sync API and docs ([1245ed9](https://github.com/pawamoy/markdown-exec/commit/1245ed96b8c5d430cc949fcfa2b9f2ef5be78f65) by Timothée Mazzucotelli).
|
19
|
+
- Move code under internal folder ([b132e78](https://github.com/pawamoy/markdown-exec/commit/b132e78d2a9ebc48edd7b388e00b161eb0a048b6) by Timothée Mazzucotelli).
|
20
|
+
|
21
|
+
## [1.10.1](https://github.com/pawamoy/markdown-exec/releases/tag/1.10.1) - 2025-03-11
|
22
|
+
|
23
|
+
<small>[Compare with 1.10.0](https://github.com/pawamoy/markdown-exec/compare/1.10.0...1.10.1)</small>
|
24
|
+
|
25
|
+
### Build
|
26
|
+
|
27
|
+
- Add lower bound to pygments-ansi-color extra ([a8e17c9](https://github.com/pawamoy/markdown-exec/commit/a8e17c9cd1bf9ba8ab5008a83c77a0b1208a1b25) by Timothée Mazzucotelli).
|
28
|
+
|
29
|
+
### Bug Fixes
|
30
|
+
|
31
|
+
- Fix emoji display in pyodide fence for themes other than Material ([e09e9b2](https://github.com/pawamoy/markdown-exec/commit/e09e9b2005f9fe0599db7bc9f053e7227b824a6a) by Timothée Mazzucotelli). [Issue-83](https://github.com/pawamoy/markdown-exec/issues/83), [PR-84](https://github.com/pawamoy/markdown-exec/pull/84)
|
32
|
+
|
8
33
|
## [1.10.0](https://github.com/pawamoy/markdown-exec/releases/tag/1.10.0) - 2024-12-06
|
9
34
|
|
10
35
|
<small>[Compare with 1.9.3](https://github.com/pawamoy/markdown-exec/compare/1.9.3...1.10.0)</small>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
|
22
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
23
|
+
* Public or private harassment
|
24
|
+
* Publishing others' private information, such as a physical or email address, without their explicit permission
|
25
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
26
|
+
|
27
|
+
## Enforcement Responsibilities
|
28
|
+
|
29
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
30
|
+
|
31
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
32
|
+
|
33
|
+
## Scope
|
34
|
+
|
35
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
36
|
+
|
37
|
+
## Enforcement
|
38
|
+
|
39
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at dev@pawamoy.fr. All complaints will be reviewed and investigated promptly and fairly.
|
40
|
+
|
41
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
42
|
+
|
43
|
+
## Enforcement Guidelines
|
44
|
+
|
45
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
46
|
+
|
47
|
+
### 1. Correction
|
48
|
+
|
49
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
50
|
+
|
51
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
52
|
+
|
53
|
+
### 2. Warning
|
54
|
+
|
55
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
56
|
+
|
57
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
58
|
+
|
59
|
+
### 3. Temporary Ban
|
60
|
+
|
61
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
62
|
+
|
63
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
64
|
+
|
65
|
+
### 4. Permanent Ban
|
66
|
+
|
67
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
68
|
+
|
69
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
70
|
+
|
71
|
+
## Attribution
|
72
|
+
|
73
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
74
|
+
|
75
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
76
|
+
|
77
|
+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
|
78
|
+
|
79
|
+
[homepage]: https://www.contributor-covenant.org
|
80
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
81
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
82
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
83
|
+
[translations]: https://www.contributor-covenant.org/translations
|
84
|
+
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# Contributing
|
2
2
|
|
3
|
-
Contributions are welcome, and they are greatly appreciated!
|
4
|
-
Every little bit helps, and credit will always be given.
|
3
|
+
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
|
5
4
|
|
6
5
|
## Environment setup
|
7
6
|
|
@@ -14,11 +13,7 @@ cd markdown-exec
|
|
14
13
|
make setup
|
15
14
|
```
|
16
15
|
|
17
|
-
> NOTE:
|
18
|
-
> If it fails for some reason,
|
19
|
-
> you'll need to install
|
20
|
-
> [uv](https://github.com/astral-sh/uv)
|
21
|
-
> manually.
|
16
|
+
> NOTE: If it fails for some reason, you'll need to install [uv](https://github.com/astral-sh/uv) manually.
|
22
17
|
>
|
23
18
|
> You can install it with:
|
24
19
|
>
|
@@ -26,8 +21,7 @@ make setup
|
|
26
21
|
> curl -LsSf https://astral.sh/uv/install.sh | sh
|
27
22
|
> ```
|
28
23
|
>
|
29
|
-
> Now you can try running `make setup` again,
|
30
|
-
> or simply `uv sync`.
|
24
|
+
> Now you can try running `make setup` again, or simply `uv sync`.
|
31
25
|
|
32
26
|
You now have the dependencies installed.
|
33
27
|
|
@@ -35,15 +29,10 @@ Run `make help` to see all the available actions!
|
|
35
29
|
|
36
30
|
## Tasks
|
37
31
|
|
38
|
-
The entry-point to run commands and tasks is the `make` Python script,
|
39
|
-
|
40
|
-
The *commands* do not need the Python dependencies to be installed,
|
41
|
-
while the *tasks* do.
|
42
|
-
The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
|
32
|
+
The entry-point to run commands and tasks is the `make` Python script, located in the `scripts` directory. Try running `make` to show the available commands and tasks. The *commands* do not need the Python dependencies to be installed,
|
33
|
+
while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
|
43
34
|
|
44
|
-
If you work in VSCode, we provide
|
45
|
-
[an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup)
|
46
|
-
for the project.
|
35
|
+
If you work in VSCode, we provide [an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup) for the project.
|
47
36
|
|
48
37
|
## Development
|
49
38
|
|
@@ -62,17 +51,13 @@ As usual:
|
|
62
51
|
1. go to http://localhost:8000 and check that everything looks good
|
63
52
|
1. follow our [commit message convention](#commit-message-convention)
|
64
53
|
|
65
|
-
If you are unsure about how to fix or ignore a warning,
|
66
|
-
just let the continuous integration fail,
|
67
|
-
and we will help you during review.
|
54
|
+
If you are unsure about how to fix or ignore a warning, just let the continuous integration fail, and we will help you during review.
|
68
55
|
|
69
56
|
Don't bother updating the changelog, we will take care of this.
|
70
57
|
|
71
58
|
## Commit message convention
|
72
59
|
|
73
|
-
Commit messages must follow our convention based on the
|
74
|
-
[Angular style](https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message)
|
75
|
-
or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.html):
|
60
|
+
Commit messages must follow our convention based on the [Angular style](https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message) or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.html):
|
76
61
|
|
77
62
|
```
|
78
63
|
<type>[(scope)]: Subject
|
@@ -80,10 +65,7 @@ or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.
|
|
80
65
|
[Body]
|
81
66
|
```
|
82
67
|
|
83
|
-
**Subject and body must be valid Markdown.**
|
84
|
-
Subject must have proper casing (uppercase for first letter
|
85
|
-
if it makes sense), but no dot at the end, and no punctuation
|
86
|
-
in general.
|
68
|
+
**Subject and body must be valid Markdown.** Subject must have proper casing (uppercase for first letter if it makes sense), but no dot at the end, and no punctuation in general.
|
87
69
|
|
88
70
|
Scope and body are optional. Type can be:
|
89
71
|
|
@@ -99,9 +81,7 @@ Scope and body are optional. Type can be:
|
|
99
81
|
- `style`: A change in code style/format.
|
100
82
|
- `tests`: About tests.
|
101
83
|
|
102
|
-
If you write a body, please add trailers at the end
|
103
|
-
(for example issues and PR references, or co-authors),
|
104
|
-
without relying on GitHub's flavored Markdown:
|
84
|
+
If you write a body, please add trailers at the end (for example issues and PR references, or co-authors), without relying on GitHub's flavored Markdown:
|
105
85
|
|
106
86
|
```
|
107
87
|
Body.
|
@@ -110,16 +90,9 @@ Issue #10: https://github.com/namespace/project/issues/10
|
|
110
90
|
Related to PR namespace/other-project#15: https://github.com/namespace/other-project/pull/15
|
111
91
|
```
|
112
92
|
|
113
|
-
These "trailers" must appear at the end of the body,
|
114
|
-
without any blank lines between them. The trailer title
|
115
|
-
can contain any character except colons `:`.
|
116
|
-
We expect a full URI for each trailer, not just GitHub autolinks
|
117
|
-
(for example, full GitHub URLs for commits and issues,
|
118
|
-
not the hash or the #issue-number).
|
93
|
+
These "trailers" must appear at the end of the body, without any blank lines between them. The trailer title can contain any character except colons `:`. We expect a full URI for each trailer, not just GitHub autolinks (for example, full GitHub URLs for commits and issues, not the hash or the #issue-number).
|
119
94
|
|
120
|
-
We do not enforce a line length on commit messages summary and body,
|
121
|
-
but please avoid very long summaries, and very long lines in the body,
|
122
|
-
unless they are part of code blocks that must not be wrapped.
|
95
|
+
We do not enforce a line length on commit messages summary and body, but please avoid very long summaries, and very long lines in the body, unless they are part of code blocks that must not be wrapped.
|
123
96
|
|
124
97
|
## Pull requests guidelines
|
125
98
|
|
@@ -144,5 +117,4 @@ And force-push:
|
|
144
117
|
git push -f
|
145
118
|
```
|
146
119
|
|
147
|
-
If this seems all too complicated, you can push or force-push each new commit,
|
148
|
-
and we will squash them ourselves if needed, before merging.
|
120
|
+
If this seems all too complicated, you can push or force-push each new commit, and we will squash them ourselves if needed, before merging.
|
@@ -1,10 +1,11 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: markdown-exec
|
3
|
-
Version: 1.10.
|
3
|
+
Version: 1.10.2
|
4
4
|
Summary: Utilities to execute code blocks in Markdown files.
|
5
5
|
Keywords: markdown,python,exec,shell,bash,mkdocs
|
6
6
|
Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
|
7
|
-
License: ISC
|
7
|
+
License-Expression: ISC
|
8
|
+
License-File: LICENSE
|
8
9
|
Classifier: Development Status :: 4 - Beta
|
9
10
|
Classifier: Intended Audience :: Developers
|
10
11
|
Classifier: Programming Language :: Python
|
@@ -31,7 +32,7 @@ Project-URL: Funding, https://github.com/sponsors/pawamoy
|
|
31
32
|
Requires-Python: >=3.9
|
32
33
|
Requires-Dist: pymdown-extensions>=9
|
33
34
|
Provides-Extra: ansi
|
34
|
-
Requires-Dist: pygments-ansi-color; extra == "ansi"
|
35
|
+
Requires-Dist: pygments-ansi-color>=0.3; extra == "ansi"
|
35
36
|
Description-Content-Type: text/markdown
|
36
37
|
|
37
38
|
# Markdown Exec
|
@@ -49,7 +50,7 @@ and this HTML is injected in place of the code block.
|
|
49
50
|
## Installation
|
50
51
|
|
51
52
|
```bash
|
52
|
-
pip install markdown-exec[ansi]
|
53
|
+
pip install "markdown-exec[ansi]"
|
53
54
|
```
|
54
55
|
|
55
56
|
The `ansi` extra provides the necessary bits (`pygments-ansi-color` and a CSS file)
|
@@ -47,17 +47,24 @@ ignore = [
|
|
47
47
|
]
|
48
48
|
|
49
49
|
[lint.per-file-ignores]
|
50
|
-
"src
|
50
|
+
"src/**/cli.py" = [
|
51
51
|
"T201", # Print statement
|
52
52
|
]
|
53
53
|
"src/*/debug.py" = [
|
54
54
|
"T201", # Print statement
|
55
55
|
]
|
56
|
+
"!src/*/*.py" = [
|
57
|
+
"D100", # Missing docstring in public module
|
58
|
+
]
|
59
|
+
"!src/**.py" = [
|
60
|
+
"D101", # Missing docstring in public class
|
61
|
+
"D103", # Missing docstring in public function
|
62
|
+
]
|
56
63
|
"scripts/*.py" = [
|
57
64
|
"INP001", # File is part of an implicit namespace package
|
58
65
|
"T201", # Print statement
|
59
66
|
]
|
60
|
-
"tests
|
67
|
+
"tests/**.py" = [
|
61
68
|
"ARG005", # Unused lambda argument
|
62
69
|
"FBT001", # Boolean positional arg in function definition
|
63
70
|
"PLR2004", # Magic value used in comparison
|
@@ -7,7 +7,17 @@
|
|
7
7
|
"request": "launch",
|
8
8
|
"program": "${file}",
|
9
9
|
"console": "integratedTerminal",
|
10
|
-
"justMyCode": false
|
10
|
+
"justMyCode": false,
|
11
|
+
"args": "${command:pickArgs}"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"name": "run",
|
15
|
+
"type": "debugpy",
|
16
|
+
"request": "launch",
|
17
|
+
"module": "markdown_exec",
|
18
|
+
"console": "integratedTerminal",
|
19
|
+
"justMyCode": false,
|
20
|
+
"args": "${command:pickArgs}"
|
11
21
|
},
|
12
22
|
{
|
13
23
|
"name": "docs",
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{# Fix breadcrumbs for when mkdocs-section-index is used. #}
|
2
|
+
{# See https://github.com/squidfunk/mkdocs-material/issues/7614. #}
|
3
|
+
|
4
|
+
<!-- Render navigation link content -->
|
5
|
+
{% macro render_content(nav_item) %}
|
6
|
+
<span class="md-ellipsis">
|
7
|
+
{{ nav_item.title }}
|
8
|
+
</span>
|
9
|
+
{% endmacro %}
|
10
|
+
|
11
|
+
<!-- Render navigation item -->
|
12
|
+
{% macro render(nav_item, ref=nav_item) %}
|
13
|
+
{% if nav_item.is_page %}
|
14
|
+
<li class="md-path__item">
|
15
|
+
<a href="{{ nav_item.url | url }}" class="md-path__link">
|
16
|
+
{{ render_content(ref) }}
|
17
|
+
</a>
|
18
|
+
</li>
|
19
|
+
{% elif nav_item.children %}
|
20
|
+
{{ render(nav_item.children | first, ref) }}
|
21
|
+
{% endif %}
|
22
|
+
{% endmacro %}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/* Indentation. */
|
2
|
+
div.doc-contents:not(.first) {
|
3
|
+
padding-left: 25px;
|
4
|
+
border-left: .05rem solid var(--md-typeset-table-color);
|
5
|
+
}
|
6
|
+
|
7
|
+
/* Mark external links as such. */
|
8
|
+
a.external::after,
|
9
|
+
a.autorefs-external::after {
|
10
|
+
/* https://primer.style/octicons/arrow-up-right-24 */
|
11
|
+
mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path></svg>');
|
12
|
+
-webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path></svg>');
|
13
|
+
content: ' ';
|
14
|
+
|
15
|
+
display: inline-block;
|
16
|
+
vertical-align: middle;
|
17
|
+
position: relative;
|
18
|
+
|
19
|
+
height: 1em;
|
20
|
+
width: 1em;
|
21
|
+
background-color: currentColor;
|
22
|
+
}
|
23
|
+
|
24
|
+
a.external:hover::after,
|
25
|
+
a.autorefs-external:hover::after {
|
26
|
+
background-color: var(--md-accent-fg-color);
|
27
|
+
}
|
28
|
+
|
29
|
+
/* Tree-like output for backlinks. */
|
30
|
+
.doc-backlink-list {
|
31
|
+
--tree-clr: var(--md-default-fg-color);
|
32
|
+
--tree-font-size: 1rem;
|
33
|
+
--tree-item-height: 1;
|
34
|
+
--tree-offset: 1rem;
|
35
|
+
--tree-thickness: 1px;
|
36
|
+
--tree-style: solid;
|
37
|
+
display: grid;
|
38
|
+
list-style: none !important;
|
39
|
+
}
|
40
|
+
|
41
|
+
.doc-backlink-list li > span:first-child {
|
42
|
+
text-indent: .3rem;
|
43
|
+
}
|
44
|
+
.doc-backlink-list li {
|
45
|
+
padding-inline-start: var(--tree-offset);
|
46
|
+
border-left: var(--tree-thickness) var(--tree-style) var(--tree-clr);
|
47
|
+
position: relative;
|
48
|
+
margin-left: 0 !important;
|
49
|
+
|
50
|
+
&:last-child {
|
51
|
+
border-color: transparent;
|
52
|
+
}
|
53
|
+
&::before{
|
54
|
+
content: '';
|
55
|
+
position: absolute;
|
56
|
+
top: calc(var(--tree-item-height) / 2 * -1 * var(--tree-font-size) + var(--tree-thickness));
|
57
|
+
left: calc(var(--tree-thickness) * -1);
|
58
|
+
width: calc(var(--tree-offset) + var(--tree-thickness) * 2);
|
59
|
+
height: calc(var(--tree-item-height) * var(--tree-font-size));
|
60
|
+
border-left: var(--tree-thickness) var(--tree-style) var(--tree-clr);
|
61
|
+
border-bottom: var(--tree-thickness) var(--tree-style) var(--tree-clr);
|
62
|
+
}
|
63
|
+
&::after{
|
64
|
+
content: '';
|
65
|
+
position: absolute;
|
66
|
+
border-radius: 50%;
|
67
|
+
background-color: var(--tree-clr);
|
68
|
+
top: calc(var(--tree-item-height) / 2 * 1rem);
|
69
|
+
left: var(--tree-offset) ;
|
70
|
+
translate: calc(var(--tree-thickness) * -1) calc(var(--tree-thickness) * -1);
|
71
|
+
}
|
72
|
+
}
|
@@ -21,7 +21,7 @@ Welcome to our gallery of examples!
|
|
21
21
|
|
22
22
|
### with [D2](https://d2lang.com/)
|
23
23
|
|
24
|
-
> A modern diagram scripting language that turns text to diagrams.
|
24
|
+
> A modern diagram scripting language that turns text to diagrams.
|
25
25
|
|
26
26
|
````md exec="1" source="tabbed-right"
|
27
27
|
```python exec="true" html="true"
|
@@ -97,18 +97,6 @@ pydeps uses [Graphviz](https://graphviz.org/) under the hood to generate graphs.
|
|
97
97
|
```
|
98
98
|
````
|
99
99
|
|
100
|
-
### with [PyTermGUI](https://github.com/bczsalba/pytermgui)
|
101
|
-
|
102
|
-
> Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
|
103
|
-
|
104
|
-
````md exec="1" source="tabbed-right"
|
105
|
-
```python exec="true" html="true"
|
106
|
-
--8<-- "gallery/pytermgui.py"
|
107
|
-
```
|
108
|
-
````
|
109
|
-
|
110
|
-
TIP: There's a PyTermGUI-dedicated MkDocs plugin that allows to generate SVGs on-the-fly: [Termage](https://github.com/bczsalba/Termage). It is implemented using regular expressions in the `on_markdown` event of MkDocs, so is probably less robust than our actual SuperFence implementation here, but also allows for less verbose source to generate the SVG snippets.
|
111
|
-
|
112
100
|
## Console output
|
113
101
|
|
114
102
|
If you installed Markdown Exec with the `ansi` extra (`pip install markdown-exec[ansi]`), the ANSI colors in the output of shell commands will be translated to HTML/CSS, allowing to render them naturally in your documentation pages. For this to happen, use the [`result="ansi"` option](http://localhost:8000/markdown-exec/usage/#wrap-result-in-a-code-block).
|