Skip to content

Commit

Permalink
chore: Template upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Oct 5, 2023
1 parent c1705f0 commit b305634
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 0.16.9
_commit: 0.16.10
_src_path: gh:pawamoy/copier-pdm
author_email: pawamoy@pm.me
author_fullname: Timothée Mazzucotelli
Expand Down
2 changes: 2 additions & 0 deletions docs/credits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ hide:
- toc
---

<!-- blacken-docs:off -->
```python exec="yes"
--8<-- "scripts/gen_credits.py"
```
<!-- blacken-docs:on -->
20 changes: 8 additions & 12 deletions docs/insiders/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,20 @@ a handful of them, [thanks to our awesome sponsors][sponsors]! -->
data_source = "docs/insiders/goals.yml"
```

<!-- blacken-docs:off -->
```python exec="1" session="insiders"
--8<-- "scripts/insiders.py"
```

<!-- ```python exec="1" session="insiders"
print(f"""The moment you <a href="#how-to-become-a-sponsor">become a sponsor</a>, you'll get **immediate
access to {len(unreleased_features)} additional features** that you can start using right away, and
which are currently exclusively available to sponsors:\n""")
print(
f"""The moment you <a href="#how-to-become-a-sponsor">become a sponsor</a>, you'll get **immediate
access to {len(unreleased_features)} additional features** that you can start using right away, and
which are currently exclusively available to sponsors:\n"""
)

for feature in unreleased_features:
feature.render(badge=True)
``` -->

We currently don't have any features available to sponsors only.
Right now we are putting our efforts into the documentation,
then we will start again implementing features.
You can get updates on *mkdocstrings-python Insiders* work
by following **@pawamoy** on :material-mastodon:{ .mastodon } [Fosstodon](https://fosstodon.org/@pawamoy).
```
<!-- blacken-docs:on -->

## How to become a sponsor

Expand Down
7 changes: 1 addition & 6 deletions scripts/gen_credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import re
import sys
from importlib.metadata import PackageNotFoundError, metadata
from itertools import chain
from pathlib import Path
from textwrap import dedent
Expand All @@ -13,11 +13,6 @@
from jinja2 import StrictUndefined
from jinja2.sandbox import SandboxedEnvironment

if sys.version_info < (3, 8):
from importlib_metadata import PackageNotFoundError, metadata
else:
from importlib.metadata import PackageNotFoundError, metadata

project_dir = Path(".")
pyproject = toml.load(project_dir / "pyproject.toml")
project = pyproject["project"]
Expand Down

0 comments on commit b305634

Please sign in to comment.