-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
67 lines (46 loc) · 1.38 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
format:
html:
toc: false
ipynb-shell-interactivity: all
---
```{python}
#| include: false
from IPython.display import Markdown
import sys
import tomllib
with open("pyproject.toml", "rb") as f:
pyproject = tomllib.load(f)
authors = pyproject.get("project").get("authors")
project = pyproject.get("project").get("name")
version = pyproject.get("project").get("version")
homepage = pyproject.get("project").get("urls").get("homepage")
documentation = pyproject.get("project").get("urls").get("documentation")
issues = pyproject.get("project").get("urls").get("issues")
authors_list = ""
for author in authors:
if authors_list != "":
authors_list = author_list + ", "
authors_list = authors_list + author.get("name")
```
:::{.column-margin style="font-size: 18px; color: #555; font-weight: 400;"}
[Version]{style="font-size: 22px; font-weight: 800;"}
`{python} version`
<br/>
[Links]{style="font-size: 22px; font-weight: 800;"}
[Browse source code](`{python} homepage`)
[Report a bug](`{python} issues`)
<br/>
[Developers]{style="font-size: 22px; font-weight: 800;"}
```{python}
#| echo: false
for author in authors:
Markdown(author.get("name"))
Markdown("[Author]{style='font-size:15px;'}")
```
:::
{{< include README.md >}}
:::{.footer style="text-align: center;"}
<hr/>
`{python} project` - `{python} version` | Developed by `{python} authors_list`
:::