From cdaab07fb45a39d8858693a547ce2283d711b22c Mon Sep 17 00:00:00 2001 From: zeptodoctor <44736852+zeptodoctor@users.noreply.github.com> Date: Tue, 26 Nov 2019 11:57:45 +0000 Subject: [PATCH] build based on c39f200 --- previews/PR84/customprocessing/index.html | 2 +- previews/PR84/documenter/index.html | 2 +- previews/PR84/fileformat/index.html | 2 +- previews/PR84/generated/example.ipynb | 168 ++++++++++----------- previews/PR84/generated/example/index.html | 88 +++++------ previews/PR84/generated/name/index.html | 2 +- previews/PR84/index.html | 2 +- previews/PR84/outputformats/index.html | 6 +- previews/PR84/pipeline/index.html | 2 +- previews/PR84/search/index.html | 2 +- previews/PR84/search_index.js | 2 +- 11 files changed, 139 insertions(+), 139 deletions(-) diff --git a/previews/PR84/customprocessing/index.html b/previews/PR84/customprocessing/index.html index 49fbf5e..79b0c6f 100644 --- a/previews/PR84/customprocessing/index.html +++ b/previews/PR84/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 generating the examples in the documentation of the TimeseriesPrediction.jl package. The example files, included together in the stexamples.jl file, are processed by literate via this make.jl file to generate the markdown and code cells of the documentation.
Settings
This document was generated with Documenter.jl on Saturday 23 November 2019. Using Julia version 1.2.0.