zakhenry/embedme

Request: Support for .ino files (Arduino sketches)

elektronikworkshop opened this issue ยท 2 comments

Hi Zak,

thanks for this great tool - one I was looking for for a long time.

I'm currently documenting some Arduino libraries and I use your tool to embed the example code into the readme. It works perfectly but spits out a warning of course:

Embedding...
Skipped 0 files ignored in '.gitignore'
  Analysing README.md...
   README.md#L5-L48 Embedded 40 lines from file examples/lcdpong-butenc/lcdpong-butenc.ino#L20-L59
   README.md#L67-L83 Unsupported file extension [c++], supported extensions are txt, ts, js, scss, rust, java, cpp, c, html, xml, md, yaml, json, json5, py, bash, sh, go, objectivec, php, cs, swift, rb, kotlin, scala, cr, puml, mermaid, cmake, proto, sql, hs, skipping code block
   README.md#L122-L129 No code extension detected, skipping code block...
   README.md#L137-L139 No code extension detected, skipping code block...
   README.md#L140-L141 Code block is empty & no preceding embedme comment, skipping...
   README.md#L144-L150 No code extension detected, skipping code block...
  Writing README.md with embedded changes.

The embedme-code was

```cpp
// examples/lcdpong-butenc/lcdpong-butenc.ino#L20-L59
```

The .ino are Arduino sketches and are plain C++, perhaps this could be implemented as an alias or so?

I just created a pull request for this which will close this issue automagically when merged.

๐ŸŽ‰ This issue has been resolved in version 1.20.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€