Browse files

Reorganizing docs layout for multiple releases

  • Loading branch information...
1 parent 9e05d25 commit a9d09b424c9d241d2fdb8ca2a9e47d3fb577804e @tucu00 tucu00 committed Jan 23, 2011
Showing with 69 additions and 0 deletions.
  1. +1 −0 CHANGES.txt
  2. +17 −0 alfredo/pom.xml
  3. +29 −0 alfredo/src/assemblies/docs.xml
  4. +11 −0 alfredo/src/site/docs.html
  5. +8 −0 alfredo/src/site/root.html
  6. +3 −0 alfredo/src/site/site.xml
View
1 CHANGES.txt
@@ -1,5 +1,6 @@
-- Alfredo 0.1.1 release
+- Reorganizing docs layout for multiple releases
- Normalizing configuration property names
- Add equals/hashcode methods to AuthenticatedURL.Token
- GSSManager instance is obtained at init time instead on every authentication request
View
17 alfredo/pom.xml
@@ -105,6 +105,23 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assemblies/docs.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <phase>site</phase>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
View
29 alfredo/src/assemblies/docs.xml
@@ -0,0 +1,29 @@
+<assembly>
+ <id>docs</id>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${basedir}/target/site</directory>
+ <outputDirectory>docs/${project.version}</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/target/site</directory>
+ <outputDirectory>docs/latest</outputDirectory>
+ </fileSet>
+ </fileSets>
+ <files>
+ <file>
+ <source>${basedir}/src/site/root.html</source>
+ <outputDirectory>/</outputDirectory>
+ <destName>index.html</destName>
+ </file>
+ <file>
+ <source>${basedir}/src/site/docs.html</source>
+ <outputDirectory>docs/</outputDirectory>
+ <destName>index.html</destName>
+ </file>
+ </files>
+</assembly>
View
11 alfredo/src/site/docs.html
@@ -0,0 +1,11 @@
+<html>
+ <body>
+ <h1>Alfredo, Java Http SPNEGO Documentation Sets</h1>
+
+ <ul>
+ <li><a href="./0.1.1/index.html">Alfredo 0.1.1</a> (latest)</li>
+ <li><a href="./0.1.0/index.html">Alfredo 0.1.0</a></li>
+ </ul>
+
+ </body>
+</html>
View
8 alfredo/src/site/root.html
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <meta http-equiv="refresh" content="0;url=./docs/latest/index.html">
+ </head>
+ <body>
+ <a href="./docs/latest/index.html">Alfredo latest documentation</a>
+ </body>
+</html>
View
3 alfredo/src/site/site.xml
@@ -1,5 +1,7 @@
<project name="Alfredo">
+ <version position="right"/>
+
<bannerLeft>
<name>&nbsp;</name>
</bannerLeft>
@@ -12,6 +14,7 @@
<body>
<links>
+ <item name="OTHER RELEASES" href="../index.html"/>
<item name="Cloudera" href="http://www.cloudera.com/"/>
</links>
</body>

0 comments on commit a9d09b4

Please sign in to comment.