diff --git a/antora-playbook-local.yml b/antora-playbook-local.yml new file mode 100644 index 0000000000..f17fb3d3b2 --- /dev/null +++ b/antora-playbook-local.yml @@ -0,0 +1,19 @@ +site: + title: TinyMCE Documentation + url: https://www.tiny.cloud/docs + start_page: tinymce::index.adoc +content: + sources: + - url: ./ + branches: HEAD + start_path: ./ +urls: + html_extension_style: indexify +ui: + bundle: + url: https://tiny-cloud-docs-antora-themes-staging.s3.amazonaws.com/ui-bundle.zip +asciidoc: + extensions: + - '@tinymce/antora-extension-livedemos' +runtime: + fetch: true diff --git a/package.json b/package.json index 97aa67e422..c7bedfeca3 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,16 @@ }, "homepage": "https://www.tiny.cloud/docs/", "scripts": { - "watch": "nodemon --exec antora antora-playbook.yml", - "server": "http-server build/site/ --port 4000", - "serve": "npm-run-all -p watch server", "build": "./-scripts/api-reference.sh", - "build-local": "./-scripts/api-reference-local.sh", + "build-local-ref": "./-scripts/api-reference-local.sh", "clean": "rm -rf ./build", - "start": "yarn clean && yarn serve" + "nodemon": "nodemon --exec yarn antora ./antora-playbook.yml", + "nodemon-dev": "nodemon --exec yarn antora ./antora-playbook-local.yml", + "server": "http-server build/site/ --port 4000", + "serve": "npm-run-all -p nodemon server", + "serve-dev": "npm-run-all -p nodemon-dev server", + "start": "yarn clean && yarn serve", + "start-dev": "yarn clean && yarn serve-dev" }, "author": "Tiny Technologies Inc", "license": "CC-BY-NC-SA-3.0",