From dcb7cf5843f083e3103ea7dc507ba4f4378ff74a Mon Sep 17 00:00:00 2001 From: zeptodoctor <44736852+zeptodoctor@users.noreply.github.com> Date: Mon, 1 Jun 2020 12:28:31 +0000 Subject: [PATCH] build based on 751b80f --- previews/PR110/customprocessing/index.html | 2 +- previews/PR110/documenter/index.html | 2 +- previews/PR110/fileformat/index.html | 2 +- previews/PR110/generated/example.ipynb | 128 ++++++++++---------- previews/PR110/generated/example/index.html | 66 +++++----- previews/PR110/generated/name/index.html | 2 +- previews/PR110/index.html | 2 +- previews/PR110/outputformats/index.html | 4 +- previews/PR110/pipeline/index.html | 2 +- previews/PR110/search/index.html | 2 +- previews/PR110/tips/index.html | 2 +- 11 files changed, 107 insertions(+), 107 deletions(-) diff --git a/previews/PR110/customprocessing/index.html b/previews/PR110/customprocessing/index.html index a1b3bed..b9a4c86 100644 --- a/previews/PR110/customprocessing/index.html +++ b/previews/PR110/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 Friday 29 May 2020. Using Julia version 1.4.2.