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

@ -91,10 +91,9 @@ build_api_doc:
image: cirrusci/flutter
script:
- 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:
paths:
- docs/api/
- doc/api/
only:
- main
@ -119,7 +118,7 @@ pages:
stage: deploy
image: alpine:latest
script:
- mv docs/api/ ./home/api
- mv doc/api/ ./home/api
- mv doc-public ./home/doc
- mv home public
dependencies:
@ -182,4 +181,3 @@ update-dependencies:
- pub get
- 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)'