Firefox/Meeting/Posting Notes: Difference between revisions
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
- Export as odt
- Convert to mediawiki using one of the options below
- 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.
- Add
- Add the link on Firefox/Meeting
With pandoc
- Install pandoc
- macOS:
brew install pandoc
- macOS:
curl "https://docs.google.com/document/d/1hM9bmIdIe0PeQEB4SbU7NG3m7MmjgLJjUB7Fzr7fGEU/export?format=odt" | pandoc --from odt --to mediawiki
libreoffice-wiki-publisher
- Get access to an Ubuntu machine
- Install the libreoffice-wiki-publisher package via apt
- Export this document as an ODT file
- Open that exported document in LibreOffice
- 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.