You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dj...@apache.org on 2021/12/16 04:36:35 UTC

[camel-website] 01/02: New dependencies and playbook patch for partial/local builds, set up util as a dependency

This is an automated email from the ASF dual-hosted git repository.

djencks pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit da0d58437771e64e50c22749dbd2c1118170d644
Author: David Jencks <dj...@apache.org>
AuthorDate: Tue Dec 14 14:41:00 2021 -0800

    New dependencies and playbook patch for partial/local builds, set up util as a dependency
---
 .gitignore              |  2 ++
 antora-playbook.yml     |  2 +-
 package.json            | 15 +++++++++++----
 playbook-patch-full.yml | 18 ++++++++++++++++++
 util/package.json       |  8 ++++++++
 5 files changed, 40 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 1ab379a..15a4f73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,5 @@ resources
 !**/.yarn/unplugged
 !**/.yarn/versions
 *.github-proxy.*
+
+local-antora-playbook-*
diff --git a/antora-playbook.yml b/antora-playbook.yml
index e4cc4bd..9097e7e 100644
--- a/antora-playbook.yml
+++ b/antora-playbook.yml
@@ -111,7 +111,7 @@ output:
 
 asciidoc:
   attributes:
-    requires@: "'util=util/jsonpath-util.js'"
+    requires@: "'util=camel-website-util'"
 #    uncomment sb-statistics to see more info on camel spring boot list page such as non-spring-boot components.
 #    This also tests the output of unused camel-spring-boot json detection and fails the Antora build with errors.
 #    sb-statistics: on
diff --git a/package.json b/package.json
index 3492ee0..304f387 100644
--- a/package.json
+++ b/package.json
@@ -24,17 +24,24 @@
     "preview": "run-s preview:antora preview:hugo",
     "preview:antora": "antora --clean --fetch antora-playbook.yml",
     "preview:hugo": "hugo server -D",
-    "preview:netlify": "netlify deploy --dir public"
+    "preview:netlify": "netlify deploy --dir public",
+    "build:antora-local-full": "antora local-antora-playbook-full.yml --stacktrace --clean",
+    "build:antora-local-partial": "antora local-antora-playbook-partial.yml --stacktrace"
   },
   "devDependencies": {
     "@antora/cli": "^3.0.0-rc.2",
     "@antora/site-generator": "^3.0.0-rc.2",
     "@deadlinks/cargo-deadlinks": "github-release:deadlinks/cargo-deadlinks:0.8.0/deadlinks-linux",
     "@djencks/antora-aggregate-collector": "^0.1.0-beta.1",
+    "@djencks/antora-site-manifest": "^0.0.3-rc.2",
+    "@djencks/antora-source-map": "^0.0.1-rc.2",
+    "@djencks/antora-source-watch": "^0.0.3-rc.2",
+    "@djencks/antora-timer": "^0.0.1-beta.1",
     "@djencks/asciidoctor-antora-indexer": "^0.1.0-rc.2",
     "@djencks/asciidoctor-jsonpath": "^0.1.0-rc.2",
     "@oclif/errors": "^1.3.4",
     "antora-ui-camel": "workspace:antora-ui-camel",
+    "camel-website-util": "workspace:util",
     "del": "^6.0.0",
     "escape-string-regexp": "~2.0",
     "gulp": "~4.0",
@@ -50,7 +57,7 @@
     "toml": "~3.0"
   },
   "workspaces": [
-    "antora-ui-camel"
-  ],
-  "packageManager": "yarn@3.1.0"
+    "antora-ui-camel",
+    "util"
+  ]
 }
diff --git a/playbook-patch-full.yml b/playbook-patch-full.yml
new file mode 100644
index 0000000..834f065
--- /dev/null
+++ b/playbook-patch-full.yml
@@ -0,0 +1,18 @@
+    - require: "@djencks/antora-site-manifest"
+      export-site-manifest: true
+      export-site-navigation-data: true
+      exported-attributes:
+        - cq-artifact-id
+        - cq-artifact-id-base
+        - cq-native-supported
+        - cq-status
+        - cq-deprecated
+        - cq-jvm-since
+        - cq-native-since
+        - cq-camel-part-name
+        - cq-camel-part-title
+        - cq-camel-part-description
+        - cq-extension-page-title
+
+    - require: '@djencks/antora-timer'
+      log_level: info
diff --git a/util/package.json b/util/package.json
new file mode 100644
index 0000000..6b1083c
--- /dev/null
+++ b/util/package.json
@@ -0,0 +1,8 @@
+{
+  "name": "camel-website-util",
+  "version": "1.0.0",
+  "main": "jsonpath-util.js",
+  "files": [
+    "jsonpath-util.js"
+  ]
+}