Browse Source

📝 Fix topic repository list not being displayed and `skip_users` not being applied (#15995)

pull/16009/head
Yurii Motov 2 days ago
committed by GitHub
parent
commit
e24d44cce4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      docs/en/data/skip_users.yml
  2. 1
      docs/en/data/topic_repos.yml
  3. 2
      docs/en/docs/external-links.md
  4. 14
      docs/en/docs/fastapi-people.md
  5. 2
      scripts/topic_repos.py

1
docs/en/data/skip_users.yml

@ -1,3 +1,4 @@
users:
- tiangolo
- codecov
- github-actions

1
docs/en/data/topic_repos.yml

@ -1,3 +1,4 @@
repos:
- name: headroom
html_url: https://github.com/headroomlabs-ai/headroom
stars: 55017

2
docs/en/docs/external-links.md

@ -23,7 +23,7 @@ But now that FastAPI is the backend framework with the most GitHub stars across
Most starred [GitHub repositories with the topic `fastapi`](https://github.com/topics/fastapi):
{% for repo in topic_repos %}
{% for repo in topic_repos.repos %}
<a href={{repo.html_url}} target="_blank">★ {{repo.stars}} - {{repo.name}}</a> by <a href={{repo.owner_html_url}} target="_blank">@{{repo.owner_login}}</a>.

14
docs/en/docs/fastapi-people.md

@ -97,7 +97,7 @@ These are the users that have been [helping others the most with questions in Gi
{% for user in people.last_month_experts[:10] %}
{% if user.login not in skip_users %}
{% if user.login not in skip_users.users %}
<div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Questions replied: {{ user.count }}</div></div>
@ -115,7 +115,7 @@ These are the users that have been [helping others the most with questions in Gi
{% for user in people.three_months_experts[:10] %}
{% if user.login not in skip_users %}
{% if user.login not in skip_users.users %}
<div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Questions replied: {{ user.count }}</div></div>
@ -133,7 +133,7 @@ These are the users that have been [helping others the most with questions in Gi
{% for user in people.six_months_experts[:10] %}
{% if user.login not in skip_users %}
{% if user.login not in skip_users.users %}
<div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Questions replied: {{ user.count }}</div></div>
@ -151,7 +151,7 @@ These are the users that have been [helping others the most with questions in Gi
{% for user in people.one_year_experts[:20] %}
{% if user.login not in skip_users %}
{% if user.login not in skip_users.users %}
<div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Questions replied: {{ user.count }}</div></div>
@ -171,7 +171,7 @@ These are the users that have [helped others the most with questions in GitHub](
{% for user in people.experts[:50] %}
{% if user.login not in skip_users %}
{% if user.login not in skip_users.users %}
<div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Questions replied: {{ user.count }}</div></div>
@ -193,7 +193,7 @@ They have contributed source code, documentation, etc. 📦
{% for user in (contributors.values() | list)[:50] %}
{% if user.login not in skip_users %}
{% if user.login not in skip_users.users %}
<div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Pull Requests: {{ user.count }}</div></div>
@ -214,7 +214,7 @@ Translation reviewers have the **power to approve translations** of the document
<div class="user-list user-list-center">
{% for user in (translation_reviewers.values() | list)[:50] %}
{% if user.login not in skip_users %}
{% if user.login not in skip_users.users %}
<div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Reviews: {{ user.count }}</div></div>

2
scripts/topic_repos.py

@ -44,7 +44,7 @@ def main() -> None:
owner_html_url=repo.owner.html_url,
)
)
data = [repo.model_dump() for repo in final_repos]
data = {"repos": [repo.model_dump() for repo in final_repos]}
# Local development
# repos_path = Path("../docs/en/data/topic_repos.yml")

Loading…
Cancel
Save