File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 11# Welcome to VCE Algorithmics notes
22
3+ ## Introduction
4+
35!!! danger
46
57 This is a work in progress. Some information may be incorrect or outdated
@@ -19,12 +21,21 @@ Pull requests are welcome! Please see [the repository](https://github.com/mcloug
1921For mobile viewers, please open the site menu in the top left to view pages and contents
2022
2123
22- Quick Links:
24+ ## Quick Links
2325
2426- [ Algorithms] ( algorithms.md )
2527- [ Computer Science] ( computer-science.md )
2628- [ Graphs] ( graphs.md )
2729
2830!!! tip
2931
30- Each page can easily be printed with <kbd>ctrl</kbd> / <kbd>cmd</kbd> + <kbd>p</kbd>
32+ Each page can easily be printed with <kbd>ctrl</kbd> / <kbd>cmd</kbd> + <kbd>p</kbd>
33+
34+ ---
35+
36+ ## Contributors
37+
38+ This could be you!
39+
40+ {{ contributors() | safe }}
41+
Original file line number Diff line number Diff line change 1+ # Used for jinja-type macros
2+
3+ import requests
4+
5+
6+ def define_env (env ):
7+ @env .macro
8+ def contributors (repo = "mcloughlan/algo-notes" ):
9+ USERS = requests .get (
10+ f"https://api.github.com/repos/{ repo } /contributors" ).json ()
11+ html = ""
12+ for u in USERS :
13+ html += f'<a href="https://github.com/{ u ["login" ]} "><img src="https://github.com/{ u ["login" ]} .png?size=50" alt="{ u ["login" ]} " style="border-radius: 50%; margin: 5px;"></a>\n '
14+ return html
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ use_directory_urls: false
4040plugins :
4141 - search
4242 - git-revision-date-localized
43+ - macros # For contribution icons
4344extra :
4445 meta :
4546 description : " A complete set of VCE Algorithmics notes. Constantly revised since 2022"
Original file line number Diff line number Diff line change 11mkdocs-material ~= 9.6.16
2- mkdocs-git-revision-date-localized-plugin ~= 1.4.7
2+ mkdocs-git-revision-date-localized-plugin ~= 1.4.7
3+ mkdocs-macros-plugin ~= 1.3.7
You can’t perform that action at this time.
0 commit comments