kdheepak / panvimdoc

Write documentation in pandoc markdown. Generate documentation in vimdoc.
https://kdheepak.com/panvimdoc
MIT License
263 stars 15 forks source link

Multiple markdown files #41

Closed chipsenkbeil closed 1 year ago

chipsenkbeil commented 1 year ago

There's mention in the readme about support for multiple markdown files, but I can't figure out how that would work. Do you provide a list of files to the pandoc field and it merges them into a single vimdoc file? Or will it generate a vimdoc file per markdown file?

kdheepak commented 1 year ago

If you include any markdown file it’ll generate one vimdoc file.

This is an example of how to include a file called README.md.

Markdown content here. 

```{.include}
README.md

More markdown content here.



Paths are resolved at the directory from this the script is invoked. 

You can run the script individually on different Markdown files if you want to generate separate vimdoc files. 
chipsenkbeil commented 1 year ago

Ah, just found that section in your docs! Thanks!

kdheepak commented 1 year ago

Great! Glad that works for you!