Commit c2cfb5b316

c2cfb5b3166b7d4fd18a1be4afabeb13840e6203

parent: 9e278676eb

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-02-25 22:33 UTC

Updates gen readme script, and screenshot docs

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)
22
33## Screenshots
44
@@ -7,22 +7,22 @@
77> Licensed under MIT ⓒ [Alicia Sykes](https://aliciasykes.com) 2024
88
99### Category Page
10![fig 1: Category Page](screenshots/1_category-page.png)
10![fig 1: Category Page](1_category-page.png)
1111
1212### Section Page
13![fig 2: Section Page](screenshots/2_section-page.png)
13![fig 2: Section Page](2_section-page.png)
1414
1515### Browse Page
16![fig 3: Browse Page](screenshots/3_browse-page.png)
16![fig 3: Browse Page](3_browse-page.png)
1717
1818### Search Page
19![fig 4: Search Page](screenshots/4_search-page.png)
19![fig 4: Search Page](4_search-page.png)
2020
2121### About Page
22![fig 5: About Page](screenshots/5_about-page.png)
22![fig 5: About Page](5_about-page.png)
2323
2424### Section Page(2)
25![fig 6: Section Page2](screenshots/6_section-page2.png)
25![fig 6: Section Page2](6_section-page2.png)
2626
2727### Homepage
28![fig 7: Homepage](screenshots/homepage.png)
28![fig 7: Homepage](homepage.png)
lib/awesome-privacy-readme-gen.py +5 −3
@@ -44,15 +44,17 @@ def makeHref(text):
4444 return re.sub(r'[^\w\s-]', '', text.lower()).replace(" ", "-")
4545
4646def makeContents():
47 contents = "## Contents\n\n"
47 contents = "<details>\n"
48 contents += "<summary><h2>Contents</h2></summary>\n"
49
4850 for category in data.get('categories'):
49 contents += f"- **{category.get('name')}**"
51 contents += f"\n- **{category.get('name')}**"
5052 for section in category.get('sections'):
5153 contents += (
5254 f"\n\t- [{section.get('name')}](#{makeHref(section.get('name'))}) "
5355 f"({len(section.get('services') or [])})"
5456 )
55 contents += "\n"
57 contents += "\n</details>\n\n"
5658 return contents
5759
5860def makeAwesomePrivacy():