Gabriel Wicke
c52c24b0cb
Slightly improve formatting of web service; test commit message tweak
...
Change-Id: Ibac3ce3dd9aa2c4faf11eed351fea941ebf1e4b3
2012-05-25 16:36:14 +02:00
Gabriel Wicke
540d14d8fe
More tweaks to the intro message
...
Change-Id: I059ba4fc584eae45092376b5b2258df7ed52b55c
2012-05-24 15:10:03 +02:00
Gabriel Wicke
987ff8aa84
Add a longer welcome/help message and a link to the Parsoid docs
...
Change-Id: I39e4873908bc0619738353a55577aa81abb76287
2012-05-24 14:58:35 +02:00
Gabriel Wicke
a5c96be8b7
Improve shell wrapper for parsoid service
...
Change-Id: I92c536af60613705229faea97a26d1486d4730a1
2012-05-24 10:24:14 +02:00
Gabriel Wicke
e70448e53a
Use text/x-mediawiki content type, and handle tokenizer errors without --debug
...
Change-Id: I154cd344306aa05ada7ff30f631d487f39fa9739
2012-05-24 10:19:25 +02:00
Gabriel Wicke
6dac7de2f4
Capital T in second part of Content-Type
...
Change-Id: I20a9af9a8c0e05e96c77c9ac7566ea7bc1a6dabd
2012-05-23 18:12:09 +02:00
Gabriel Wicke
d6af3b3375
Improve the serializer and its output display in the web service
...
Change-Id: Id3ca96846cad42517d7d4bada8f4bb250d54247b
2012-05-23 17:50:35 +02:00
Gabriel Wicke
95496c02db
Add an extra newline before headings, and ignore favicon.ico requests
...
Change-Id: Ibacac3453afefa5dbe803c1e0260e8c943785f12
2012-05-23 17:17:54 +02:00
Gabriel Wicke
e2ee66e532
Start slightly more workers than there are CPUs
...
Change-Id: I7381e09ead0420d5d0b8c7dd3045c88c3cbfaa87
2012-05-23 16:46:08 +02:00
Gabriel Wicke
21286a50df
Make sure pageName is set in the web service, and handle empty page name in parser function
...
Change-Id: I5d36eefecc2f35a860d00a8960004f8e651ed17c
2012-05-23 16:43:45 +02:00
Gabriel Wicke
a4c5d43ff7
Fix an external link regression, and add server shell wrapper and setup docs
...
Change-Id: I9a4f7690e98313d003a2fec35324ed70556e6461
2012-05-23 16:25:42 +02:00
Gabriel Wicke
b89f5071e5
Basic parser / serializer web service
...
* After installing Parsoid (sudo npm install -g in modules/parser), run 'node
server.js' from the api directory and navigate to http://localhost:8000/ and
follow the directions. You can start to navigate the English wikipedia at
http://localhost:8000/Main_Page , or manually enter wikitext or HTML DOM to
convert.
* Uses the express framework, could also use just connect
* Uses the cluster module to manage workers per-core and restart those on
failure
Change-Id: I443f2996ed3df00826b038b7476a2f966ab0c425
2012-05-23 12:35:00 +02:00
Neil Kandalgaonkar
4d4f3ecdc5
should be in contents
2012-01-31 00:10:03 +00:00
Neil Kandalgaonkar
fbd14a7a75
if error, do not tell remote users what the actual command was
2012-01-31 00:07:07 +00:00
Neil Kandalgaonkar
f0b934ef2e
first pass at an API method that returns wikidom. Shells out to node. Some issues with XML API result formatting but works fine in JSON
2012-01-31 00:02:48 +00:00