This is an automated email from the ASF dual-hosted git repository. gerben pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-annotator-website.git
commit 6c6dcc297b6b4504ad327e753da4b27ebb1d3479 Author: Gerben <[email protected]> AuthorDate: Sat May 8 17:15:13 2021 +0200 Include TypeDoc-generated API docs With our own theme --- .eleventy.js | 2 ++ package.json | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 3b3fbaa..b5878db 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -8,6 +8,8 @@ module.exports = function(eleventyConfig) { // '...relative to this file': '...relative to `dir.output` below' // Built demo content gets copied in verbatim 'annotator/web/dist/': 'demo/', + // Built API docs for each module get copied in verbatim + 'annotator/docs': 'docs/api', // also the images, css, and non-11ty js files 'src/.htaccess': '.htaccess', 'src/annotator-icon.svg': 'annotator-icon.svg', diff --git a/package.json b/package.json index e1f1ff4..6ce24f1 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "private": true, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "yarn run build:demo && eleventy", - "build:demo": "cd annotator && yarn run web:build", - "serve": "yarn run build:demo && eleventy --serve", + "build": "yarn run build:submodule && eleventy", + "build:submodule": "cd annotator && yarn run web:build && yarn run docs --theme ../typedoc_theme", + "serve": "yarn run build:submodule && eleventy --serve", "postinstall": "cd annotator && yarn install" }, "repository": {
