From 50263d773f3dc61953f3d3b0276eeb3a731cdadc Mon Sep 17 00:00:00 2001 From: zeptodoctor <44736852+zeptodoctor@users.noreply.github.com> Date: Tue, 21 May 2019 21:29:22 +0000 Subject: [PATCH] build based on 7658a23 --- dev/customprocessing/index.html | 2 +- dev/generated/example.ipynb | 172 +++++++++++++++---------------- dev/generated/example/index.html | 84 +++++++-------- dev/generated/notebook.ipynb | 4 +- dev/outputformats/index.html | 4 +- dev/search_index.js | 2 +- 6 files changed, 134 insertions(+), 134 deletions(-) diff --git a/dev/customprocessing/index.html b/dev/customprocessing/index.html index 48adc7c..69b8679 100644 --- a/dev/customprocessing/index.html +++ b/dev/customprocessing/index.html @@ -26,4 +26,4 @@ include("file2.jl")
Let's say we have saved this fi end return str end
(of course replace included with your respective files)
Finally, you simply pass this function to e.g. Literate.markdown as
Literate.markdown("examples.jl", "path/to/save/markdown";
- name = "markdown_file_name", preprocess = replace_includes)and you will see that in the final output file (here markdown_file_name.md) the include statements are replaced with the actual code to be included!
This approach is used for example in the documentation of the Julia package TimeseriesPrediction, see here and here for the generating script