Add GraphQL docs

This commit is contained in:
Drew DeVault 2021-02-18 11:35:23 -05:00
parent d2c0e48bf3
commit 6cd82941e3
4 changed files with 13 additions and 2 deletions

View File

@ -10,4 +10,4 @@ tasks:
hugo
tar -C public -cvz . > ../site.tar.gz
- upload: |
acurl https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz
acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz

View File

@ -26,3 +26,4 @@ domain, and you can your own domain as well.
- [Custom domains](/custom-domains)
- [Automating deployments](/automating-deployments)
- [Limitations](/limitations)
- [GraphQL API](/graphql)

View File

@ -33,7 +33,7 @@ tasks:
cd $site
tar -cvz . > ../site.tar.gz
- upload: |
acurl https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz
acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz
```
Update the `site` variable to your desired website (e.g.

10
content/graphql.md Normal file
View File

@ -0,0 +1,10 @@
---
title: GraphQL API
---
## GraphQL API
pages.sr.ht offers a GraphQL API that you can use to manage sites —
publishing, listing, and unpublishing them. It follows the standard [sourcehut
GraphQL conventions](https://man.sr.ht/graphql.md), and you can find its schema
[here](https://git.sr.ht/~sircmpwn/pages.sr.ht/tree/master/item/graph/schema.graphqls).