Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/vitepress/external_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ https://github.com/kmarchais/mmgpy:
https://github.com/dhruvhaldar/FOAMFlask:
image: "https://github.com/dhruvhaldar/FOAMFlask/raw/dev_pyvista_ts_lkgc/Screenshots/geometry.png"

https://github.com/MBradley1985/SAGE-Viewer:
https://github.com/MBradley1985/ViSAGE:
topics: [trame, trame-app]
image: "https://raw.githubusercontent.com/MBradley1985/SAGE-Viewer/main/docs/images/hero.png"
image: "https://raw.githubusercontent.com/MBradley1985/ViSAGE/main/docs/images/hero.png"

https://github.com/jwindgassen/jupyter-trame-proxy:
topics: [trame, trame-app, paraview]
Expand Down
11 changes: 9 additions & 2 deletions docs/vitepress/fetch_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import json
import re
from datetime import datetime, timedelta, timezone
import warnings
import yaml


Expand Down Expand Up @@ -173,9 +174,15 @@ def fetch_gh_info(gh_repos):
repos_data = retrieve_multiple_repos_graphql(gh_repos)
json_repos_info = repos_data_to_json(repos_data)

fetched_repos_info = json_repos_info.copy()
fetched_repos_info = {}
for url, repo_info in gh_repos.items():
fetched_repos_info[url] |= repo_info
try:
fetched_repos_info[url] = repo_info | json_repos_info[url]
except KeyError as e:
warnings.warn(
f"The fetched github repository has a different URL than the one provided. "
f"Check that the repository URL in `extrernal_repos.yml` isn't an alias: {e}."
)
return fetched_repos_info


Expand Down
Loading
Loading