From 1a3d9ed5cc3200d781cce1df2cf4f08df04d841e Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Fri, 20 May 2016 19:43:16 -0400 Subject: [PATCH] build: Exclude advanced nav from non-article documents. --- build-docs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-docs b/build-docs index 8ebe31e1..0f93f837 100755 --- a/build-docs +++ b/build-docs @@ -142,7 +142,7 @@ function build_source { # process includes NAVIGATION_PARTIAL="${DOCS_DIR}/$(string_filter \"${DOCUMENT_Language_Code:-.}\" slug)/$(string_filter \"${DOCUMENT_Project_Version:-.}\" slug)/${CONFIG_Navigation%.markdown}.partial.html" NAVIGATION_RELPATH="${BASE_RELPATH#../../}" - if [[ -e "${NAVIGATION_PARTIAL}" ]]; then + if [[ -e "${NAVIGATION_PARTIAL}" ]] && [[ "${DOCUMENT_Type}" == "article" ]]; then sed -E \ -e 's|

([^<]+)

|

\1

|' \ -e 's|(