From 01151233bc6fb1b88551a3f2eb7eb20b82bb0e05 Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Fri, 2 Dec 2022 09:53:53 +0100 Subject: [PATCH] fix custom_script ordering --- Project.toml | 2 +- src/MultiDocumenter.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 42f392f9..11ed8a4b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MultiDocumenter" uuid = "87ed4bf0-c935-4a67-83c3-2a03bee4197c" authors = ["Sebastian Pfitzner and contributors"] -version = "0.5.0" +version = "0.5.1" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" diff --git a/src/MultiDocumenter.jl b/src/MultiDocumenter.jl index 7ea3bd04..6bbce055 100644 --- a/src/MultiDocumenter.jl +++ b/src/MultiDocumenter.jl @@ -325,7 +325,7 @@ function inject_styles_and_global_navigation( stylesheet.parent = el push!(el.children, stylesheet) end - for script in scripts + for script in reverse!(scripts) script.parent = el pushfirst!(el.children, script) end