Exclude http and https links from md -> html conversion
Only relative links should be converted.
@@ -15,7 +15,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
AGENT_REPO_BASE="$SCRIPT_DIR/../.."
PRODUCT_DOCS_REPO="${PRODUCT_DOCS_REPO:-$AGENT_REPO_BASE/../product-docs}"
AGENT_PRODUCT_DOCS="$PRODUCT_DOCS_REPO/integrations/agent"
-MANAGE_GIT="${MANAGE_GIT-'yes'}"
+MANAGE_GIT="${MANAGE_GIT-yes}"
check_pandoc_version() {
pandoc --version | grep 'pandoc 2.[57]'
@@ -39,7 +39,7 @@ convert_relative_links() {
# Changes .md extensions to .html
convert_doc_extensions() {
- sed -E -e '/(development|signalfx-agent.1|MANUAL).md/! s/\.md(#.*)?[[:>:]]/.html\1/g' -e'/(development|signalfx-agent.1).md/! s@\./docs/@./@g'
+ sed -E -e '/http:|https:|(development|signalfx-agent.1|MANUAL).md/! s/\.md(#.*)?[[:>:]]/.html\1/g' -e'/(development|signalfx-agent.1).md/! s@\./docs/@./@g'
}
reset_repo() {
