From 43c1af748ba8f13011b6812a43ad1b2f0a64123b Mon Sep 17 00:00:00 2001 From: zeptodoctor <44736852+zeptodoctor@users.noreply.github.com> Date: Mon, 18 Nov 2019 14:45:21 +0000 Subject: [PATCH] build based on 846f6f6 --- previews/PR81/customprocessing.html | 2 +- previews/PR81/documenter.html | 2 +- previews/PR81/fileformat.html | 2 +- previews/PR81/generated/example.html | 86 ++++++------- previews/PR81/generated/example.ipynb | 168 +++++++++++++------------- previews/PR81/generated/name.html | 2 +- previews/PR81/index.html | 2 +- previews/PR81/outputformats.html | 4 +- previews/PR81/pipeline.html | 2 +- previews/PR81/search.html | 2 +- 10 files changed, 136 insertions(+), 136 deletions(-) diff --git a/previews/PR81/customprocessing.html b/previews/PR81/customprocessing.html index 79aff7f..39c6224 100644 --- a/previews/PR81/customprocessing.html +++ b/previews/PR81/customprocessing.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 Monday 18 November 2019. Using Julia version 1.2.0.