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

djencks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-antora.git

commit 6dd89b29cc0feac5995f2547d9ac8a835f719083
Author: David Jencks <[email protected]>
AuthorDate: Fri Aug 7 09:43:59 2020 -0700

    initial Aries playbook project
---
 .gitignore          |  5 +++++
 antora-playbook.yml | 19 ++++++++++++++++
 package.json        | 13 +++++++++++
 pom.xml             | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 100 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6397c2d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/build/
+package-lock.json
+node
+node_modules
+.cache
diff --git a/antora-playbook.yml b/antora-playbook.yml
new file mode 100644
index 0000000..c821697
--- /dev/null
+++ b/antora-playbook.yml
@@ -0,0 +1,19 @@
+site:
+  title: Apache Aries
+  start_page: documentation::index.adoc
+content:
+  sources:
+  - url: ./../site
+    branches: HEAD
+
+asciidoc:
+  extensions:
+    - "@djencks/asciidoctor-antora-indexer"
+
+ui:
+  bundle:
+    url: 
https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
+    snapshot: true
+
+output:
+  clean: true
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..aa69fbb
--- /dev/null
+++ b/package.json
@@ -0,0 +1,13 @@
+{
+  "private": true,
+  "scripts": {
+    "clean-build": "npm run clean-install;npm run build",
+    "clean-install": "rm -rf node_modules/ .cache/ package-lock.json;npm i 
--cache=.cache/npm",
+    "build": "node_modules/.bin/antora antora-playbook.yml --stacktrace 
--fetch --clean"
+  },
+  "devDependencies": {
+    "@antora/cli": "^2.3.3",
+    "@antora/site-generator-default": "^2.3.3",
+    "@djencks/asciidoctor-antora-indexer": "^0.0.4"
+  }
+}
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..81bbda6
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.my.project</groupId>
+  <artifactId>antora-site</artifactId>
+  <version>0.0.1</version>
+  <packaging>pom</packaging>
+
+  <properties>
+    <!-- see https://github.com/eirslett/frontend-maven-plugin -->
+    <frontend.maven.plugin.version>1.10.0</frontend.maven.plugin.version>
+    <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) 
versions -->
+    <node.version>v12.18.2</node.version>
+    <npm.version>6.14.5</npm.version>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>com.github.eirslett</groupId>
+        <artifactId>frontend-maven-plugin</artifactId>
+        <version>${frontend.maven.plugin.version}</version>
+
+        <executions>
+
+          <execution>
+            <id>install node and npm</id>
+            <goals>
+              <goal>install-node-and-npm</goal>
+            </goals>
+            <configuration>
+              <nodeVersion>${node.version}</nodeVersion>
+              <npmVersion>${npm.version}</npmVersion>
+            </configuration>
+          </execution>
+
+          <execution>
+            <id>npm run clean-install</id>
+            <goals>
+              <goal>npm</goal>
+            </goals>
+            <configuration>
+              <arguments>run clean-install</arguments>
+            </configuration>
+          </execution>
+
+          <execution>
+            <id>npm run build</id>
+            <goals>
+              <goal>npm</goal>
+            </goals>
+            <configuration>
+              <arguments>run build</arguments>
+            </configuration>
+          </execution>
+
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Reply via email to