Socket
Socket
Sign inDemoInstall

autodoc_compiler

Package Overview
Dependencies
8
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    autodoc_compiler

Compiles inline docs to markdown


Version published
Maintainers
1
Install size
122 kB
Created

Readme

Source

#Autodoc Compiler

Compiles inline docs to markdown

##Usage

autodoc_compile will compile all docs in current and child directories and output markdown in PWD.

Currently only supports the .liquid extension.

Params

autodoc_compile [ relative directory to read || . ] [ relative directory to write the file to || . ] [ filename to write to || $pwd_liquid.md ] [ header text for the docs || "###Docs for dir's files in subdir ending in .liquid " ]

##Inline documentation format

{% comment %} // just so this doesn't show in liquid
    start_autodoc // signals that the following JSON object is a definition
    {
        "name": "advice_guidance_text", // name of the content chunk
        "description": "Text for the advice and guidance section", // what the content chunk is for, where it shows, how fields are to be used.
        "fields": [ "title", "text" ] // required fields (optional, can be detailed if you want)
    }
    stop_autodoc // signals that the definition is complete
{% endcomment %} // end comment

If JSON is invalid compilation will fail. Be sure to escape protected characters.

FAQs

Last updated on 14 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc