Skip to content

Commit 9cf3ce2

Browse files
xbill82scottinet
authored andcommitted
Migrate the ci (V2) to use KuzDoc (#47)
## What does this PR do? Migrate the CI to use KuzDoc. ### How should this be manually tested? Go take a look at the CI job for the dead-link check. To test the build and deploy, you can follow the steps of the Doc Dev Deploy in the .travis.yml file and test them locally.
1 parent 8a67379 commit 9cf3ce2

File tree

5 files changed

+1746
-71
lines changed

5 files changed

+1746
-71
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ codecov
1212

1313
node_modules/
1414
doc/framework
15-
frontmatter-errors.json
15+
frontmatter-errors.json
16+
node_modules

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ jobs:
3838
node_js: 10
3939

4040
before_script:
41+
- npm ci
4142
- npm run doc-prepare
42-
- npm run --prefix doc/framework clone-repos
43+
- $(npm bin)/kuzdoc iterate-repos:install --repos_path doc/framework/.repos/
44+
- $(npm bin)/kuzdoc framework:link -d /sdk/csharp/2/ -v 2
4345
script:
4446
- gem install typhoeus
45-
- HYDRA_MAX_CONCURRENCY=20 npm run --prefix doc/framework dead-links
47+
- cd doc/framework/ && HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/sdk/csharp/2/
4648

4749
- stage: Tests
4850
name: Build documentation
@@ -86,6 +88,7 @@ jobs:
8688
language: node_js
8789
node_js: 10
8890
env:
91+
- BRANCH=dev
8992
- NODE_ENV=production
9093
- S3_BUCKET=docs-next.kuzzle.io
9194
- CLOUDFRONT_DISTRIBUTION_ID=E2ZCCEK9GRB49U
@@ -99,6 +102,7 @@ jobs:
99102

100103
install:
101104
- pip install awscli --upgrade --user
105+
- npm ci
102106

103107
script:
104108
- npm run doc-prepare
@@ -132,6 +136,7 @@ jobs:
132136

133137
install:
134138
- pip install awscli --upgrade --user
139+
- npm ci
135140

136141
script:
137142
- npm run doc-prepare

doc/doc.sh

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)