-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add project info & improve site layout
- Loading branch information
1 parent
2ee058a
commit 7ba449d
Showing
5 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
Please cite this software if you use it in a publication: | ||
|
||
```{python} | ||
#| echo: false | ||
#| output: asis | ||
!ccbr_tools cite ../CITATION.cff -f apalike | sed -E 's/^/> /g' | ||
``` | ||
|
||
### Bibtex entry | ||
|
||
```{python} | ||
#| echo: false | ||
#| output: asis | ||
print('```bibtex') | ||
!ccbr_tools cite ../CITATION.cff -f bibtex | ||
print('```') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: Contributors | ||
--- | ||
|
||
::: {layout-ncol=5} | ||
|
||
```{python} | ||
#| echo: false | ||
#| output: asis | ||
import requests | ||
def get_url_json(url): | ||
r = requests.get(url) | ||
data = r.json() if r.status_code == 200 else dict() | ||
return data | ||
repo = 'nf-modules' | ||
contribs = get_url_json(f'https://api.github.com/repos/CCBR/{repo}/contributors') | ||
for contrib in contribs: | ||
user_login = contrib['login'] | ||
user_info = get_url_json(f"https://api.github.com/users/{user_login}") | ||
user_name = user_info['name'] if user_info['name'] else user_login | ||
avatar_url = contrib['avatar_url'] | ||
profile_url = contrib['html_url'] | ||
print(f"[]({profile_url}){{width=80px height=80px}}\n") | ||
``` | ||
|
||
::: | ||
|
||
|
||
View the [contributors graph on GitHub](https://github.com/CCBR/nf-modules/graphs/contributors) for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ruamel.yaml | ||
ruamel.yaml.string | ||
git+https://github.com/CCBR/Tools.git |