Skip to content

Commit

Permalink
#471 Changed manual.xml index generation
Browse files Browse the repository at this point in the history
Adjusted default file input path
  • Loading branch information
yaseno2186 committed Jul 23, 2024
1 parent 51e719d commit 21165ef
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
pages:
description: "Path expression for Pages to upload."
required: false
default: "manual/target/generated-docs/index.html"
default: "./manual/target/generated-docs/"

jobs:
build:
Expand Down
32 changes: 29 additions & 3 deletions manual/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<artifactId>asciidoctor-maven-plugin</artifactId>
<executions>
<execution>
<id>manual</id>
<id>manual-release</id>
<phase>process-resources</phase>
<goals>
<goal>process-asciidoc</goal>
Expand All @@ -40,11 +40,37 @@
</attributes>
<sourceDirectory>src/main/asciidoc/</sourceDirectory>
<sourceDocumentName>index.adoc</sourceDocumentName>
<outputDirectory>${project.build.directory}/generated-docs/</outputDirectory>
<outputDirectory>${project.build.directory}/generated-docs/release/</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/main/asciidoc</directory>
<targetPath>${project.build.directory}/generated-docs/</targetPath>
<targetPath>${project.build.directory}/generated-docs/release/</targetPath>
<includes>
<include>**/*.png</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>manual-SNAPSHOT</id>
<phase>process-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<attributes>
<toc>auto</toc>
<stylesheet>jqassistant.css</stylesheet>
<docRoot>${asciidoc.directory}</docRoot>
</attributes>
<sourceDirectory>src/main/asciidoc/</sourceDirectory>
<sourceDocumentName>index.adoc</sourceDocumentName>
<outputDirectory>${project.build.directory}/generated-docs/SNAPSHOT/</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/main/asciidoc</directory>
<targetPath>${project.build.directory}/generated-docs/SNAPSHOT/</targetPath>
<includes>
<include>**/*.png</include>
</includes>
Expand Down
10 changes: 9 additions & 1 deletion manual/src/main/assembly/manual.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
</formats>
<fileSets>
<fileSet>
<directory>${project.build.directory}/generated-docs</directory>
<directory>${project.build.directory}/generated-docs/SNAPSHOT/</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>**/*</include>
<include>images/**</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/generated-docs/release/</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>**/*</include>
Expand Down

0 comments on commit 21165ef

Please sign in to comment.