Firefox/Meeting/Posting Notes: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Add instructions for pandoc)
 
(search and replace)
Line 2: Line 2:
# Convert to mediawiki using one of the options below
# Convert to mediawiki using one of the options below
# Copy the output, excluding the intro and meeting leader list, to the wiki
# Copy the output, excluding the intro and meeting leader list, to the wiki
#* Add <code>==</code> around level 2 headings (General Topics / Roundtable, Friends of the Firefox team, Project Updates & This week I learned)
#* Use the mediawiki search and replace to replace <code><nowiki><span id="anchor-\d+"></span>(.*)$</nowiki></code> (turn on regular expression search) with <code>=== $1 ===</code> to handle the level 3 headings.
# Add the link on [[Firefox/Meeting]]
# Add the link on [[Firefox/Meeting]]



Revision as of 19:09, 19 December 2018

  1. Export as odt
  2. Convert to mediawiki using one of the options below
  3. Copy the output, excluding the intro and meeting leader list, to the wiki
    • Add == around level 2 headings (General Topics / Roundtable, Friends of the Firefox team, Project Updates & This week I learned)
    • Use the mediawiki search and replace to replace <span id="anchor-\d+"></span>(.*)$ (turn on regular expression search) with === $1 === to handle the level 3 headings.
  4. Add the link on Firefox/Meeting

With pandoc

  1. Install pandoc
    • macOS: brew install pandoc
  2. curl "https://docs.google.com/document/d/1hM9bmIdIe0PeQEB4SbU7NG3m7MmjgLJjUB7Fzr7fGEU/export?format=odt" | pandoc --from odt --to mediawiki

libreoffice-wiki-publisher

  1. Get access to an Ubuntu machine
  2. Install the libreoffice-wiki-publisher package via apt
  3. Export this document as an ODT file
  4. Open that exported document in LibreOffice
  5. Export the document as Mediawiki to some text file (the MediaWiki Publisher extension you installed in (b) should let you do this). The extension might insert extra <div>s into the output; you’ll want to clean those up before publishing.