Code Monkey home page Code Monkey logo

make-md's Introduction

Make MD Template

This playbook will take a code file, passed as a var during execution, pull the comments out of the file, and create a markdown template file in the same directory as the code file. The purpose is to reduce effort of documenting code, and providing a simple outline to guide you through the process.

The base of this file was generated with make-md


Usage:

ansible-playbook make_md_template.yml -e "code_file=<path to file>/<file name>"


Process:

Get the extension of the file and strip off the rest
get the name, without the extension
get the file path
"Case statement to take the extension fact and convert it into {{ comment_style }}"



Named Steps:

  • set facts for {{ code_file }}"
  • set {{ file_extension }} fact for the file in {{ file_path }}"
  • let's see what we captured"
  • run comment role for {{ comment_style }} commenting style"

Future:

This could be used as part of a pipeline to generate process documentation for the programs / applications being written.


Comment Style
Hash # <# #>
Slash // /* */
Web <!-- --> <meta>
Semi-Colon ;
ΔDash Dash -- --[[
ΔRemark REM '

Δ - Not fully implemented


ansible generated process flow wireframe for make_md_template.md


#dsmith73
github.com/dsmith73

make-md's People

Contributors

dsmith73 avatar

Watchers

James Cloos avatar  avatar

make-md's Issues

Setup Airbrake for other applications

Integrate any application or build custom notifiers using Airbrake's public
APIs: https://airbrake.io/docs/api/

Airbrake has many community maintained notifers for capturing exceptions in your applications.
We also offer a couple of addons/plugins with 3rd parties. Below is a list of our favorites:

Are we missing something? If so, please get in touch with [email protected] and we'll be happy to help get Airbrake integrated into your app.

For official list of supported languages please visit https://airbrake.io/languages.

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.