diff --git a/CHANGELOG.md b/CHANGELOG.md index 1042753..5e585a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [v2.7.0-SNAPSHOT] - 2022-07-27 + +- Sphinx + ## [v2.6.2] - 2022-07-27 - Bug fix #23695 social service 2/people/profile api fails sometimes with error 500 diff --git a/enunciate.xml b/enunciate.xml index 2e16196..47bb9b5 100644 --- a/enunciate.xml +++ b/enunciate.xml @@ -26,7 +26,7 @@ - + org.gcube.portal social-networking-library-ws war - 2.6.2 + 2.7.0-SNAPSHOT social-networking-library-ws Rest interface for the social networking library. @@ -301,6 +301,26 @@ + + + kr.motd.maven + sphinx-maven-plugin + 2.10.0 + + ${project.build.directory}/docs + html + ${basedir}/docs + ${basedir}/docs + + + + process-resources + + generate + + + + com.webcohesion.enunciate @@ -345,8 +365,8 @@ target - ${project.build.directory}/${project.artifactId}-${project.version}/docs - ${project.build.directory}/docs + ${project.build.directory}/${project.artifactId}-${project.version}/apidocs + ${project.build.directory}/apidocs true diff --git a/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java b/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java index 99e79bb..b255d4f 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java @@ -13,7 +13,7 @@ import javax.ws.rs.core.Context; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@Path("docs") +@Path("apidocs") public class DocsGenerator { private static Logger logger = LoggerFactory.getLogger(DocsGenerator.class); @@ -27,7 +27,7 @@ public class DocsGenerator { logger.debug("pathInfo {}", pathInfo); try { - if (pathInfo.endsWith("/docs/")) { + if (pathInfo.endsWith("/apidocs/")) { pathInfo += "index.html"; }