Skip to content

Commit

Permalink
Addedd gitbook
Browse files Browse the repository at this point in the history
  • Loading branch information
VForiel committed Sep 12, 2021
1 parent 4788b2c commit 3f97061
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# requiring the environment of NodeJS 10
image: node:10

# add 'node_modules' to cache for speeding up builds
cache:
paths:
- node_modules/ # Node modules and dependencies

before_script:
- npm install gitbook-cli -g # install gitbook
- gitbook fetch 3.2.3 # fetch final stable version
- gitbook install # add any requested plugins in book.json

test:
stage: test
script:
- gitbook build . public # build to public path
only:
- branches # this job will affect every branch except 'master'
except:
- master

# the 'pages' job will deploy and build your site to the 'public' path
pages:
stage: deploy
script:
- gitbook build . public # build to public path
artifacts:
paths:
- public
expire_in: 1 week
3 changes: 3 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Summary

* [Test4](docs/Test4)
3 changes: 3 additions & 0 deletions docs/Test4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Hello World!

Test4
2 changes: 1 addition & 1 deletion pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 1,
"description": "Librairy for Map Making"
"description": "Library for Map Making"
}
}

0 comments on commit 3f97061

Please sign in to comment.