From bbab8152ce40910b08536c03dc1cb3d2857b0b96 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 29 Mar 2021 23:47:39 +0200 Subject: [PATCH] doc: move all js files to _static/js Move all Javascript files to the _static/js subfolder. Signed-off-by: Gerard Marull-Paretas --- doc/_static/{ => js}/ga-tracker.js | 0 doc/{ => _static/js}/scorer.js | 0 doc/_static/{ => js}/zephyr-custom.js | 0 doc/conf.py | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename doc/_static/{ => js}/ga-tracker.js (100%) rename doc/{ => _static/js}/scorer.js (100%) rename doc/_static/{ => js}/zephyr-custom.js (100%) diff --git a/doc/_static/ga-tracker.js b/doc/_static/js/ga-tracker.js similarity index 100% rename from doc/_static/ga-tracker.js rename to doc/_static/js/ga-tracker.js diff --git a/doc/scorer.js b/doc/_static/js/scorer.js similarity index 100% rename from doc/scorer.js rename to doc/_static/js/scorer.js diff --git a/doc/_static/zephyr-custom.js b/doc/_static/js/zephyr-custom.js similarity index 100% rename from doc/_static/zephyr-custom.js rename to doc/_static/js/zephyr-custom.js diff --git a/doc/conf.py b/doc/conf.py index 48a3ad0a105..fbe306caded 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -278,7 +278,7 @@ sourcelink_suffix = '.txt' # The name of a javascript file (relative to the configuration directory) that # implements a search results scorer. If empty, the default will be used. -html_search_scorer = 'scorer.js' +html_search_scorer = '_static/js/scorer.js' # Output file base name for HTML help builder. htmlhelp_basename = 'zephyrdoc' @@ -582,5 +582,5 @@ def setup(app): app.add_css_file("zephyr-custom.css") app.add_js_file("https://www.googletagmanager.com/gtag/js?id=UA-831873-47") - app.add_js_file("ga-tracker.js") - app.add_js_file("zephyr-custom.js") + app.add_js_file("js/ga-tracker.js") + app.add_js_file("js/zephyr-custom.js")