You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by dj...@apache.org on 2021/07/11 23:17:17 UTC
[felix-antora] 01/02: initial felix antora playbook project
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/felix-antora.git
commit 2e0d919840d21c8e05f8eea7125b3d8e650e6d46
Author: David Jencks <dj...@apache.org>
AuthorDate: Tue Sep 1 11:14:13 2020 -0700
initial felix antora playbook project
---
.gitignore | 6 +++++
antora-playbook.yml | 15 +++++++++++++
package.json | 13 +++++++++++
pom.xml | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 97 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..732cded
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/build/
+package-lock.json
+node
+node_modules
+.cache
+.idea
diff --git a/antora-playbook.yml b/antora-playbook.yml
new file mode 100644
index 0000000..7a868b6
--- /dev/null
+++ b/antora-playbook.yml
@@ -0,0 +1,15 @@
+site:
+ title: Apache
+ url: https://felix.apache.org
+content:
+ sources:
+ - url: ./../felix-site
+
+
+ui:
+ bundle:
+ url: node_modules/@felix/felix-antora-ui/build/felix-antora-ui-bundle.zip
+ snapshot: false
+
+output:
+ clean: true
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..0f46a3f
--- /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",
+ "@felix/felix-antora-ui": "./../felix-antora-ui"
+ }
+}
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>