Documentation dist bundle (#1464)

Closes #1464

Co-authored-by: keycloak-bot <keycloak.bot@gmail.com>
This commit is contained in:
Stian Thorgersen 2022-04-06 09:04:27 +02:00 committed by GitHub
parent 94636c0c52
commit f92b77edaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 77 additions and 33 deletions

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

19
dist/assembly.xml vendored Normal file
View file

@ -0,0 +1,19 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
<id>docs-dist</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>../target</directory>
<outputDirectory></outputDirectory>
</fileSet>
</fileSets>
</assembly>

38
dist/pom.xml vendored Normal file
View file

@ -0,0 +1,38 @@
<?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>
<parent>
<groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId>
<version>999-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<name>Keycloak Documentation dist</name>
<artifactId>keycloak-documentation</artifactId>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,12 +5,12 @@
<parent> <parent>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
</parent> </parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>header-maven-plugin</artifactId> <artifactId>header-maven-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>github-maven-plugin</name> <name>github-maven-plugin</name>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

21
pom.xml
View file

@ -5,7 +5,7 @@
<name>Keycloak Documentation Parent</name> <name>Keycloak Documentation Parent</name>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
@ -40,6 +40,7 @@
<module>release_notes</module> <module>release_notes</module>
<module>upgrading</module> <module>upgrading</module>
<module>aggregation</module> <module>aggregation</module>
<module>dist</module>
</modules> </modules>
<profiles> <profiles>
@ -138,7 +139,7 @@
<plugin> <plugin>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>header-maven-plugin</artifactId> <artifactId>header-maven-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<executions> <executions>
<execution> <execution>
<id>add-file-headers</id> <id>add-file-headers</id>
@ -218,22 +219,6 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>${version.plugin.assembly}</version> <version>${version.plugin.assembly}</version>
<executions>
<execution>
<id>asciidoc-html-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<attach>true</attach>
<descriptors>
<descriptor>../assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -4,6 +4,8 @@ VERSION=$1
SHORT_VERSION=`echo $VERSION | awk -F '.' '{ print $1"."$2 }'` SHORT_VERSION=`echo $VERSION | awk -F '.' '{ print $1"."$2 }'`
NPM_VERSION=`echo $VERSION | sed 's/.Final//' | sed 's/.CR/-cr./' | sed 's/.Beta/-beta./' | sed 's/.Alpha/-alpha./'` NPM_VERSION=`echo $VERSION | sed 's/.Final//' | sed 's/.CR/-cr./' | sed 's/.Beta/-beta./' | sed 's/.Alpha/-alpha./'`
mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false -DgroupId=org.keycloak* -DartifactId=*
sed -i 's/:project_version: .*/:project_version: '$VERSION'/' topics/templates/document-attributes-community.adoc sed -i 's/:project_version: .*/:project_version: '$VERSION'/' topics/templates/document-attributes-community.adoc
sed -i 's/:project_versionMvn: .*/:project_versionMvn: '$VERSION'/' topics/templates/document-attributes-community.adoc sed -i 's/:project_versionMvn: .*/:project_versionMvn: '$VERSION'/' topics/templates/document-attributes-community.adoc
sed -i 's/:project_versionNpm: .*/:project_versionNpm: '$NPM_VERSION'/' topics/templates/document-attributes-community.adoc sed -i 's/:project_versionNpm: .*/:project_versionNpm: '$NPM_VERSION'/' topics/templates/document-attributes-community.adoc

View file

@ -41,7 +41,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.keycloak.documentation</groupId> <groupId>org.keycloak.documentation</groupId>
<artifactId>documentation-parent</artifactId> <artifactId>documentation-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>999-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>