Topic on Talk:Parsoid

Jump to navigation Jump to search
Summary by Arlolra

Try with --offline

Julio974fr (talkcontribs)

I'm searching for a program that just takes plain Wikicode (I know how to code with it) and converts it to simple html, without the complicated things of hosting a wiki on my computer or things like that.

All of that offline, on a simple computer, installing as fewer things as possible (If I can, just make everything to install hold in a simple folder or USB key), with quite low programming skills.

I wonder if Parsoid fulfils these criteria (I couldn't get a lot of informations from the page).

Thank you for any answer!

Arlolra (talkcontribs)

That somewhat depends on your definition of "offline".

Parsoid's bin/parse.js has a flag --offline that will render your html without making any http requests, but you wouldn't be able to, for example, expand templates and fetch image info, since it requires access to a MediaWiki API for that kind of state.

If your MediaWiki API is local to your host, you can --configure Parsoid to use that and it won't make any external requests.

Julio974fr (talkcontribs)

I don't need to "host a wiki", but just to be able to simply convert wikicode text to html text. I forgot to clarify that. Is that still possible? Or is there another program that allows me to simply convert wikicode to html?

Arlolra (talkcontribs)

Then the --offline option from above should be fine

Julio974fr (talkcontribs)

And how should I use it? I remind that I'm a novice in cmd and github-related things

Arlolra (talkcontribs)
Julio974fr (talkcontribs)

Is there a way to : 1) Give the link to a file with the wikicode, so it converts the entire things and output another file with the html? 2) Install this without Git and Nodejs (or, at least, to install both of these things in a single folder with nothing out of that)?

Arlolra (talkcontribs)

--inputfile for the way in, output goes to stdout which you can pipe to a file

See --help

Node.js is required

Julio974fr (talkcontribs)

Ok, I'll try it this weekend!