Difference between revisions of "Parsoid"

From Freephile Wiki
Jump to navigation Jump to search
(Some introductory test info on Parsoid)
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
curl localhost:8000/version
 
curl localhost:8000/version
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
<pre>
 +
{"name":"parsoid","version":"0.11.0","sha":"82bdf6f9cf47b1fd4f7bb26a17ae7da42a24ea40"}
 +
</pre>
  
  
Line 13: Line 16:
 
/etc/parsoid/bin# echo "'''This is bold'''" | node parse and node parserTests
 
/etc/parsoid/bin# echo "'''This is bold'''" | node parse and node parserTests
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
== NodeJS versions ==
 +
<pre>
 +
[centos@wiki ~]$ npm version
 +
{ npm: '5.6.0',
 +
ares: '1.10.1-DEV',
 +
cldr: '32.0',
 +
http_parser: '2.8.0',
 +
icu: '60.1',
 +
modules: '57',
 +
nghttp2: '1.25.0',
 +
node: '8.11.1',
 +
openssl: '1.0.2o',
 +
tz: '2017c',
 +
unicode: '10.0',
 +
uv: '1.19.1',
 +
v8: '6.2.414.50',
 +
zlib: '1.2.11' }
 +
</pre>

Latest revision as of 09:16, 30 April 2020

In QualityBox, we run Parsoid on port 8000 rather than the default 8142.

You can check the version with

curl localhost:8000/version
{"name":"parsoid","version":"0.11.0","sha":"82bdf6f9cf47b1fd4f7bb26a17ae7da42a24ea40"}


You can check parsoid output with

curl -L http://localhost:8000/wiki/v3/page/html/Main_Page/

where 'wiki' is the name of a domain you find in the config

grep domain /etc/parsoid/config.yaml

You can check the output of parsoid converting wikitext to HTML:

/etc/parsoid/bin# echo "'''This is bold'''" | node parse and node parserTests

NodeJS versions[edit | edit source]

[centos@wiki ~]$ npm version 
{ npm: '5.6.0',
 ares: '1.10.1-DEV',
 cldr: '32.0',
 http_parser: '2.8.0',
 icu: '60.1',
 modules: '57',
 nghttp2: '1.25.0',
 node: '8.11.1',
 openssl: '1.0.2o',
 tz: '2017c',
 unicode: '10.0',
 uv: '1.19.1',
 v8: '6.2.414.50',
 zlib: '1.2.11' }