move documentation from readme to gh pages

This commit is contained in:
Simon Aronsson 2019-06-01 14:33:31 +02:00
parent 985a922099
commit 34b765960c
4 changed files with 61 additions and 451 deletions

View file

@ -1,6 +1,10 @@
version: 2.1
executors:
py:
docker:
- image: circleci/python:latest
working_directory: ~/repo
go:
docker:
- image: circleci/golang:latest
@ -50,6 +54,15 @@ workflows:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+)*$/
- publish-docs:
requires:
- testing
- linting
filters:
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+)*$/
jobs:
checkout:
executor: go
@ -203,3 +216,18 @@ jobs:
-e DOCKER_REPOSITORY=containrrr/watchtower \
-e GIT_BRANCH=master \
lsiodev/readme-sync bash -c 'node sync'
publish-docs:
executor: py
steps:
- attach_workspace:
at: .
- run:
name: Install prerequisites
command: |
pip install \
mkdocs \
mkdocs-material \
md-toc
- run:
name: Generate and publish
command: mkdocs gh-deploy