From 8631a515b5158f49535ebb4a407283795c1502b2 Mon Sep 17 00:00:00 2001 From: Mitchell Crompton Date: Fri, 19 Apr 2024 11:48:56 +1000 Subject: [PATCH] DOC-2384: Added local playbook and dev scripts (#3247) --- antora-playbook-local.yml | 20 ++++++++++++++++++++ package.json | 9 ++++++--- 2 files changed, 26 insertions(+), 3 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..4abf519a19 --- /dev/null +++ b/antora-playbook-local.yml @@ -0,0 +1,20 @@ +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 + latest_version_segment: latest +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 a69a23fec9..7997a94896 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,13 @@ "build": "./-scripts/api-reference.sh", "build-local-ref": "./-scripts/api-reference-local.sh", "clean": "rm -rf ./build", - "nodemon-dev": "nodemon --exec yarn antora ./antora-playbook.yml", + "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-dev server", - "start": "yarn clean && yarn serve" + "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",