From ed5a7110ef4047997db180eac4b175c32e24d7dd Mon Sep 17 00:00:00 2001 From: MitchCTiny Date: Fri, 19 Apr 2024 10:14:07 +1000 Subject: [PATCH] DOC-2384: Added local playbook and dev scripts --- antora-playbook-local.yml | 19 +++++++++++++++++++ package.json | 13 ++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 antora-playbook-local.yml 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",