From 44093a57de41344683d5121e36ba8d7a6da52cb1 Mon Sep 17 00:00:00 2001 From: Eric Barboni Date: Fri, 13 Nov 2015 18:00:42 +0100 Subject: [PATCH] change to handle new template --- .../java/org/apache/archiva/web/docs/RestDocsServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java index c5e47a517..3e91e48c5 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java @@ -66,7 +66,7 @@ public class RestDocsServlet // replace all links !! Document document = Jsoup.parse( is, "UTF-8", "" ); - Element body = document.body(); + Element body = document.body().child( 0 ); Elements links = body.select( "a[href]" ); @@ -107,7 +107,7 @@ public class RestDocsServlet } Document res = new Document( "" ); - res.appendChild( body.select( "div[class=container-fluid]" ).last() ); + res.appendChild( body.select( "div[id=main]" ).first() ); Elements scripts = body.select( "script" ); for ( Element script : scripts ) -- 2.39.5