docs: new way for tags

This commit is contained in:
Jozef Steinhübl 2023-09-19 15:45:36 +02:00
parent 200dd5a665
commit d08964c2cf
No known key found for this signature in database
GPG key ID: E944BC293F5FF7E7

View file

@ -2,19 +2,22 @@
Official serverless discord bot for [bun](https://bun.sh/) [discord server](https://bun.sh/discord)
## Contributing tags
To create a new tag, you need to fork this repository and edit `tags.toml` file
To create a new tag, you need to fork this repository and add new file to `data/tags/name.md` file
Format:
```toml
[example-tag]
keywords = ["example", "tag"]
content = """
I love bun ❤️
"""
```md
---
question: Question question question?
keywords:
- "keyword1"
- "keyword2"
---
comment 1
comment 2
comment 3
```
Informations:
- The bot uses interactions so you can use emoji from all discord servers. However, please only use ours as we can't control the others.
- You can use hyperlink `[bun.sh](<https://bun.sh>)`
- Keywords need to include the tag name
- Use `+++` for codeblock (https://canary.discord.com/channels/876711213126520882/887787428973281300/997045766411530281)