Skip to content

Commit 1177e6f

Browse files
authored
DOC-2384: Added local playbook and dev scripts (#3248)
1 parent 0681f02 commit 1177e6f

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

antora-playbook-local.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
site:
2+
title: TinyMCE Documentation
3+
url: https://www.tiny.cloud/docs
4+
start_page: tinymce::index.adoc
5+
content:
6+
sources:
7+
- url: ./
8+
branches: HEAD
9+
start_path: ./
10+
urls:
11+
html_extension_style: indexify
12+
ui:
13+
bundle:
14+
url: https://tiny-cloud-docs-antora-themes-staging.s3.amazonaws.com/ui-bundle.zip
15+
asciidoc:
16+
extensions:
17+
- '@tinymce/antora-extension-livedemos'
18+
runtime:
19+
fetch: true

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
},
99
"homepage": "https://www.tiny.cloud/docs/",
1010
"scripts": {
11-
"watch": "nodemon --exec antora antora-playbook.yml",
12-
"server": "http-server build/site/ --port 4000",
13-
"serve": "npm-run-all -p watch server",
1411
"build": "./-scripts/api-reference.sh",
15-
"build-local": "./-scripts/api-reference-local.sh",
12+
"build-local-ref": "./-scripts/api-reference-local.sh",
1613
"clean": "rm -rf ./build",
17-
"start": "yarn clean && yarn serve"
14+
"nodemon": "nodemon --exec yarn antora ./antora-playbook.yml",
15+
"nodemon-dev": "nodemon --exec yarn antora ./antora-playbook-local.yml",
16+
"server": "http-server build/site/ --port 4000",
17+
"serve": "npm-run-all -p nodemon server",
18+
"serve-dev": "npm-run-all -p nodemon-dev server",
19+
"start": "yarn clean && yarn serve",
20+
"start-dev": "yarn clean && yarn serve-dev"
1821
},
1922
"author": "Tiny Technologies Inc",
2023
"license": "CC-BY-NC-SA-3.0",

0 commit comments

Comments
 (0)