Commit 93de4d9
fix: fetch plugin documentation (#26)
fixes #23 .
Since GH became more agressive with its rate limiting, the collection of
plugin docs would fail with a HTTP status code 429: Too many requests.
This PR moves the markdown fetching logic from plain http requests to
using gitPython.
## Test Plan
1. run `pixi run build`
2. Open the `build/index.html` file and check that
a. Plugins that provide 'intro.md' (e.g. the slurm executor plugin) have
their documentation displayed
b. Pages that do not provide their own documentation show a little
warning box
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Switched plugin documentation retrieval to a Git-based cloning
approach with multi-branch support, replacing the prior HTTP-based
retrieval.
* **Chores**
* Added a Git-related dependency (gitpython) to support repository
cloning.
* **Style**
* Cleaned up CI workflow YAML formatting and alignment; no behavioral
changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Lea Evers <l.evers@yandex.com>1 parent 44b7911 commit 93de4d9
4 files changed
Lines changed: 193 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments