Firefox/Meeting/Posting Notes: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(add -L for curl)
(Added link for converting without installing software)
Line 5: Line 5:
#* 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.
#* 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]]
== Without freefileconvert.com ==
# Go to [https://www.freefileconvert.com/odt-wiki FreeFileConvert]
# Choose the File tab
# Choose the "wiki" output format
# Click Convert
# Click Download when the conversion is ready (be sure not to click on potentially misleading ads)


== With pandoc ==
== With pandoc ==

Revision as of 19:12, 7 September 2021

  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

Without freefileconvert.com

  1. Go to FreeFileConvert
  2. Choose the File tab
  3. Choose the "wiki" output format
  4. Click Convert
  5. Click Download when the conversion is ready (be sure not to click on potentially misleading ads)

With pandoc

  1. Install pandoc
    • macOS: brew install pandoc
  2. curl -L "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.