added guid
authorJean-Philippe Orsini <orsinije@fr.ibm.com>
Wed, 29 Jun 2016 16:06:09 +0000 (18:06 +0200)
committerJean-Philippe Orsini <orsinije@fr.ibm.com>
Wed, 29 Jun 2016 16:06:09 +0000 (18:06 +0200)
asciidoctor/asciidoctorfeed.props
asciidoctor/src/main/java/Main.java

index d227ba4..1e487af 100644 (file)
@@ -1,3 +1,4 @@
 feed.title=The feed title
 feed.description=The description of the feed
 feed.title=The feed title
 feed.description=The description of the feed
-feed.link=http://wpitchoune.net/news/feed.xml
\ No newline at end of file
+feed.link=http://wpitchoune.net/news/feed.xml
+feed.baseurl=http://wpitchoune.net/news
\ No newline at end of file
index cfb5591..843189d 100644 (file)
@@ -72,6 +72,7 @@ public class Main {
                        
                        e = new SyndEntryImpl();
                        e.setTitle(h.getDocumentTitle().getMain());
                        
                        e = new SyndEntryImpl();
                        e.setTitle(h.getDocumentTitle().getMain());
+                       e.setUri(props.getProperty("feed.baseurl") + "/" + html.getName());
                        
                        c = new SyndContentImpl();
                        c.setType("text/html");
                        
                        c = new SyndContentImpl();
                        c.setType("text/html");