From b2cf72d8a5377271c3bdc90d93d061976caa72e6 Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Tue, 14 Mar 2023 10:16:59 +0000 Subject: [PATCH] docs: fix anchor links in rendered specs Signed-off-by: Mike Ralphson --- scripts/md2html/md2html.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/md2html/md2html.js b/scripts/md2html/md2html.js index ae7a501967..147e33f62a 100644 --- a/scripts/md2html/md2html.js +++ b/scripts/md2html/md2html.js @@ -76,7 +76,10 @@ function preface(title,options) { if (options.respec) { preface += ''; preface += ``; - preface += fs.readFileSync('./analytics/google.html','utf8'); + try { + preface += fs.readFileSync('./analytics/google.html','utf8'); + } + catch (ex) {} preface += ''; preface += '