This demo shows hosting various different versions of a documentation project (versions managed via maven) via a simple spring-boot-app.
Steps to try out:
- go into doc-demo-content
- run
mvn clean install
- change the version in
pom.xml
to0.0.1
(and change the content ofsrc/main/resources/index.html
if you want to sth likehello from 0.0.1
) - run
mvn clean install
again (to create the "old" version) - go back to the root folder and into
doc-hoster
- run
mvn spring-boot:run
- navigate to http://localhost:8080/
We'll see the 2 versions of the documentation that we've built in steps 2-4 listed and we can click each one to go into the documentation from that version.
Which versions are included is defined in doc-hoster/pom.xml
in the <artifactItems>
section.