GithubHelp home page GithubHelp logo

cmmeyer / pandomine Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 232 KB

Pandomine is a pandoc based framework to generate customer facing documentation in Word DOCX format using the README.md markdown files you have already written.

License: MIT License

Shell 100.00%

pandomine's Introduction

Pandomine Document Generator

Introduction

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.

Pandomime Document Generator

Requirements

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.

Demo

  1. Install pandoc.
  2. Clone this repo.
  3. Run ./generate-docs.sh
  4. Pandomime finds three README.md files and generates docs.
  5. View your fresh, new DOCX files in the docs/ directory.

How It Works

Run generate_docs.sh from the any directory. It will drill down into all subdirectories and do the following:

  1. Find any files named README.md
  2. Extract out the first First Level Header (#) in the document to use as the document title.
  3. Generate a DOCX file by combining the markdown from the file and formatting from the reference document specified in the configuration.
  4. Save the DOCX file in the document subdirectory specified in configuration using the name extracted above.
  5. Continue on to the next README.md file.

Configuration

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.