You have installed the markdown extension right?
Doesn’t look like it. How do you install extensions manually using an offline installation? (The wiki does not have Internet access.) I tried uploading the JAR via the “Global Administration: Extensions” page using Content/Import (XWiki 9.10.1), but that looks like it only accepts xar files for import.
My guess is that I have to copy the JAR file into /opt/payara/glassfish/domains/isd/applications/xwiki/WEB-INF/lib and restart the server. However, it would be fantastic to have this documented formally.
download them here). " and there’s a link on “here”…
Yes. That leads to: xwiki-rendering/xwiki-rendering-standalone/src/test/java/org/xwiki/rendering/example/ExampleTest.java at master · xwiki/xwiki-rendering · GitHub
However, there’s no entry point shown. All the methods are annotated as @Test
, which implies they are for unit testing. The methods themselves look informative, but I can’t simply:
- Create a class called
MarkdownExporter
.
- Write an annotated
@Test
method in MarkdownExporter
.
- Build the class into a JAR or XAR file (not sure which).
- Copy the JAR file into XWiki’s installation directory (or install the XAR via XWiki itself).
- Use the UI to select some pages and pass them into
MarkdownExporter
.
There needs to be some kind of entry point into the class that XWiki calls when it receives input from the user interface to process a set of pages. It’s that entry point that isn’t shown anywhere. Where can I find the equivalent to public static void main( String args[] ) { ... }
?
The http://extensions.xwiki.org/xwiki/bin/view/Extension/Component%20Module page clearly defines public List<Block> execute()
as the entry point for a macro.
Again if you read this page http://rendering.xwiki.org/xwiki/bin/view/Main/GettingStarted you’ll see that it starts by explaining how to make it work without Maven by showing the classpath you need 
Assuming I need to create a macro to implement the export pages as markdown feature, I need to know how to write a macro. This leads to: http://rendering.xwiki.org/xwiki/bin/view/Main/ExtendingMacro
The documentation states, “Another one that is the Macro itself. This class should implement the Macro interface. However we recommend extending AbstractMacro which does some heavy lifting for you.” Yet the page links to neither the Macro interface nor the abstract class. It would be handy to note that the package/class is org.xwiki.rendering.macro.Macro within http://repo2.maven.org/maven2/org/xwiki/rendering/xwiki-rendering-transformation-macro/ – or reference back to the setting up your classpath section on the getting started page.
All that said, I don’t think I want to create a macro, but extend the filter or filter application or write a component. Still not clear.
I don’t understand what you mean. Could you be more specific? Note that this is a wiki so you can edit the page to improve it if you think it’s missing something.
- Since XWiki Rendering uses XWiki Components, you’ll also need the Component Manager API JAR (xwiki-commons-component-api and a Component Manager implementation. You could develop one that bridges to your own component system (Guice, Spring, etc) or you can use the xwiki-commons-component-default one that we provide.
Becomes (where represent links to the resource):
- Since XWiki Rendering uses XWiki Components, you’ll also need:
- [xwiki-commons-component-api], the Component Manager API JAR; and
- [xwiki-commons-component-default], a Component Manager implementation (or you can develop [a renderer???] that bridges to your own component system using [Guice] or [Spring]).
I would have made the edits myself, but it seems I cannot use this forum account to edit those pages. If the forum and the wiki accepted the same credentials, then it’d be easier. (That is, I don’t want to create yet another XWiki-related account.)
What do I need to do to create:
- A user interface (component?) that allows users to select multiple pages.
- A filter (component?) that receives the list of pages and archives those along with all images referenced on the page.
Need I create a macro? A filter? An extension? A component? Where can I find examples that show the entry point (not a unit test…) for creating one of these items?