JuliaDocs / DemoCards.jl

Let's focus on writing demos
MIT License
66 stars 14 forks source link

generate single demo file #18

Closed johnnychen94 closed 4 years ago

johnnychen94 commented 4 years ago

Currently, all demo files are generated together with the documentation.

In any non-trivial project, there might be tens of demos together with pages, so when someone wants to add a new demo, a lot of time would be spent on generating other demos, especially he/she only makes some typo updates.

I imagine to support the following pipeline:

julia> makedemos("mydemo.jl") # generates a demo page with only one card in a temp dir
a single demo page is generated in <URL>

Users can then view the demo by simply click the URL.