tags: add tag name to keyword

This commit is contained in:
xHyroM 2022-07-11 08:19:57 +02:00
parent 229921acfc
commit 6dd037af5f
2 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
[bun] [bun]
keywords = ["bun.sh"] keywords = ["bun", "bun.sh"]
content = """ content = """
Bun is a modern JavaScript runtime like Node or Deno. It was built from scratch to focus on three main things: Bun is a modern JavaScript runtime like Node or Deno. It was built from scratch to focus on three main things:
Start fast (it has the edge in mind). Start fast (it has the edge in mind).
@ -10,7 +10,7 @@ Read more [here](<https://bun.sh/>)
""" """
[bug] [bug]
keywords = ["report", "bugs"] keywords = ["bug", "report", "bugs"]
content = """ content = """
Found a bug in bun? Found a bug in bun?
If you are unsure, first discuss your bug in <#887787428973281300> or <#995247410794217553> If you are unsure, first discuss your bug in <#887787428973281300> or <#995247410794217553>
@ -18,7 +18,7 @@ Found a bug in bun?
""" """
[feature-request] [feature-request]
keywords = ["feature", "request"] keywords = ["feature-request", "feature", "request"]
content = """ content = """
Any idea what to add to bun? Any idea what to add to bun?
Please consider if this is a request for bun, not for other 3rd party packages Please consider if this is a request for bun, not for other 3rd party packages
@ -26,7 +26,7 @@ Any idea what to add to bun?
""" """
[hono] [hono]
keywords = ["express", "server", "routes"] keywords = ["hono", "express", "server", "routes"]
content = """ content = """
**Hono - [] means flame🔥 in Japanese** **Hono - [] means flame🔥 in Japanese**
Is a small, simple, and ultrafast web framework for Cloudflare Workers, Deno, Bun, and others Is a small, simple, and ultrafast web framework for Cloudflare Workers, Deno, Bun, and others
@ -35,7 +35,7 @@ content = """
""" """
[not-same-file-system] [not-same-file-system]
keywords = ["backend copyfile", "copyfile"] keywords = ["not-same-file-system", "backend copyfile", "copyfile"]
content = """ content = """
**error: NotSameFileSystem installing [package]** **error: NotSameFileSystem installing [package]**
@ -44,7 +44,7 @@ Due to technical limitations, hardlinks won't work with different partitions, to
""" """
[windows] [windows]
keywords = ["windows support"] keywords = ["windows", "windows support"]
content = """ content = """
Bun does not currently have support for Windows, so you must use WSL (Windows Subsystem for Linux). Bun does not currently have support for Windows, so you must use WSL (Windows Subsystem for Linux).
To install WSL, check [microsoft documentation](<https://docs.microsoft.com/en-us/windows/wsl/install>) To install WSL, check [microsoft documentation](<https://docs.microsoft.com/en-us/windows/wsl/install>)

View file

@ -28,6 +28,7 @@ export const findTags = (name: string) => {
]; ];
else { else {
const tag = getTag(name); const tag = getTag(name);
console.log(tag);
if (tag) if (tag)
return [ return [
{ {