You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sorting): add more sorting kinds and fix loading slowness
* feat(sorting): add clone functionality
* feat(sorting): add github functionality
* feat(sorting): allow github api to make calls without token
* feat(sorting): add gitlab api
* feat(sorting): add codeberg api
* feat(themes): add repository field over link
because of the theme ficeFox
* fix(themes): remove deleted theme
* feat(sorting): fix cloning to allow any source
* themes.json: add new info for sorting
* themes.json: update info for freeplay/firefox-onebar
* feat(sorting): update, if necessary, instead of force-adding fields and values
* fix(pug): replace fontawesome
* feat(sorting): add update (pushed_at) and stars sorting kinds
* build(site): add sorting features
* docs(scripts): add small guide for contribution for theme info
* docs(contribution): add repository field in guide to add theme
* docs(issues): add repository field for issue template when adding theme
* fix(tests): allow theme to have more fields and accept repository field
* fix(tests): remove img-switch.sh, it's not used anymore
* feat(sorting): replace trigger with menu
* fix(disclaimer): do not show theme filter buttons
* build(site): add menu for sorting and fix disclaimer page
* feat(front): slowly render cards to improve performance
Copy file name to clipboardExpand all lines: README.md
+28-4Lines changed: 28 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,15 @@ A collection site of Firefox userchrome themes, mostly from FirefoxCSS Reddit.<b
36
36
37
37
---
38
38
39
-
## Add your theme <3
39
+
## Contribution
40
+
41
+
### Add your theme <3
40
42
41
43
+ If you have a Github account:
42
44
1. Fork this repository
43
45
2. Look for a file called `themes.json`, open and edit it
44
46
3. Below the last `}` add `,` right after a copy the [code below](#code) and paste it in the file
45
-
4. Add the properties of your theme: **title**, **link**, **description**, **image** and **tag** (Cannot be left empty)
47
+
4. Add the properties of your theme: **title**, **link**, **description**, **image**, **tag** (cannot be left empty), and **repository**.
46
48
5.**Avoid the use of escaped characters, and the order matters**
47
49
6. Please, do not use a very big image, preferably (650x500)
48
50
7. Image property:
@@ -54,20 +56,42 @@ A collection site of Firefox userchrome themes, mostly from FirefoxCSS Reddit.<b
54
56
1. When creating an issue, you will find a template for submitting a theme. Use that one. It's easy.
55
57
56
58
+ If you have a Twitter account:
57
-
1. Send **at least** the following properties: **tags**, **title**, **link**, **description**, and **picture** to [@Neikon66](https://twitter.com/Neikon66).
59
+
1. Send **at least** the following properties: **title**, **link**, **description**, **image**, **tags**, and **repository** to [@Neikon66](https://twitter.com/Neikon66).
1. Install [nushell](https://www.nushell.sh/) in your machine.
77
+
2. Generate a [Github token API](https://github.com/settings/tokens) for your account and save it;
78
+
2. Clone the repository;
79
+
3. In your terminal, change directory into the `/scripts/` folder.
80
+
4. Run `nu`.
81
+
5. Run `use sort_themes.nu`;
82
+
6. Run `sort_themes --help` and read and understand the flags;
83
+
7. Run `sort_themes --github YOUR_GITHUB_TOKEN`;
84
+
8. Check if everything ran fine, if yes, replace the new generated `themes.json` file.
85
+
9. Commit your changes.
86
+
10. Open a pull request and send your contribution for us to review.
87
+
11. Thank you :)
88
+
89
+
**Why generate a token API for only Github?**
90
+
91
+
Most themes' repositories are in Gitub, so it's pretty easy to hit the anonymous rate limit for API calls. With a token, that limit is higher, making it easier to contribute.
92
+
93
+
---
94
+
71
95
<h1align="center">What do you think =?</h1>
72
96
73
97
<palign="center">Feel free to send me any feedback via issue or my twitter <ahref="https://twitter.com/Neikon66">@Neikon66</a>.</p>
0 commit comments