mirror of
https://github.com/Lissy93/awesome-privacy.git
synced 2026-03-11 08:55:33 +00:00
Updates gen readme script, and screenshot docs
This commit is contained in:
parent
9e278676eb
commit
c2cfb5b316
2 changed files with 13 additions and 11 deletions
16
.github/screenshots/README.md
vendored
16
.github/screenshots/README.md
vendored
|
|
@ -1,4 +1,4 @@
|
|||
[<sup>↰ Back to README</sup>](../.github/README.md)
|
||||
[<sup>↰ Back to README</sup>](../README.md)
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
|
@ -7,22 +7,22 @@
|
|||
> Licensed under MIT ⓒ [Alicia Sykes](https://aliciasykes.com) 2024
|
||||
|
||||
### Category Page
|
||||

|
||||

|
||||
|
||||
### Section Page
|
||||

|
||||

|
||||
|
||||
### Browse Page
|
||||

|
||||

|
||||
|
||||
### Search Page
|
||||

|
||||

|
||||
|
||||
### About Page
|
||||

|
||||

|
||||
|
||||
### Section Page(2)
|
||||

|
||||

|
||||
|
||||
### Homepage
|
||||

|
||||

|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue