mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-08 02:15:12 -06:00
fix: correct site copy that described a tag filter and mixed terminology
Copy told visitors to tap a tag to filter and mentioned a filter although tags are plain links and no filter exists; casing and terminology were inconsistent. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -36,7 +36,7 @@ BUILTIN_PUBLIC_URL = f"{SITE_URL}categories/{BUILTIN_SLUG}/"
|
||||
|
||||
SPONSORSHIP_PATH = "/sponsorship/"
|
||||
SPONSORSHIP_PUBLIC_URL = f"{SITE_URL}sponsorship/"
|
||||
SPONSORSHIP_DESCRIPTION = "Sponsorship for awesome-python: tiers, audience, and how to get your product in front of professional Python developers evaluating tools for production use."
|
||||
SPONSORSHIP_DESCRIPTION = "Sponsorship for Awesome Python: tiers, audience, and how to get your product in front of professional Python developers evaluating tools for production use."
|
||||
|
||||
BUNDLED_PREFIX_RE = re.compile(r"^\(part of ")
|
||||
|
||||
@@ -280,7 +280,7 @@ def category_meta_description(name: str, entry_count: int, description: str) ->
|
||||
if description:
|
||||
lead = description if description.endswith((".", "!", "?")) else f"{description}."
|
||||
return f"{lead} {count_sentence}"
|
||||
return f"{count_sentence} Part of the Awesome Python catalog."
|
||||
return f"{count_sentence} Part of the Awesome Python list."
|
||||
|
||||
|
||||
def subcategory_meta_description(name: str, parent_name: str, entry_names: Sequence[str]) -> str:
|
||||
|
||||
@@ -62,7 +62,8 @@
|
||||
<main id="content">
|
||||
<noscript
|
||||
><p class="noscript-msg">
|
||||
Search and filtering require JavaScript.
|
||||
Search, sorting, and row details need JavaScript. The full list is also on
|
||||
<a href="https://github.com/vinta/awesome-python">GitHub</a>.
|
||||
</p></noscript
|
||||
>
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
{% set named_groups = entry_groups | selectattr("name") | list %}
|
||||
<p class="order-note">
|
||||
{% if group_categories %}Listed by section, in editorial order.{% elif named_groups %}Listed in editorial order, grouped by use case.{% else %}Listed in editorial order.{% endif %}
|
||||
<strong>Click a column</strong> to re-sort the whole list.
|
||||
<strong>Click a column header</strong> to re-sort the whole list.
|
||||
</p>
|
||||
{% else %}
|
||||
<div>
|
||||
@@ -223,7 +223,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
<p class="results-note">
|
||||
Press <kbd>/</kbd> to search. Tap a tag to filter. Click any row for
|
||||
Press <kbd>/</kbd> to search. Tags open their category. Click a row for
|
||||
details.
|
||||
</p>
|
||||
</div>
|
||||
@@ -248,8 +248,8 @@
|
||||
<input
|
||||
type="search"
|
||||
class="search"
|
||||
placeholder="Search {{ entries | length }} projects in {{ category.name }}..."
|
||||
data-short-placeholder="Search {{ entries | length }} projects..."
|
||||
placeholder="Search {{ entries | length }} projects in {{ category.name }}…"
|
||||
data-short-placeholder="Search {{ entries | length }} projects…"
|
||||
aria-label="Search projects"
|
||||
/>
|
||||
</div>
|
||||
@@ -260,7 +260,7 @@
|
||||
class="table-wrap"
|
||||
tabindex="0"
|
||||
role="region"
|
||||
aria-label="Libraries table"
|
||||
aria-label="Projects table"
|
||||
>
|
||||
<table class="table"{% if entry_groups %} data-default-sort="editorial"{% endif %}>
|
||||
<thead>
|
||||
@@ -270,7 +270,7 @@
|
||||
<button type="button" class="sort-btn">Project Name</button>
|
||||
</th>
|
||||
<th class="col-downloads" data-sort="downloads">
|
||||
<button type="button" class="sort-btn">PyPI Downloads</button>
|
||||
<button type="button" class="sort-btn" title="PyPI downloads, last 30 days">PyPI Downloads</button>
|
||||
</th>
|
||||
<th class="col-stars" data-sort="stars">
|
||||
<button type="button" class="sort-btn">GitHub Stars</button>
|
||||
@@ -318,7 +318,7 @@
|
||||
</div>
|
||||
|
||||
<div class="no-results" hidden>
|
||||
<p>No projects match your search or filter.</p>
|
||||
<p>No projects match your search.</p>
|
||||
<p class="no-results-hint">
|
||||
Try a broader term, or
|
||||
<button class="no-results-clear">browse all projects</button>.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<div class="hero-grid">
|
||||
<div class="hero-copy">
|
||||
<p class="hero-kicker">The definitive list that answers "I want to do X in Python, which tool should I use?"</p>
|
||||
<p class="hero-kicker">Answers “I want to do X in Python. Which tool should I use?”</p>
|
||||
<h1>Awesome Python</h1>
|
||||
<p class="hero-sub">{{ subtitle }}</p>
|
||||
<p class="hero-proof">
|
||||
@@ -37,7 +37,7 @@
|
||||
href="#library-index"
|
||||
class="hero-action hero-action-primary"
|
||||
data-scroll-to="library-index"
|
||||
>Browse the List</a
|
||||
>Browse the list</a
|
||||
>
|
||||
<a
|
||||
href="https://github.com/vinta/awesome-python"
|
||||
@@ -84,7 +84,7 @@
|
||||
<h2>Search every project in one place</h2>
|
||||
</div>
|
||||
<p class="results-note">
|
||||
Press <kbd>/</kbd> to search. Tap a tag to filter. Click any row for
|
||||
Press <kbd>/</kbd> to search. Tags open their category. Click a row for
|
||||
details.
|
||||
</p>
|
||||
</div>
|
||||
@@ -109,8 +109,8 @@
|
||||
<input
|
||||
type="search"
|
||||
class="search"
|
||||
placeholder="Search {{ entries | length }} projects across {{ total_categories }} categories..."
|
||||
data-short-placeholder="Search {{ entries | length }} projects..."
|
||||
placeholder="Search {{ entries | length }} projects across {{ total_categories }} categories…"
|
||||
data-short-placeholder="Search {{ entries | length }} projects…"
|
||||
aria-label="Search projects"
|
||||
/>
|
||||
</div>
|
||||
@@ -121,7 +121,7 @@
|
||||
class="table-wrap"
|
||||
tabindex="0"
|
||||
role="region"
|
||||
aria-label="Libraries table"
|
||||
aria-label="Projects table"
|
||||
>
|
||||
<table class="table">
|
||||
<thead>
|
||||
@@ -131,7 +131,7 @@
|
||||
<button type="button" class="sort-btn">Project Name</button>
|
||||
</th>
|
||||
<th class="col-downloads" data-sort="downloads">
|
||||
<button type="button" class="sort-btn">PyPI Downloads</button>
|
||||
<button type="button" class="sort-btn" title="PyPI downloads, last 30 days">PyPI Downloads</button>
|
||||
</th>
|
||||
<th class="col-stars" data-sort="stars">
|
||||
<button type="button" class="sort-btn">GitHub Stars</button>
|
||||
@@ -280,7 +280,7 @@
|
||||
</div>
|
||||
|
||||
<div class="no-results" hidden>
|
||||
<p>No projects match your search or filter.</p>
|
||||
<p>No projects match your search.</p>
|
||||
<p class="no-results-hint">
|
||||
Try a broader term, or
|
||||
<button class="no-results-clear">browse all projects</button>.
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
<script>location="{{ target_url }}"</script>
|
||||
<meta http-equiv="refresh" content="0; url={{ target_url }}">
|
||||
<h1>Redirecting…</h1>
|
||||
<a href="{{ target_url }}">Click here if you are not redirected.</a>
|
||||
<p>Not redirected? <a href="{{ target_url }}">Go to {{ target_url }}</a>.</p>
|
||||
</html>
|
||||
|
||||
@@ -861,7 +861,7 @@ class TestBuild:
|
||||
assert collection["name"] == "Python AI & ML Libraries"
|
||||
assert collection["@id"] == "https://awesome-python.com/categories/ai-ml/"
|
||||
assert collection["url"] == "https://awesome-python.com/categories/ai-ml/"
|
||||
assert collection["description"] == "Explore 1 curated Python project in AI & ML. Part of the Awesome Python catalog."
|
||||
assert collection["description"] == "Explore 1 curated Python project in AI & ML. Part of the Awesome Python list."
|
||||
|
||||
def test_category_title_skips_libraries_after_plural_noun(self, tmp_path):
|
||||
readme = textwrap.dedent("""\
|
||||
@@ -1025,7 +1025,7 @@ class TestBuild:
|
||||
|
||||
assert parser.title.strip() == "Sponsor Awesome Python"
|
||||
assert parser.meta_by_name["description"] == (
|
||||
"Sponsorship for awesome-python: tiers, audience, and how to get your product in front of professional Python developers evaluating tools for production use."
|
||||
"Sponsorship for Awesome Python: tiers, audience, and how to get your product in front of professional Python developers evaluating tools for production use."
|
||||
)
|
||||
assert parser.links_by_rel["canonical"] == "https://awesome-python.com/sponsorship/"
|
||||
assert '<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>' in html
|
||||
|
||||
Reference in New Issue
Block a user