GWicke has uploaded a new change for review.
https://gerrit.wikimedia.org/r/96404
Change subject: Remove some cruft from web service entry page
......................................................................
Remove some cruft from web service entry page
Change-Id: I6975ed96018b719ef4854d15aecef7e0cccbb9aa
---
M js/api/ParserService.js
1 file changed, 4 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid
refs/changes/04/96404/1
diff --git a/js/api/ParserService.js b/js/api/ParserService.js
index 4aeed24..8d8b10b 100644
--- a/js/api/ParserService.js
+++ b/js/api/ParserService.js
@@ -374,20 +374,16 @@
app.get('/', function(req, res){
res.write('<html><body>\n');
- res.write('<h3>Welcome to the alpha test web service for the ' +
- '<a href="http://www.mediawiki.org/wiki/Parsoid">Parsoid
project</a>.</h3>\n');
- res.write( '<p>Usage: <ul><li>GET /title for the DOM. ' +
- 'Example: <strong><a href="/enwiki/Main_Page">Main
Page</a></strong></li>\n');
- res.write('<li>POST a DOM as parameter "content" to /title for the
wikitext</li>\n');
- res.write('</ul>\n');
- res.write('<p>There are also some tools for experiments:\n<ul>\n');
+ res.write('<h3>Welcome to the <a
href="https://www.mediawiki.org/wiki/Parsoid">Parsoid</a> web service.</h3>\n');
+ res.write( '<p>See <a
href="https://www.mediawiki.org/wiki/Parsoid#The_Parsoid_web_API">the API
documentation on mediawiki.org</a>. ' );
+ res.write('<p>There are also some convenient tools for experiments.
These are <em>not</em> part of the public API.\n<ul>\n');
res.write('<li>Round-trip test pages from the English Wikipedia: ' +
'<strong><a
href="/_rt/enwiki/Help:Magic">/_rt/Help:Magic</a></strong></li>\n');
res.write('<li><strong><a href="/_rtform/">WikiText -> HTML DOM
-> WikiText round-trip form</a></strong></li>\n');
res.write('<li><strong><a href="/_wikitext/">WikiText -> HTML DOM
form</a></strong></li>\n');
res.write('<li><strong><a href="/_html/">HTML DOM -> WikiText
form</a></strong></li>\n');
res.write('</ul>\n');
- res.write('<p>We are currently focusing on round-tripping of basic
formatting like inline/bold, headings, lists, tables and links. Templates,
citations and thumbnails are not expected to round-trip properly yet.
<strong>Please report issues you see at <a
href="http://www.mediawiki.org/w/index.php?title=Talk:Parsoid/Todo&action=edit§ion=new">:mw:Talk:Parsoid/Todo</a>.
Thanks!</strong></p>\n');
+ res.write('\n');
res.end('</body></html>');
});
--
To view, visit https://gerrit.wikimedia.org/r/96404
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6975ed96018b719ef4854d15aecef7e0cccbb9aa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits