remove sample forms from apidoc (#13507)

* remove sample forms from apidoc

* add explicit path to config for apidoc

* bring all apidoc files into apidoc folder
This commit is contained in:
Nicolas CARPi
2021-09-17 23:34:08 +02:00
committed by GitHub
parent c5b0833bf2
commit 6457fe84cd
4 changed files with 5 additions and 5 deletions

View File

@@ -2,8 +2,9 @@ import gulp from 'gulp';
import clean from 'rimraf';
import apidoc from 'apidoc';
const APIDOC_DEST_PATH = './apidoc_build';
const APIDOC_DEST_PATH = './apidoc/html';
const APIDOC_SRC_PATH = './website/server';
const APIDOC_CONFIG_PATH = './apidoc/apidoc.json';
gulp.task('apidoc:clean', done => {
clean(APIDOC_DEST_PATH, done);
});
@@ -12,6 +13,7 @@ gulp.task('apidoc', gulp.series('apidoc:clean', done => {
const result = apidoc.createDoc({
src: APIDOC_SRC_PATH,
dest: APIDOC_DEST_PATH,
config: APIDOC_CONFIG_PATH,
});
if (result === false) {