diff --git a/dev/assets/documenter.js b/dev/assets/documenter.js index a1ada46..4fb3baa 100644 --- a/dev/assets/documenter.js +++ b/dev/assets/documenter.js @@ -283,6 +283,12 @@ require(['jquery'], function($) { // update the version selector with info from the siteinfo.js and ../versions.js files $(document).ready(function() { + // If the version selector is disabled with DOCUMENTER_VERSION_SELECTOR_DISABLED in the + // siteinfo.js file, we just return immediately and not display the version selector. + if (typeof DOCUMENTER_VERSION_SELECTOR_DISABLED === 'boolean' && DOCUMENTER_VERSION_SELECTOR_DISABLED) { + return; + } + var version_selector = $("#documenter .docs-version-selector"); var version_selector_select = $("#documenter .docs-version-selector select"); diff --git a/dev/assets/themes/documenter-dark.css b/dev/assets/themes/documenter-dark.css index 3608141..0bf1af7 100644 --- a/dev/assets/themes/documenter-dark.css +++ b/dev/assets/themes/documenter-dark.css @@ -3598,7 +3598,7 @@ html.theme--documenter-dark { position: relative; } html.theme--documenter-dark .card-content { background-color: transparent; - padding: 1rem 1.25rem; } + padding: 1.5rem; } html.theme--documenter-dark .card-footer { background-color: transparent; border-top: 1px solid #5e6d6f; @@ -3938,7 +3938,7 @@ html.theme--documenter-dark { font-weight: 700; justify-content: space-between; line-height: 1.25; - padding: 0.75em; + padding: 0.75em 1em; position: relative; } html.theme--documenter-dark .message-header .delete { flex-grow: 0; @@ -3954,7 +3954,7 @@ html.theme--documenter-dark { border-style: solid; border-width: 0 0 0 4px; color: #fff; - padding: 1em 1.25em; } + padding: 1.25em 1.5em; } html.theme--documenter-dark .message-body code, html.theme--documenter-dark .message-body pre { background-color: white; } @@ -7090,13 +7090,13 @@ html.theme--documenter-dark { position: relative; overflow: hidden; } html.theme--documenter-dark pre code, html.theme--documenter-dark pre code.hljs { - padding: 0 0.5rem !important; + padding: 0 0.75rem !important; overflow: auto; display: block; } html.theme--documenter-dark pre code:first-of-type, html.theme--documenter-dark pre code.hljs:first-of-type { - padding-top: 0.7rem !important; } + padding-top: 0.5rem !important; } html.theme--documenter-dark pre code:last-of-type, html.theme--documenter-dark pre code.hljs:last-of-type { - padding-bottom: 0.7rem !important; } + padding-bottom: 0.5rem !important; } html.theme--documenter-dark pre .copy-button { opacity: 0.2; transition: opacity 0.2s; @@ -7175,16 +7175,16 @@ html.theme--documenter-dark { font-weight: 700; justify-content: space-between; line-height: 1.25; - padding: 0.75em; + padding: 0.5rem 0.75rem; position: relative; } html.theme--documenter-dark .admonition-header:before { font-family: "Font Awesome 5 Free"; font-weight: 900; - margin-right: 0.75em; + margin-right: 0.75rem; content: "\f06a"; } html.theme--documenter-dark .admonition-body { color: #fff; - padding: 1em 1.25em; } + padding: 0.5rem 0.75rem; } html.theme--documenter-dark .admonition-body pre { background-color: #282f2f; } html.theme--documenter-dark .admonition-body code { @@ -7199,7 +7199,7 @@ html.theme--documenter-dark { display: flex; flex-grow: 1; align-items: stretch; - padding: 0.75rem; + padding: 0.5rem 0.75rem; background-color: #282f2f; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1); box-shadow: none; @@ -7212,7 +7212,7 @@ html.theme--documenter-dark { margin-left: 0.3em; } html.theme--documenter-dark .docstring > section { position: relative; - padding: 1rem 1.25rem; + padding: 0.75rem 0.75rem; border-bottom: 1px solid #5e6d6f; } html.theme--documenter-dark .docstring > section:last-child { border-bottom: none; } @@ -7220,8 +7220,8 @@ html.theme--documenter-dark { transition: opacity 0.3s; opacity: 0; position: absolute; - right: 0.625rem; - bottom: 0.5rem; } + right: 0.375rem; + bottom: 0.375rem; } html.theme--documenter-dark .docstring > section > a.docs-sourcelink:focus { opacity: 1 !important; } html.theme--documenter-dark .docstring:hover > section > a.docs-sourcelink { diff --git a/dev/assets/themes/documenter-light.css b/dev/assets/themes/documenter-light.css index f3e70f4..9595d5b 100644 --- a/dev/assets/themes/documenter-light.css +++ b/dev/assets/themes/documenter-light.css @@ -3666,7 +3666,7 @@ a.tag:hover, .docstring > section > a.docs-sourcelink:hover { .card-content { background-color: transparent; - padding: 1rem 1.25rem; } + padding: 1.5rem; } .card-footer { background-color: transparent; @@ -4029,7 +4029,7 @@ a.list-item { font-weight: 700; justify-content: space-between; line-height: 1.25; - padding: 0.75em; + padding: 0.75em 1em; position: relative; } .message-header .delete { flex-grow: 0; @@ -4046,7 +4046,7 @@ a.list-item { border-style: solid; border-width: 0 0 0 4px; color: #222222; - padding: 1em 1.25em; } + padding: 1.25em 1.5em; } .message-body code, .message-body pre { background-color: white; } @@ -7004,13 +7004,13 @@ pre { position: relative; overflow: hidden; } pre code, pre code.hljs { - padding: 0 0.5rem !important; + padding: 0 0.75rem !important; overflow: auto; display: block; } pre code:first-of-type, pre code.hljs:first-of-type { - padding-top: 0.7rem !important; } + padding-top: 0.5rem !important; } pre code:last-of-type, pre code.hljs:last-of-type { - padding-bottom: 0.7rem !important; } + padding-bottom: 0.5rem !important; } pre .copy-button { opacity: 0.2; transition: opacity 0.2s; @@ -7110,17 +7110,17 @@ pre { font-weight: 700; justify-content: space-between; line-height: 1.25; - padding: 0.75em; + padding: 0.5rem 0.75rem; position: relative; } .admonition-header:before { font-family: "Font Awesome 5 Free"; font-weight: 900; - margin-right: 0.75em; + margin-right: 0.75rem; content: "\f06a"; } .admonition-body { color: #222222; - padding: 1em 1.25em; } + padding: 0.5rem 0.75rem; } .admonition-body pre { background-color: whitesmoke; } .admonition-body code { @@ -7136,7 +7136,7 @@ pre { display: flex; flex-grow: 1; align-items: stretch; - padding: 0.75rem; + padding: 0.5rem 0.75rem; background-color: whitesmoke; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1); box-shadow: none; @@ -7149,7 +7149,7 @@ pre { margin-left: 0.3em; } .docstring > section { position: relative; - padding: 1rem 1.25rem; + padding: 0.75rem 0.75rem; border-bottom: 1px solid #dbdbdb; } .docstring > section:last-child { border-bottom: none; } @@ -7157,8 +7157,8 @@ pre { transition: opacity 0.3s; opacity: 0; position: absolute; - right: 0.625rem; - bottom: 0.5rem; } + right: 0.375rem; + bottom: 0.375rem; } .docstring > section > a.docs-sourcelink:focus { opacity: 1 !important; } .docstring:hover > section > a.docs-sourcelink { diff --git a/dev/customprocessing/index.html b/dev/customprocessing/index.html index 27364cb..a63cec1 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 version 0.27.17 on Friday 3 June 2022. Using Julia version 1.7.3.