Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit cdff9d9

Browse files
committed
fixed vuepress container
1 parent e9d6623 commit cdff9d9

File tree

8 files changed

+18
-131
lines changed

8 files changed

+18
-131
lines changed

compose/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.7'
1+
version: "3.7"
22

33
services:
44
vuepress:
@@ -10,6 +10,6 @@ services:
1010
- "8082:8080"
1111
- "8081:8081"
1212
volumes:
13-
- ../documentation/docs:/app/docs
13+
- ../documentation:/app/
1414
environment:
1515
CI_PROJECT_URL: ${CI_PROJECT_URL}

documentation/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
FROM node:alpine
22
WORKDIR /app/
3-
COPY ./package.json .
4-
COPY ./start*.sh ./
5-
RUN mkdir docs
6-
COPY ./docs ./docs
3+
COPY . .

documentation/build_documentation.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ cd documentation
55

66
npm install
77

8-
npm install -D @vuepress/plugin-google-analytics @vuepress/plugin-pagination
9-
108
# build vuepress files
119
yarn run docs:build

documentation/docs/.vuepress/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
dest: "../public",
1515
plugins: {
1616
"@vuepress/google-analytics": {
17-
ga: "UA-131443776-1",
17+
ga: process.env.GOOGLE_ANALYTICS_CODE,
1818
},
1919
},
2020
serviceWorker: false,
@@ -36,6 +36,10 @@ module.exports = {
3636
{ text: "Tools Used", link: "/start/tools/" },
3737
],
3838
},
39+
{
40+
text: "Guide",
41+
items: [{ text: "Testing", link: "/guide/testing/" }],
42+
},
3943
{
4044
text: "DevOps",
4145
items: [

documentation/docs/.vuepress/override.styl

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

documentation/docs/guide/testing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To run Pytest and Jest, you can use `docker-compose exec`, or you can shell into
77
Using `docker-compose exec`:
88

99
```
10-
docker-compose exec backend pytest
10+
docker exec backend pytest
1111
```
1212

1313
```
@@ -18,7 +18,7 @@ root@b24c4206002e:/code# pytest
1818
To run Jest tests, you can run:
1919

2020
```
21-
docker-compose exec frontend npm run test
21+
docker exec frontend npm run test
2222
```
2323

2424
## Integration tests

documentation/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
"scripts": {
33
"docs:dev": "vuepress dev docs",
44
"docs:build": "vuepress build docs",
5-
"start": "http-server /app/docs/.vuepress/dist -p 8002"
5+
"start": "http-server /app/docs/.vuepress/dist -p 8002",
6+
"local": "nodemon --ext md,vue --watch .vuepress --watch . --exec vuepress dev docs"
67
},
78
"dependencies": {
8-
"vuepress": "1.5.0"
9+
"vuepress": "1.5.0",
10+
"@vuepress/plugin-google-analytics": "1.5.0"
11+
},
12+
"devDependencies": {
13+
"nodemon": "2.0.4"
914
}
1015
}

documentation/start_dev.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ npm cache verify
66
# install project dependencies
77
npm install
88

9-
npm install -D @vuepress/plugin-google-analytics @vuepress/plugin-pagination
109
# build vuepress files
11-
yarn run docs:dev
10+
npm run local

0 commit comments

Comments
 (0)