Commit c2cfb5b316
Unsigned
Layout: unified · split
.github/screenshots/README.md +8 −8
| @@ -1,4 +1,4 @@ | ||
| 1 | [<sup>↰ Back to README</sup>](../.github/README.md) | |
| 1 | [<sup>↰ Back to README</sup>](../README.md) | |
| 2 | 2 | |
| 3 | 3 | ## Screenshots |
| 4 | 4 | |
| @@ -7,22 +7,22 @@ | ||
| 7 | 7 | > Licensed under MIT ⓒ [Alicia Sykes](https://aliciasykes.com) 2024 |
| 8 | 8 | |
| 9 | 9 | ### Category Page |
| 10 |  | |
| 10 |  | |
| 11 | 11 | |
| 12 | 12 | ### Section Page |
| 13 |  | |
| 13 |  | |
| 14 | 14 | |
| 15 | 15 | ### Browse Page |
| 16 |  | |
| 16 |  | |
| 17 | 17 | |
| 18 | 18 | ### Search Page |
| 19 |  | |
| 19 |  | |
| 20 | 20 | |
| 21 | 21 | ### About Page |
| 22 |  | |
| 22 |  | |
| 23 | 23 | |
| 24 | 24 | ### Section Page(2) |
| 25 |  | |
| 25 |  | |
| 26 | 26 | |
| 27 | 27 | ### Homepage |
| 28 |  | |
| 28 |  | |
lib/awesome-privacy-readme-gen.py +5 −3
| @@ -44,15 +44,17 @@ def makeHref(text): | ||
| 44 | 44 | return re.sub(r'[^\w\s-]', '', text.lower()).replace(" ", "-") |
| 45 | 45 | |
| 46 | 46 | def makeContents(): |
| 47 | contents = "## Contents\n\n" | |
| 47 | contents = "<details>\n" | |
| 48 | contents += "<summary><h2>Contents</h2></summary>\n" | |
| 49 | ||
| 48 | 50 | for category in data.get('categories'): |
| 49 | contents += f"- **{category.get('name')}**" | |
| 51 | contents += f"\n- **{category.get('name')}**" | |
| 50 | 52 | for section in category.get('sections'): |
| 51 | 53 | contents += ( |
| 52 | 54 | f"\n\t- [{section.get('name')}](#{makeHref(section.get('name'))}) " |
| 53 | 55 | f"({len(section.get('services') or [])})" |
| 54 | 56 | ) |
| 55 | contents += "\n" | |
| 57 | contents += "\n</details>\n\n" | |
| 56 | 58 | return contents |
| 57 | 59 | |
| 58 | 60 | def makeAwesomePrivacy(): |