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]
keywords = ["bun.sh"]
keywords = ["bun", "bun.sh"]
content = """
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).
@ -10,7 +10,7 @@ Read more [here](<https://bun.sh/>)
"""
[bug]
keywords = ["report", "bugs"]
keywords = ["bug", "report", "bugs"]
content = """
Found a bug in bun?
If you are unsure, first discuss your bug in <#887787428973281300> or <#995247410794217553>
@ -18,7 +18,7 @@ Found a bug in bun?
"""
[feature-request]
keywords = ["feature", "request"]
keywords = ["feature-request", "feature", "request"]
content = """
Any idea what to add to bun?
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]
keywords = ["express", "server", "routes"]
keywords = ["hono", "express", "server", "routes"]
content = """
**Hono - [] means flame🔥 in Japanese**
Is a small, simple, and ultrafast web framework for Cloudflare Workers, Deno, Bun, and others
@ -35,7 +35,7 @@ content = """
"""
[not-same-file-system]
keywords = ["backend copyfile", "copyfile"]
keywords = ["not-same-file-system", "backend copyfile", "copyfile"]
content = """
**error: NotSameFileSystem installing [package]**
@ -44,7 +44,7 @@ Due to technical limitations, hardlinks won't work with different partitions, to
"""
[windows]
keywords = ["windows support"]
keywords = ["windows", "windows support"]
content = """
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>)

View file

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