shellman 1.0.2__tar.gz → 1.0.3__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.
Files changed (93) hide show
  1. shellman-1.0.3/AI_POLICY.md +15 -0
  2. {shellman-1.0.2 → shellman-1.0.3}/CHANGELOG.md +8 -0
  3. {shellman-1.0.2 → shellman-1.0.3}/CONTRIBUTING.md +6 -16
  4. {shellman-1.0.2 → shellman-1.0.3}/LICENSE +1 -1
  5. {shellman-1.0.2 → shellman-1.0.3}/PKG-INFO +4 -7
  6. {shellman-1.0.2 → shellman-1.0.3}/config/git-changelog.toml +1 -1
  7. {shellman-1.0.2 → shellman-1.0.3}/config/pytest.ini +2 -0
  8. {shellman-1.0.2 → shellman-1.0.3}/config/ruff.toml +8 -23
  9. shellman-1.0.3/config/ty.toml +6 -0
  10. {shellman-1.0.2 → shellman-1.0.3}/config/vscode/launch.json +1 -2
  11. {shellman-1.0.2 → shellman-1.0.3}/config/vscode/settings.json +1 -3
  12. shellman-1.0.3/config/zed/debug.json +44 -0
  13. shellman-1.0.3/config/zed/settings.json +43 -0
  14. shellman-1.0.3/config/zed/tasks.json +72 -0
  15. {shellman-1.0.2 → shellman-1.0.3}/docs/.overrides/main.html +5 -1
  16. {shellman-1.0.2 → shellman-1.0.3}/docs/.overrides/partials/comments.html +1 -1
  17. shellman-1.0.3/docs/css/apidocs.css +21 -0
  18. {shellman-1.0.2 → shellman-1.0.3}/duties.py +96 -60
  19. {shellman-1.0.2 → shellman-1.0.3}/pyproject.toml +10 -20
  20. {shellman-1.0.2 → shellman-1.0.3}/scripts/gen_credits.py +34 -23
  21. shellman-1.0.3/scripts/get_version.py +49 -0
  22. {shellman-1.0.2 → shellman-1.0.3}/scripts/make.py +74 -13
  23. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/__init__.py +20 -0
  24. shellman-1.0.3/src/shellman/__main__.py +32 -0
  25. shellman-1.0.3/src/shellman/_internal/__init__.py +17 -0
  26. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/cli.py +43 -23
  27. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/context.py +20 -1
  28. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/debug.py +18 -0
  29. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/reader.py +21 -3
  30. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/tags.py +71 -8
  31. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/__init__.py +26 -14
  32. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/filters.py +18 -5
  33. shellman-1.0.3/src/shellman/cli.py +35 -0
  34. shellman-1.0.3/src/shellman/context.py +35 -0
  35. shellman-1.0.3/src/shellman/reader.py +35 -0
  36. shellman-1.0.3/src/shellman/tags.py +35 -0
  37. shellman-1.0.3/src/shellman/templates/__init__.py +35 -0
  38. shellman-1.0.3/src/shellman/templates/filters.py +35 -0
  39. shellman-1.0.3/tests/__init__.py +25 -0
  40. shellman-1.0.3/tests/conftest.py +33 -0
  41. {shellman-1.0.2 → shellman-1.0.3}/tests/test_api.py +26 -6
  42. {shellman-1.0.2 → shellman-1.0.3}/tests/test_cli.py +18 -0
  43. {shellman-1.0.2 → shellman-1.0.3}/tests/test_context.py +20 -2
  44. shellman-1.0.3/tests/test_reader.py +50 -0
  45. shellman-1.0.3/zensical.toml +186 -0
  46. shellman-1.0.2/config/mypy.ini +0 -5
  47. shellman-1.0.2/docs/.overrides/partials/path-item.html +0 -22
  48. shellman-1.0.2/docs/css/material.css +0 -4
  49. shellman-1.0.2/docs/css/mkdocstrings.css +0 -72
  50. shellman-1.0.2/mkdocs.yml +0 -179
  51. shellman-1.0.2/scripts/get_version.py +0 -26
  52. shellman-1.0.2/src/shellman/__main__.py +0 -14
  53. shellman-1.0.2/src/shellman/_internal/__init__.py +0 -0
  54. shellman-1.0.2/src/shellman/cli.py +0 -17
  55. shellman-1.0.2/src/shellman/context.py +0 -17
  56. shellman-1.0.2/src/shellman/reader.py +0 -17
  57. shellman-1.0.2/src/shellman/tags.py +0 -17
  58. shellman-1.0.2/src/shellman/templates/__init__.py +0 -17
  59. shellman-1.0.2/src/shellman/templates/filters.py +0 -17
  60. shellman-1.0.2/tests/__init__.py +0 -7
  61. shellman-1.0.2/tests/conftest.py +0 -15
  62. shellman-1.0.2/tests/test_reader.py +0 -27
  63. {shellman-1.0.2 → shellman-1.0.3}/CODE_OF_CONDUCT.md +0 -0
  64. {shellman-1.0.2 → shellman-1.0.3}/README.md +0 -0
  65. {shellman-1.0.2 → shellman-1.0.3}/config/coverage.ini +0 -0
  66. {shellman-1.0.2 → shellman-1.0.3}/config/vscode/tasks.json +0 -0
  67. {shellman-1.0.2 → shellman-1.0.3}/docs/changelog.md +0 -0
  68. {shellman-1.0.2 → shellman-1.0.3}/docs/code_of_conduct.md +0 -0
  69. {shellman-1.0.2 → shellman-1.0.3}/docs/contributing.md +0 -0
  70. {shellman-1.0.2 → shellman-1.0.3}/docs/credits.md +0 -0
  71. {shellman-1.0.2 → shellman-1.0.3}/docs/index.md +0 -0
  72. {shellman-1.0.2 → shellman-1.0.3}/docs/js/feedback.js +0 -0
  73. {shellman-1.0.2 → shellman-1.0.3}/docs/license.md +0 -0
  74. {shellman-1.0.2 → shellman-1.0.3}/docs/reference/api.md +0 -0
  75. {shellman-1.0.2 → shellman-1.0.3}/docs/todo.md +0 -0
  76. {shellman-1.0.2 → shellman-1.0.3}/docs/usage/index.md +0 -0
  77. {shellman-1.0.2 → shellman-1.0.3}/docs/usage/plugins.md +0 -0
  78. {shellman-1.0.2 → shellman-1.0.3}/docs/usage/syntax.md +0 -0
  79. {shellman-1.0.2 → shellman-1.0.3}/docs/usage/tags.md +0 -0
  80. {shellman-1.0.2 → shellman-1.0.3}/scripts/make +0 -0
  81. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/helptext +0 -0
  82. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/helptext_function +0 -0
  83. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/manpage.groff +0 -0
  84. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/manpage.md +0 -0
  85. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/manpage_function.groff +0 -0
  86. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/manpage_function.md +0 -0
  87. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/usagetext +0 -0
  88. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/wikipage.md +0 -0
  89. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/wikipage_function.md +0 -0
  90. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/_internal/templates/data/wikipage_toc.md +0 -0
  91. {shellman-1.0.2 → shellman-1.0.3}/src/shellman/py.typed +0 -0
  92. {shellman-1.0.2 → shellman-1.0.3}/tests/fakescripts/simple.sh +0 -0
  93. {shellman-1.0.2 → shellman-1.0.3}/tests/test_tags.py +0 -0
