mirror of https://git.sr.ht/~sircmpwn/srht.site
Add GraphQL docs
This commit is contained in:
parent
d2c0e48bf3
commit
6cd82941e3
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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).
|
Loading…
Reference in New Issue