summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-01-14 21:46:21 +0000
committerClement Ho <clemmakesapps@gmail.com>2019-01-14 21:46:21 +0000
commit7999ca32241e785df539fc0d3a354f97bc2266a0 (patch)
tree01d46a35ab2ebaac758a5f8a6b7924be83cbf8ad /config
parent3de1b521b7502adf380a241b2136d9cd0c17c4e3 (diff)
downloadgitlab-ce-7999ca32241e785df539fc0d3a354f97bc2266a0.tar.gz
Generate searchable JSDoc documentation
Diffstat (limited to 'config')
-rw-r--r--config/jsdocs.config.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/jsdocs.config.js b/config/jsdocs.config.js
new file mode 100644
index 00000000000..52635b1ce13
--- /dev/null
+++ b/config/jsdocs.config.js
@@ -0,0 +1,14 @@
+module.exports = {
+ source: {
+ include: ['app/assets/javascripts/'],
+ },
+ opts: {
+ template: 'node_modules/docdash',
+ destination: 'jsdoc/',
+ recurse: true,
+ },
+ docdash: {
+ search: true,
+ static: true,
+ },
+};