User:SPage (WMF)/GDocs to wiki
The Architecture committee has meetings.
We were keeping meeting notes in Etherpad, now trying Google Docs
Etherpad process
edit- Keep meeting notes as wikitext-like as possible:
- no indenting
- Use == for headings ==
- Then paste into User:SPage (WMF)/JS test and use "linkify" mode to convert
TNNNN
into [[phab:NNNN]] links andhttps://www.mediawiki.org/wiki/Page_title
into [[Page_title]] - Then paste wikitext into new Architecture committee/YYYY-MM-DD page.
- Add wiki link under publication of minutes
Google Docs process
editWork in progress
- Keep meeting notes as HTML-like as possible:
- Use GDocs formatting toolbar for Heading 2/3 and bullets
- No blank lines
- To convert to HTML, either
- select all in GDocs, copy, paste into http://ckeditor.com/demo, click its [<> Source] button, select all the HTML, copy
- File > Download as > Web page, unzip, open the .html file, and copy the HTML within the
<body>...</body>
block
- Now to convert this HTML back to wikitext, use Parsoid! Visit https://www.mediawiki.org/api/rest_v1/?doc
- open Transforms >[Post] /transform/html/to/wikitext/{title}/{revision} section
- In Title enter Architecture committee/blahblah (I don't think it matters)
- Paste the HTML from above into html field
- Click [Try it out!]
Results of 1. HTML from CK editor, then Parsoid
edit- Google indents bullets, so CK editor does, so they turn into
<pre> *
lines of code
Results of 2. HTML from Download as, then Parsoid
edit- RESTBase/Parsoid turns
<a name="id"></a>
anchor HTML in headings into[ ]
in wikitext (phab:T112043). - Every hyperlink goes through Google! E.g. https://www.google.com/url?q=https://phabricator.wikimedia.org/T105638&sa=D&usg=AFQjCNGvVYEyGEWOmnTZ-FzXBn5OncZBPA