Skip to content

Commit

Permalink
Updates gen readme script, and screenshot docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Feb 25, 2024
1 parent 9e27867 commit c2cfb5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/screenshots/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[<sup>↰ Back to README</sup>](../.github/README.md)
[<sup>↰ Back to README</sup>](../README.md)

## Screenshots

Expand All @@ -7,22 +7,22 @@
> Licensed under MIT ⓒ [Alicia Sykes](https://aliciasykes.com) 2024
### Category Page
![fig 1: Category Page](screenshots/1_category-page.png)
![fig 1: Category Page](1_category-page.png)

### Section Page
![fig 2: Section Page](screenshots/2_section-page.png)
![fig 2: Section Page](2_section-page.png)

### Browse Page
![fig 3: Browse Page](screenshots/3_browse-page.png)
![fig 3: Browse Page](3_browse-page.png)

### Search Page
![fig 4: Search Page](screenshots/4_search-page.png)
![fig 4: Search Page](4_search-page.png)

### About Page
![fig 5: About Page](screenshots/5_about-page.png)
![fig 5: About Page](5_about-page.png)

### Section Page(2)
![fig 6: Section Page2](screenshots/6_section-page2.png)
![fig 6: Section Page2](6_section-page2.png)

### Homepage
![fig 7: Homepage](screenshots/homepage.png)
![fig 7: Homepage](homepage.png)
8 changes: 5 additions & 3 deletions lib/awesome-privacy-readme-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,17 @@ def makeHref(text):
return re.sub(r'[^\w\s-]', '', text.lower()).replace(" ", "-")

def makeContents():
contents = "## Contents\n\n"
contents = "<details>\n"
contents += "<summary><h2>Contents</h2></summary>\n"

for category in data.get('categories'):
contents += f"- **{category.get('name')}**"
contents += f"\n- **{category.get('name')}**"
for section in category.get('sections'):
contents += (
f"\n\t- [{section.get('name')}](#{makeHref(section.get('name'))}) "
f"({len(section.get('services') or [])})"
)
contents += "\n"
contents += "\n</details>\n\n"
return contents

def makeAwesomePrivacy():
Expand Down

0 comments on commit c2cfb5b

Please sign in to comment.