Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Dec 9, 2022
1 parent 926af04 commit 8313fb9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 30 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,14 @@ unitsofmeasurement-jbake


If you have `[GIT_HOME]`/[unitsofmeasurement-jbake](https://github.com/unitsofmeasurement/unitsofmeasurement-jbake "unitsofmeasurement-jbake") and `[GIT_HOME]`/[unitsofmeasurement.github.io](https://github.com/unitsofmeasurement/unitsofmeasurement.github.io "unitsofmeasurement.github.io") cloned,
to publish:
to publish locally:

bake.bat

to test:

taste.bat

Requires JBake version 2.3 or above

Generally
---------

to publish:

jbake src/main/jbake [output folder]
mvn clean install

to test locally:

jbake -s [output folder]
mvn jbake:inline [ -Dport=8000 ]

JBake’s internal Web server listens by default on port `8820`. If you have another application occupying port `8820`, then the listening port of JBake can be changed with the `port` parameter.

See [Getting Started](http://jbake.org/docs/2.3.2/#getting_started) in the JBake documentation for more information.
Requires JBake v2.7 or above.
4 changes: 0 additions & 4 deletions bake.bat

This file was deleted.

36 changes: 30 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<properties>
<github.global.server>github</github.global.server>
<commit.message>Site update</commit.message>
<sitedir>../unitsofmeasurement.github.io/</sitedir>
</properties>
<url>https://github.com/unitsofmeasurement/unitsofmeasurement.github.io</url>
<url>https://unitsofmeasurement.github.io</url>
<description>Units of Measurement Web Site JBake Source</description>

<build>
<finalName>site</finalName>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -36,7 +36,7 @@
<id>default-generate</id>
<phase>generate-resources</phase>
<goals>
<goal>generate</goal>
<goal>generate</goal>
</goals>
</execution>
</executions>
Expand All @@ -47,7 +47,7 @@
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.9</version>
<version>0.12</version>
<configuration>
<message>${commit.message}</message>
<!-- <message>Creating site for ${project.version}</message> -->
Expand All @@ -67,7 +67,7 @@
<executions>
<execution>
<goals>
<goal>site</goal>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
Expand All @@ -89,6 +89,30 @@
</arguments>
</configuration>
</plugin>

<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>install</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${sitedir}</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target/site/</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -128,4 +152,4 @@
</plugins>
</pluginManagement>
</build>
</project>
</project>
3 changes: 0 additions & 3 deletions taste.bat

This file was deleted.

0 comments on commit 8313fb9

Please sign in to comment.