@@ -0,0 +1,15 @@
1
+ # AI Contribution Policy
2
+
3
+ We accept AI-*assisted* contributions, both for code and documentation, with the following expectations:
4
+
5
+ - AI-assisted contributions must disclaim their use of AI.
6
+ - Contributors must fully understand the proposed changes and be able to explain why they are the correct approach.
7
+ - Issues must be created before creating pull requests (unless there is already a relevant issue).
8
+ - Issue and pull request templates must be followed.
9
+ - Comments (including bodies) in issues and pull requests must be written by humans. If you use LLMs to translate from one language to another, please include your original comment and the translated one.
10
+ - Git commits must be authored by humans, not AI/bot accounts or identities.
11
+ - Git commit messages must be written by humans, in English. If you cannot write English, please state so in the pull request body and we will write the commit messages ourselves.
12
+
13
+ Failure to comply with any of these requirements will result in issues or pull requests being closed immediately without comment. Repeated violations of this policy will result in a ban of the offending accounts/identities from contributing to this project and any related project from the same author/organization.
14
+
15
+ We do not accept AI-generated content in community spaces we maintain or moderate, such as GitHub discussions or Matrix rooms.
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  <!-- insertion marker -->
9
+ ## [1.0.3](https://github.com/pawamoy/shellman/releases/tag/1.0.3) - 2026-10-06
10
+
11
+ <small>[Compare with 1.0.2](https://github.com/pawamoy/shellman/compare/1.0.2...1.0.3)</small>
12
+
13
+ ### Build
14
+
15
+ - Drop support for Python 3.10 ([3a653d9](https://github.com/pawamoy/shellman/commit/3a653d9675b7b4744c31166fba0a8eda1bdf0ebf) by Timothée Mazzucotelli).
16
+
9
17
  ## [1.0.2](https://github.com/pawamoy/shellman/releases/tag/1.0.2) - 2025-03-27
10
18
 
11
19
  <small>[Compare with 1.0.1](https://github.com/pawamoy/shellman/compare/1.0.1...1.0.2)</small>
@@ -1,28 +1,19 @@
1
1
  # Contributing
2
2
 
3
- Contributions are welcome, and they are greatly appreciated! 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.
4
4
 
5
- ## Environment setup
5
+ **Please always create an issue before working on a new feature or a bug fix, so that we can discuss the implementation and make sure that your work will be merged.**
6
6
 
7
- Nothing easier!
7
+ ## Environment setup
8
8
 
9
- Fork and clone the repository, then:
9
+ Install [uv](https://github.com/astral-sh/uv) and [direnv](https://direnv.net/), fork and clone the repository, then:
10
10
 
11
11
  ```bash
12
12
  cd shellman
13
+ direnv allow
13
14
  make setup
14
15
  ```
15
16
 
16
- > NOTE: If it fails for some reason, you'll need to install [uv](https://github.com/astral-sh/uv) manually.
17
- >
18
- > You can install it with:
19
- >
20
- > ```bash
21
- > curl -LsSf https://astral.sh/uv/install.sh | sh
22
- > ```
23
- >
24
- > Now you can try running `make setup` again, or simply `uv sync`.
25
-
26
17
  You now have the dependencies installed.
27
18
 
28
19
  You can run the application with `make run shellman [ARGS...]`.
@@ -31,8 +22,7 @@ Run `make help` to see all the available actions!
31
22
 
32
23
  ## Tasks
33
24
 
34
- 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,
35
- while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
25
+ 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, while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
36
26
 
37
27
  If you work in VSCode, we provide [an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup) for the project.
38
28
 
@@ -1,6 +1,6 @@
1
1
  ISC License
2
2
 
3
- Copyright (c) 2020, Timothée Mazzucotelli
3
+ Copyright (c) 2020, Timothée Mazzucotelli and contributors
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shellman
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Write documentation in comments and render it with templates.
5
- Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
5
+ Author-Email: Timothée Mazzucotelli <dev@pawamoy.fr>
6
6
  License-Expression: ISC
7
7
  License-File: LICENSE
8
8
  Classifier: Development Status :: 4 - Beta
@@ -10,12 +10,11 @@ Classifier: Intended Audience :: Developers
10
10
  Classifier: Programming Language :: Python
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
13
  Classifier: Programming Language :: Python :: 3.11
16
14
  Classifier: Programming Language :: Python :: 3.12
17
15
  Classifier: Programming Language :: Python :: 3.13
18
16
  Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
19
18
  Classifier: Topic :: Documentation
20
19
  Classifier: Topic :: Software Development
21
20
  Classifier: Topic :: Utilities
@@ -28,10 +27,8 @@ Project-URL: Issues, https://github.com/pawamoy/shellman/issues
28
27
  Project-URL: Discussions, https://github.com/pawamoy/shellman/discussions
29
28
  Project-URL: Gitter, https://gitter.im/shellman/community
30
29
  Project-URL: Funding, https://github.com/sponsors/pawamoy
31
- Requires-Python: >=3.9
30
+ Requires-Python: >=3.11
32
31
  Requires-Dist: jinja2>=3
33
- Requires-Dist: importlib-metadata>=4.6; python_version < "3.10"
34
- Requires-Dist: typing-extensions>=4.0; python_version < "3.11"
35
32
  Description-Content-Type: text/markdown
36
33
 
37
34
  <p align="center">
@@ -4,6 +4,6 @@ in-place = true
4
4
  output = "CHANGELOG.md"
5
5
  parse-refs = false
6
6
  parse-trailers = true
7
- sections = ["build", "deps", "feat", "fix", "refactor"]
7
+ sections = ["build", "deps", "feat", "fix", "perf", "refactor"]
8
8
  template = "keepachangelog"
9
9
  versioning = "pep440"
@@ -10,5 +10,7 @@ testpaths =
10
10
  # action:message_regex:warning_class:module_regex:line
11
11
  filterwarnings =
12
12
  error
13
+ default::EncodingWarning
14
+ error::EncodingWarning:shellman
13
15
  # TODO: remove once pytest-xdist 4 is released
14
16
  ignore:.*rsyncdir:DeprecationWarning:xdist
@@ -1,34 +1,14 @@
1
- target-version = "py39"
1
+ target-version = "py311"
2
2
  line-length = 120
3
+ output-format = "concise"
3
4
 
4
5
  [lint]
5
6
  exclude = [
6
7
  "tests/fixtures/*.py",
7
8
  ]
8
- select = [
9
- "A", "ANN", "ARG",
10
- "B", "BLE",
11
- "C", "C4",
12
- "COM",
13
- "D", "DTZ",
14
- "E", "ERA", "EXE",
15
- "F", "FBT",
16
- "G",
17
- "I", "ICN", "INP", "ISC",
18
- "N",
19
- "PGH", "PIE", "PL", "PLC", "PLE", "PLR", "PLW", "PT", "PYI",
20
- "Q",
21
- "RUF", "RSE", "RET",
22
- "S", "SIM", "SLF",
23
- "T", "T10", "T20", "TCH", "TID", "TRY",
24
- "UP",
25
- "W",
26
- "YTT",
27
- ]
9
+ select = ["ALL"]
28
10
  ignore = [
29
11
  "A001", # Variable is shadowing a Python builtin
30
- "ANN101", # Missing type annotation for self
31
- "ANN102", # Missing type annotation for cls
32
12
  "ANN204", # Missing return type annotation for special method __str__
33
13
  "ANN401", # Dynamically typed expressions (typing.Any) are disallowed
34
14
  "ARG005", # Unused lambda argument
@@ -36,13 +16,18 @@ ignore = [
36
16
  "D105", # Missing docstring in magic method
37
17
  "D417", # Missing argument description in the docstring
38
18
  "E501", # Line too long
19
+ "EM101", # String literal when raising exception
20
+ "EM102", # f-string when raising exception
39
21
  "ERA001", # Commented out code
22
+ "FIX", # TODO, FIXME, etc.
40
23
  "G004", # Logging statement uses f-string
41
24
  "PLR0911", # Too many return statements
42
25
  "PLR0912", # Too many branches
43
26
  "PLR0913", # Too many arguments to function call
44
27
  "PLR0915", # Too many statements
45
28
  "SLF001", # Private member accessed
29
+ "TD002", # Missing author in TODO
30
+ "TD003", # Missing issue link for TODO
46
31
  "TRY003", # Avoid specifying long messages outside the exception class
47
32
  ]
48
33
 
@@ -0,0 +1,6 @@
1
+ [src]
2
+ exclude = ["tests/fixtures"]
3
+
4
+ [terminal]
5
+ error-on-warning = true
6
+ output-format = "concise"
@@ -23,11 +23,10 @@
23
23
  "name": "docs",
24
24
  "type": "debugpy",
25
25
  "request": "launch",
26
- "module": "mkdocs",
26
+ "module": "zensical",
27
27
  "justMyCode": false,
28
28
  "args": [
29
29
  "serve",
30
- "-v"
31
30
  ]
32
31
  },
33
32
  {
@@ -4,9 +4,6 @@
4
4
  "**/.venvs*/**": true,
5
5
  "**/venv*/**": true
6
6
  },
7
- "mypy-type-checker.args": [
8
- "--config-file=config/mypy.ini"
9
- ],
10
7
  "python.testing.unittestEnabled": false,
11
8
  "python.testing.pytestEnabled": true,
12
9
  "python.testing.pytestArgs": [
@@ -19,6 +16,7 @@
19
16
  "ruff.lint.args": [
20
17
  "--config=config/ruff.toml"
21
18
  ],
19
+ "ty.configurationFile": "config/ty.toml",
22
20
  "yaml.schemas": {
23
21
  "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
24
22
  },
@@ -0,0 +1,44 @@
1
+ // Project-local debug tasks
2
+ //
3
+ // For more documentation on how to configure debug tasks,
4
+ // see: https://zed.dev/docs/debugger
5
+ [
6
+ {
7
+ "label": "python (current file)",
8
+ "adapter": "Debugpy",
9
+ "request": "launch",
10
+ "program": "$ZED_FILE",
11
+ "justMyCode": false
12
+ },
13
+ {
14
+ "label": "run",
15
+ "adapter": "Debugpy",
16
+ "request": "launch",
17
+ "module": "shellman",
18
+ "justMyCode": false
19
+ },
20
+ {
21
+ "label": "docs",
22
+ "adapter": "Debugpy",
23
+ "request": "launch",
24
+ "module": "zensical",
25
+ "args": [
26
+ "serve"
27
+ ],
28
+ "justMyCode": false
29
+ },
30
+ {
31
+ "label": "test",
32
+ "adapter": "Debugpy",
33
+ "request": "launch",
34
+ "module": "pytest",
35
+ "args": [
36
+ "-c=config/pytest.ini",
37
+ "-vvv",
38
+ "--no-cov",
39
+ "--dist=no",
40
+ "tests"
41
+ ],
42
+ "justMyCode": false
43
+ }
44
+ ]
@@ -0,0 +1,43 @@
1
+ // Zed settings
2
+ //
3
+ // For information on how to configure Zed, see the Zed
4
+ // documentation: https://zed.dev/docs/configuring-zed
5
+ //
6
+ // To see all of Zed's default settings without changing your
7
+ // custom settings, run `zed: open default settings` from the
8
+ // command palette (cmd-shift-p / ctrl-shift-p)
9
+ {
10
+ "languages": {
11
+ "YAML": {
12
+ "auto_indent_on_paste": false,
13
+ "auto_indent": "preserve_indent",
14
+ "format_on_save": "off"
15
+ },
16
+ "Python": {
17
+ "language_servers": ["ty", "ruff"],
18
+ "code_actions_on_format": {
19
+ "source.organizeImports.ruff": true
20
+ },
21
+ "formatter": {
22
+ "language_server": {
23
+ "name": "ruff"
24
+ }
25
+ }
26
+ }
27
+ },
28
+ "lsp": {
29
+ "ty": {
30
+ "settings": {
31
+ "configurationFile": "config/ty.toml"
32
+ }
33
+ },
34
+ "ruff": {
35
+ "initialization_options": {
36
+ "settings": {
37
+ "configurationPreference": "filesystemFirst",
38
+ "configuration": "config/ruff.toml"
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,72 @@
1
+ [
2
+ {
3
+ "label": "changelog",
4
+ "command": "scripts/make",
5
+ "args": ["changelog"]
6
+ },
7
+ {
8
+ "label": "check",
9
+ "command": "scripts/make",
10
+ "args": ["check"]
11
+ },
12
+ {
13
+ "label": "check-quality",
14
+ "command": "scripts/make",
15
+ "args": ["check-quality"]
16
+ },
17
+ {
18
+ "label": "check-types",
19
+ "command": "scripts/make",
20
+ "args": ["check-types"]
21
+ },
22
+ {
23
+ "label": "check-docs",
24
+ "command": "scripts/make",
25
+ "args": ["check-docs"]
26
+ },
27
+ {
28
+ "label": "check-api",
29
+ "command": "scripts/make",
30
+ "args": ["check-api"]
31
+ },
32
+ {
33
+ "label": "clean",
34
+ "command": "scripts/make",
35
+ "args": ["clean"]
36
+ },
37
+ {
38
+ "label": "docs",
39
+ "command": "scripts/make",
40
+ "args": ["docs"]
41
+ },
42
+ {
43
+ "label": "docs-deploy",
44
+ "command": "scripts/make",
45
+ "args": ["docs-deploy"]
46
+ },
47
+ {
48
+ "label": "format",
49
+ "command": "scripts/make",
50
+ "args": ["format"]
51
+ },
52
+ {
53
+ "label": "release",
54
+ "command": "scripts/make",
55
+ "args": ["release"]
56
+ },
57
+ {
58
+ "label": "setup",
59
+ "command": "scripts/make",
60
+ "args": ["setup"]
61
+ },
62
+ {
63
+ "label": "test",
64
+ "command": "scripts/make",
65
+ "args": ["test", "coverage"]
66
+ },
67
+ {
68
+ "label": "vscode",
69
+ "command": "scripts/make",
70
+ "args": ["vscode"]
71
+ }
72
+ ]
@@ -1,7 +1,11 @@
1
1
  {% extends "base.html" %}
2
2
 
3
3
  {% block announce %}
4
-
4
+ <strong>Fund this project</strong> through
5
+ <a href="https://github.com/sponsors/pawamoy"><strong>sponsorship</strong></a>
6
+ <span class="twemoji heart pulse">
7
+ {% include ".icons/octicons/heart-fill-16.svg" %}
8
+ </span> &mdash;
5
9
  Follow
6
10
  <strong>@pawamoy</strong> on
7
11
  <a rel="me" href="https://fosstodon.org/@pawamoy">
@@ -1,5 +1,5 @@
1
1
  <!-- Giscus -->
2
- <!-- https://squidfunk.github.io/mkdocs-material/setup/adding-a-comment-system/#giscus-integration -->
2
+ <!-- https://zensical.org/docs/setup/comment-system/#giscus-integration -->
3
3
  <div id="feedback" style="display: none;">
4
4
  <h2 id="__comments">Feedback</h2>
5
5
  <script src="https://giscus.app/client.js"
@@ -0,0 +1,21 @@
1
+ /* Mark external links as such. */
2
+ a.external::after,
3
+ a.autorefs-external::after {
4
+ /* https://primer.style/octicons/arrow-up-right-24 */
5
+ 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>');
6
+ -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>');
7
+ content: ' ';
8
+
9
+ display: inline-block;
10
+ vertical-align: middle;
11
+ position: relative;
12
+
13
+ height: 1em;
14
+ width: 1em;
15
+ background-color: currentColor;
16
+ }
17
+
18
+ a.external:hover::after,
19
+ a.autorefs-external:hover::after {
20
+ background-color: var(--md-accent-fg-color);
21
+ }