The Spring Framework reference now uses asciidoctor. This document describes how to contribute documentation updates.
You can build the documentation using gradle using the asciidoc
task. For example, from the project root execute the following command:
gradlew asciidoc
the output will be available at spring-framework/build/asciidoc/index.html
One of the nice features about using asciidoctor is the support for live editing.
You will find a Guardfile already present at spring-framework/src/asciidoc/Guardfile
. Then ensure to follow the setup instructions within the Editing AsciiDoc with Live Preview document.
When running guard start
within the src/asciidoc/
folder, any changes to the src/asciidoc/index.adoc
file will automatically be written at src/asciidoc/build/index.html
.
Some notes on documentation
-
It is important to keep whitespaces to a minimum to make it simple to edit files. This means use an editor with line wrapping rather than manually inserting hard returns.