From 3f97061e8c6fbc78fbe66d190bff1bef8eb5920a Mon Sep 17 00:00:00 2001 From: "Vincent (Leirof)" Date: Sun, 12 Sep 2021 22:23:37 +0200 Subject: [PATCH] Addedd gitbook --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ SUMMARY.md | 3 +++ docs/Test4.md | 3 +++ pack.mcmeta | 2 +- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 SUMMARY.md create mode 100644 docs/Test4.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..20117df10 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/SUMMARY.md b/SUMMARY.md new file mode 100644 index 000000000..5e309036a --- /dev/null +++ b/SUMMARY.md @@ -0,0 +1,3 @@ +# Summary + +* [Test4](docs/Test4) \ No newline at end of file diff --git a/docs/Test4.md b/docs/Test4.md new file mode 100644 index 000000000..24c34697b --- /dev/null +++ b/docs/Test4.md @@ -0,0 +1,3 @@ +# Hello World! + +Test4 \ No newline at end of file diff --git a/pack.mcmeta b/pack.mcmeta index 80507617a..120a72e24 100644 --- a/pack.mcmeta +++ b/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { "pack_format": 1, - "description": "Librairy for Map Making" + "description": "Library for Map Making" } }