User:SPage (WMF)/GDocs to wiki

The Architecture committee has meetings.

We were keeping meeting notes in Etherpad, now trying Google Docs

Etherpad process

 * 1) Keep meeting notes as wikitext-like as possible:
 * 2) * no indenting
 * 3) * Use == for headings ==
 * 4) Then paste into User:SPage (WMF)/JS test and use "linkify" mode to convert   into NNNN  links and  into Page_title
 * 5) Then paste wikitext into new Architecture committee/YYYY-MM-DD page.
 * 6) Add wiki link under publication of minutes

Google Docs process
Work in progress
 * 1) Keep meeting notes as HTML-like as possible:
 * 2) * Use GDocs formatting toolbar for Heading 2/3 and bullets
 * 3) * No blank lines
 * 4) To convert to HTML, either
 * 5) select all in GDocs, copy, paste into  http://ckeditor.com/demo, click its [<> Source] button, select all the HTML, copy
 * 6) File > Download as > Web page, unzip, open the .html file, and copy the HTML within the   block
 * 7) Now to convert this HTML back to wikitext, use Parsoid! Visit https://www.mediawiki.org/api/rest_v1/?doc
 * 8) open Transforms >[Post] /transform/html/to/wikitext/{title}/{revision} section
 * 9) In Title enter Architecture committee/blahblah (I don't think it matters)
 * 10) Paste the HTML from above into html field
 * 11) Click [Try it out!]

Results of 1. HTML from CK editor, then Parsoid
/HTML from CK editor
 * Google indents bullets, so CK editor does, so they turn into lines of code

Results of 2. HTML from Download as, then Parsoid
/HTML from Download as
 * RESTBase/Parsoid turns  anchor HTML in headings into   in wikitext (T112043).
 * Every hyperlink goes through Google! E.g. https://www.google.com/url?q=https://phabricator.wikimedia.org/T105638&sa=D&usg=AFQjCNGvVYEyGEWOmnTZ-FzXBn5OncZBPA