fix: have dartdocs use doc folder, mdbook stuff use the docs folder

This commit is contained in:
Sorunome 2021-02-11 13:07:12 +01:00
parent c2637a0015
commit 888fdc2078
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@ stages:
- coverage - coverage
- builddocs - builddocs
- deploy - deploy
coverage: coverage:
tags: tags:
- linux - linux
@ -36,7 +36,7 @@ coverage_without_olm:
stage: coverage stage: coverage
image: debian:testing image: debian:testing
dependencies: [] dependencies: []
script: script:
- apt update - apt update
- apt install -y curl gnupg2 git sqlite3 libsqlite3-dev - apt install -y curl gnupg2 git sqlite3 libsqlite3-dev
- curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - - curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
@ -49,7 +49,7 @@ coverage_without_olm:
- chmod +x ./test.sh - chmod +x ./test.sh
- pub get - pub get
- pub run test - pub run test
e2ee_test: e2ee_test:
tags: tags:
- linux - linux
@ -91,10 +91,9 @@ build_api_doc:
image: cirrusci/flutter image: cirrusci/flutter
script: script:
- dartdoc --exclude "dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui" - dartdoc --exclude "dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui"
- mv doc docs
artifacts: artifacts:
paths: paths:
- docs/api/ - doc/api/
only: only:
- main - main
@ -119,7 +118,7 @@ pages:
stage: deploy stage: deploy
image: alpine:latest image: alpine:latest
script: script:
- mv docs/api/ ./home/api - mv doc/api/ ./home/api
- mv doc-public ./home/doc - mv doc-public ./home/doc
- mv home public - mv home public
dependencies: dependencies:
@ -182,4 +181,3 @@ update-dependencies:
- pub get - pub get
- git remote set-url --push origin git@gitlab.com:$CI_PROJECT_PATH - git remote set-url --push origin git@gitlab.com:$CI_PROJECT_PATH
- 'git diff --exit-code || (git checkout -B ${UPDATE_BRANCH} && git add . && git commit -m "chore: Update dependencies" && git push -f origin ${UPDATE_BRANCH} && ./scripts/open-mr.sh)' - 'git diff --exit-code || (git checkout -B ${UPDATE_BRANCH} && git add . && git commit -m "chore: Update dependencies" && git push -f origin ${UPDATE_BRANCH} && ./scripts/open-mr.sh)'