I’m working on a Migration from an older wiki system to the xwiki.
The other wiki uses HTML as syntax.
So I want to convert all my pages from HTML to xwiki Syntax.
I’m searching for a endpoint that let me convert HTML to xwiki Syntax.
I saw that I can activate HTML as a wiki Syntax and than just changing the syntax by selecting xwiki in the Syntax Dropdown of the Page.
I tried to recreated that call but I didn’t fully understand it.
So what is the best way to do that?
Oh and I’m running xwiki 13.1
I already converted HTML to xwiki Syntax manually.
But my question is if there is an API call to automate the Conversion.
Our current wiki has about 10,000 pages, so of course we don’t wan to convert those pages manually.
Ok, thanks for that advice.
I already tried to write a Java Program which is using the xwiki-rendering-engine and after the conversion, it will create the pages using the HTTP API.
Unfortunately I always got a “Failed to locate Parser for syntax [HTML 4.01]” message.
Would that be a possible way and to you have any idea about the error? I used the following dependencies
Did you have a change to try my code? I tried it again and I still getting the
“Failed to locate Renderer for syntax [HTML 4.01]” error Message.
I also tried to write a script, but I always end up with an error saying “Nested scripts are not allowed.”
It might be a permission problem, but I wasn’t able to figure it out.
I’m not sure what Nested Scripts mean. I just created a new Page and added an example Script.
I just wanted to get familiar with the Scripting API.
clicking the plus in the Editor → selecting ‘other Marcos’ → selected Velocity → and pasted a Code Snippet from the Scripting Doc https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Scripting/APIGuide/.