gitpod-io / gitpod-qa

GNU General Public License v3.0
6 stars 3 forks source link

add script for generating discord index #1

Closed axonasif closed 1 year ago

axonasif commented 1 year ago

Here goes the first PR 😛

We will need to set two env vars from a team Gitpod project for this script to work:

Also, not sure how __SPLIT_HERE__ is supposed to be used, can you please help with that?

ghostdevv commented 1 year ago

Also, not sure how __SPLIT_HERE__ is supposed to be used, can you please help with that?

The __SPLIT_HERE__ is added when I parse the docs markdown - I am thinking of rewriting that logic so don't need to worry about that now

DISCORD_INDEX_TOKEN

Can we use the bot token for this? If so that env var would be DISCORD_TOKEN

axonasif commented 1 year ago

Can we use the bot token for this? If so that env var would be DISCORD_TOKEN

It's not querying from a discord bot, but rather a meilisearch index.

I just renamed the term TOKEN to API_KEY: https://github.com/gitpod-io/gitpod-qa/pull/1/commits/976955f8aa5a2f20fb62adffb25692fd18e3aafa

A read-only API_KEY can be found here: https://www.notion.so/gitpod/Gitpod-Community-096f164b378742cfb61a88babdd5626d?pvs=4#3c7280e978674e5e8008595db1495fdd

ghostdevv commented 1 year ago

Ah awesome, ty!