GraphQL Elixir docs are powered by gatsby.
For running locally this docs. You have to execute
npm install -g gatsby && npm install
And then
gatsby develop
For building the docs into the public
dir, just run:
npm deploy
This repo is setup as an organisation github pages repo. This means the source material is in the source
branch and the website is updated from master
.
To publish manually you need to run the following:
# generate html from source files and
git checkout source
npm deploy
git add .
git commit -m"Deploy"
# pull the build dir from the source branch into master branch
git checkout master
git checkout source build
# copy to root dir
cp -vR public/* .
# delete public dir
rm -rf public
# commit and pushing to master will deploy
git add .
git commit -m"Deploy latest"
git push
Bit convoluted but will automate.
Might automate this in a similar fashion to:
https://github.com/graphql-python/graphene/blob/master/.travis.yml#L39-L58
Thanks to the Graphene Python team for their great looking site on which this is heavily based.