Pandomine -- Express yourself without a Word.
You spend your whole day in your IDE -- why leave to generate documentation? Pandomine allows you to continue maintaining your documents in markdown for easy collaboration and versioning. Then at any time, (or continuously), generate DOCX format documentation in a clean, uniform, and templatized manner.
Include tables and images just like a regular markdown file. Add page numbers and date stamps just like a typical Word document. Deliver them to your customer without ever clicking that W.
Pandomine uses pandoc
for document conversion. You can grab it at pandoc.org.
pandoc
uses a reference template when generating the DOCX files. This is an existing DOCX file that has the desired formatting including headers and footers. When constructing this file, make sure any date fieldss are configured to update automatically. Without a reference template, pandoc
uses the default document settings for Word.
- Install pandoc.
- Clone this repo.
- Run
./generate-docs.sh
- Pandomime finds three README.md files and generates docs.
- View your fresh, new DOCX files in the docs/ directory.
Run generate_docs.sh
from the any directory. It will drill down into all subdirectories and do the following:
- Find any files named
README.md
- Extract out the first First Level Header (#) in the document to use as the document title.
- Generate a DOCX file by combining the markdown from the file and formatting from the reference document specified in the configuration.
- Save the DOCX file in the document subdirectory specified in configuration using the name extracted above.
- Continue on to the next
README.md
file.
generate-docs.sh
uses three constants:
- pandoc_path -- Location of pandoc installed on this machine.
- reference_path -- Location of reference DOCX file.
- document_dir -- Relative subdirectory for document files.
README.md
is always assumed as the name of the markdown input files.