Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create custom non-GraphQL documentation #888

Open
naftis opened this issue Sep 19, 2023 · 1 comment
Open

Create custom non-GraphQL documentation #888

naftis opened this issue Sep 19, 2023 · 1 comment
Assignees

Comments

@naftis
Copy link

naftis commented Sep 19, 2023

We have a couple of endpoints like the OAuth-compliant /token -endpoint, which is an REST API. I want to document this stuff to the same docs to keep it understandable for the API user. What is the recommended way to do this, or should I look into other solutions?

@newhouse
Copy link
Collaborator

Hello @naftis and thanks for using SpectaQL!

The quick/dirty way would be to add a few "intro items" to your config:
https://github.com/anvilco/spectaql/blob/main/config-example.yml#L439

This may be fine, but you will only be able to have content render in the main/center column, and not out in the examples area.

If you want more control, you'll probably need to make a simple "custom theme" that overrides the view templates that you're interested in controlling/modifying. It's not too hard to do to make simple modifications:
https://github.com/anvilco/spectaql/blob/main/examples/themes/README.md

Hopefully one of those 2 options will work for you!

@newhouse newhouse self-assigned this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants