Skip to content

Commit fc6e9fa

Browse files
committed
docs: replaces gitbook with honkit
Signed-off-by: pamfilos <pamfilosf@gmail.com>
1 parent 3ecc137 commit fc6e9fa

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

docker/nginx/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ RUN mkdir -p $NGINX_HTML_DIR
2020

2121
RUN apk update
2222
RUN apk add git yarn python g++ make && rm -rf /var/cache/apk/*
23-
RUN yarn global add gitbook-cli
2423

2524
# We invalidate cache always because there is no easy way for now to detect
2625
# if something in the whole git repo changed. For docker git clone <url> <dir>
@@ -62,8 +61,8 @@ RUN cp -rfp ./dist/* $NGINX_HTML_DIR
6261
COPY ./docs $WORKING_DIR/docs/
6362
WORKDIR $WORKING_DIR/docs
6463

65-
RUN gitbook install
66-
RUN gitbook build
64+
RUN yarn
65+
RUN yarn build
6766

6867
RUN mkdir -p $NGINX_HTML_DIR/docs/general
6968
RUN cp -rfp ./_book/* $NGINX_HTML_DIR/docs/general
@@ -84,8 +83,8 @@ RUN cp -rfp ./web_deploy/* $NGINX_HTML_DIR/docs/api
8483
RUN git clone https://github.com/cernanalysispreservation/cap-client.git $WORKING_DIR/cap-client/
8584
WORKDIR $WORKING_DIR/cap-client/docs
8685

87-
RUN gitbook install
88-
RUN gitbook build
86+
RUN yarn
87+
RUN yarn build
8988

9089
RUN mkdir -p $NGINX_HTML_DIR/docs/client
9190
RUN cp -rfp ./_book/* $NGINX_HTML_DIR/docs/client

docs/book.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"codeblock-filename",
1818
"theme-cap@git+https://github.com/cernanalysispreservation/gitbook-plugin-theme-cap.git",
1919
"terminal",
20-
"richquotes",
21-
"image-captions"
20+
"richquotes"
2221
],
2322
"variables": {
2423
"toc_title": "General Documentation",
@@ -88,10 +87,6 @@
8887
"alert": "warning",
8988
"picto": "fa-star"
9089
}
91-
},
92-
"image-captions": {
93-
"align": "center",
94-
"caption": "Image - _CAPTION_"
9590
}
9691
}
9792
}

docs/package.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,22 @@
66
"npm": ">=3"
77
},
88
"scripts": {
9-
"serve": "gitbook serve",
10-
"build": "gitbook build",
11-
"install": "gitbook install"
9+
"serve": "honkit serve",
10+
"build": "honkit build"
1211
},
1312
"dependencies": {
14-
"@gitbook-ng/gitbook": "*"
13+
"honkit": "*",
14+
"gitbook-plugin-back-to-top-button": "0.1.4",
15+
"gitbook-plugin-github": "3.0.0",
16+
"gitbook-plugin-github-buttons": "3.0.0",
17+
"gitbook-plugin-toggle-chapters": "0.0.3",
18+
"gitbook-plugin-anchorjs": "2.1.0",
19+
"gitbook-plugin-fontsettings": "*",
20+
"gitbook-plugin-sharing": "*",
21+
"gitbook-plugin-folding-menu": "*",
22+
"gitbook-plugin-codeblock-filename": "*",
23+
"gitbook-plugin-theme-cap": "git+https://github.com/cernanalysispreservation/gitbook-plugin-theme-cap.git",
24+
"gitbook-plugin-terminal": "*",
25+
"gitbook-plugin-richquotes": "*"
1526
}
1627
}

0 commit comments

Comments
 (0)