#837 - Fix code references.
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -317,6 +317,7 @@
|
||||
<outputDirectory>${project.build.directory}/site/reference/html</outputDirectory>
|
||||
<sectids>false</sectids>
|
||||
<attributes>
|
||||
<code-dir>${basedir}</code-dir>
|
||||
<docinfo>shared</docinfo>
|
||||
<linkcss>true</linkcss>
|
||||
<icons>font</icons>
|
||||
@@ -341,6 +342,9 @@
|
||||
<configuration>
|
||||
<backend>pdf</backend>
|
||||
<sourceHighlighter>coderay</sourceHighlighter>
|
||||
<attributes>
|
||||
<code-dir>${basedir}</code-dir>
|
||||
</attributes>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
:code: ../../..
|
||||
|
||||
|
||||
[[fundamentals]]
|
||||
= Fundamentals
|
||||
|
||||
@@ -229,7 +226,7 @@ The following code shows how to take a *self* link and associate two more afford
|
||||
====
|
||||
[source,java,indent=0]
|
||||
----
|
||||
include::{code}/src/docs/java/org/springframework/hateoas/EmployeeController.java[tag=get]
|
||||
include::{code-dir}/src/docs/java/org/springframework/hateoas/EmployeeController.java[tag=get]
|
||||
----
|
||||
<1> Create the *self* link.
|
||||
<2> Associate the `updateEmployee` method with the `self` link.
|
||||
@@ -244,7 +241,7 @@ Imagine that the related methods *afforded* above looking like this:
|
||||
====
|
||||
[source,java,indent=0]
|
||||
----
|
||||
include::{code}/src/docs/java/org/springframework/hateoas/EmployeeController.java[tag=put]
|
||||
include::{code-dir}/src/docs/java/org/springframework/hateoas/EmployeeController.java[tag=put]
|
||||
----
|
||||
====
|
||||
|
||||
@@ -252,7 +249,7 @@ include::{code}/src/docs/java/org/springframework/hateoas/EmployeeController.jav
|
||||
====
|
||||
[source,java,indent=0]
|
||||
----
|
||||
include::{code}/src/docs/java/org/springframework/hateoas/EmployeeController.java[tag=patch]
|
||||
include::{code-dir}/src/docs/java/org/springframework/hateoas/EmployeeController.java[tag=patch]
|
||||
----
|
||||
====
|
||||
|
||||
|
||||
Reference in New Issue
Block a user