TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
975 stars 306 forks source link

Referring to documentation from within the console #2254

Closed kschiffer closed 4 years ago

kschiffer commented 4 years ago

Summary

We need to be able to refer to our documentation from within the console.

Why do we need this?

Provide help right where it is needed.

What is already there? What do you see now?

Documentation

What is missing? What do you want to see?

A safe way to refer to the documentation (linking) from within the console.

How do you propose to implement this?

Can you do this yourself and submit a Pull Request?

@pgalic96

kschiffer commented 4 years ago

I envision a usage like this

<DocLink ref="/concepts/webhook-templates">
  <Message content={sharedMessages.webhookTemplattes} />
</DocLink>

But we should also provide utilities to generate the documentation link outside of components:

const webhooksDocURL = docLink('/reference/application-server-data/webhooks')
// will become -> https://thethingsstack.io/v3.7.0/reference/application-server-data/webhooks/

I think the usage of those will mostly revolve around form titles and descriptions, so it's good to think about how we can easily add documentation links in there.

Bonus points if you can find a way to verify that the links are valid during build.

pgalic96 commented 4 years ago

closed via #2397