From 1a949dbae00741ff46811b77255d6fca4d4789fd Mon Sep 17 00:00:00 2001 From: zeptodoctor <44736852+zeptodoctor@users.noreply.github.com> Date: Tue, 3 Mar 2020 08:47:17 +0000 Subject: [PATCH] build based on 4c1221f --- dev/customprocessing/index.html | 2 +- dev/documenter/index.html | 2 +- dev/fileformat/index.html | 2 +- dev/generated/example.ipynb | 206 ++++++++++++++++++------------- dev/generated/example.jl | 7 +- dev/generated/example/index.html | 89 ++++++------- dev/generated/name/index.html | 2 +- dev/index.html | 2 +- dev/outputformats/index.html | 4 +- dev/pipeline/index.html | 2 +- dev/search/index.html | 2 +- dev/search_index.js | 2 +- 12 files changed, 179 insertions(+), 143 deletions(-) diff --git a/dev/customprocessing/index.html b/dev/customprocessing/index.html index 77f016b..cd0ea69 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 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 Tuesday 3 March 2020. Using Julia version 1.3.1.