summaryrefslogtreecommitdiff
path: root/docs/api/swagger.md
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-02-20 23:09:17 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-20 23:09:17 +0100
commit40eea3b4097019a5eaca65968cc249ed564e0023 (patch)
tree263e1c7203aac205d676f5d016262f3c0fb1bcdf /docs/api/swagger.md
parent[docs] correct swagger docs (#1543) (diff)
downloadgotosocial-40eea3b4097019a5eaca65968cc249ed564e0023.tar.xz
[feature] Use Material theme for docs (#1535)
* [feature] Use Material theme for docs This changes the theme to use Material with the slate (dark) theme and the accent colour set to orange. It also replaces the swagger plugin with one that works correctly with the Material theming. * Add theme by @f0x52 Co-authored-by: f0x52 <f0x@cthu.lu> * Enable social cards The dependencies for cairosvg and pillow can be satisfied on RTD, so this adds them to our requirements.txt and enables the social plugin. This generates opengraph and twitter card tags as well as fancy preview images in GTS colour style for platforms that show that as part of link previews. * Update Conda environment.yml * update theme for swagger, basic light theme option * dark mode mobile header bg color --------- Co-authored-by: f0x52 <f0x@cthu.lu>
Diffstat (limited to 'docs/api/swagger.md')
-rw-r--r--docs/api/swagger.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api/swagger.md b/docs/api/swagger.md
index 50191f18d..2f6727215 100644
--- a/docs/api/swagger.md
+++ b/docs/api/swagger.md
@@ -6,4 +6,4 @@ The resulting API documentation is rendered below, for quick reference.
If you'd like to do more with the spec, you can also view the [swagger.yaml](/api/swagger/swagger.yaml) directly, and then paste it into something like the [Swagger Editor](https://editor.swagger.io/) in order to autogenerate GoToSocial API clients in different languages, convert the doc to JSON or OpenAPI v3 specification, etc. See [here](https://swagger.io/tools/open-source/getting-started/) for more.
-!!swagger swagger.yaml!!
+<swagger-ui src="swagger.yaml"/>