Move documentation build to dist/

pull/147/head
Candid Dauth 2021-04-17 14:43:38 +02:00
rodzic fc0d86c046
commit ffac638528
5 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -5,4 +5,4 @@ RUN apk add --no-cache nodejs yarn
COPY ./ /tmp/facilmap-docs
RUN cd /tmp/facilmap-docs && yarn install && yarn build && mv src/.vuepress/dist/* /usr/local/apache2/htdocs/ && rm -rf /tmp/facilmap-docs
RUN cd /tmp/facilmap-docs && yarn install && yarn build && mv dist/* /usr/local/apache2/htdocs/ && rm -rf /tmp/facilmap-docs

Wyświetl plik

@ -11,11 +11,13 @@
"scripts": {
"dev-server": "vuepress dev src",
"build": "vuepress build src",
"clean": "rimraf dist",
"check": "vuepress check-md src"
},
"private": true,
"devDependencies": {
"markdown-it-footnote": "^3.0.2",
"rimraf": "^3.0.2",
"vuepress": "^1.5.3",
"vuepress-plugin-check-md": "^0.0.2"
},

Wyświetl plik

@ -8,6 +8,7 @@ module.exports = {
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
],
dest: `${__dirname}/../../dist`,
themeConfig: {
repo: '',
editLinks: false,

Wyświetl plik

@ -10,7 +10,7 @@ If you want to make some changes to the documentation, first install the necessa
Before building the documentation, run `yarn run check` to check that all links in the markdown point to a valid destination.
To build the documentation, run `yarn run build`. This will create static HTML files in `src/.vuepress/dist` that can be served by a simple HTTP server.
To build the documentation, run `yarn run build`. This will create static HTML files in `dist` that can be served by a simple HTTP server.
## Embed videos

Wyświetl plik

@ -6534,6 +6534,13 @@ rimraf@^2.5.4, rimraf@^2.6.3:
dependencies:
glob "^7.1.3"
rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
dependencies:
glob "^7.1.3"
ripemd160@^2.0.0, ripemd160@^2.0.1:
version "2.0.2"
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"