From 0156ab29a3577775492a04075d684aba1118cc23 Mon Sep 17 00:00:00 2001 From: trenki Date: Wed, 11 Sep 2024 22:56:15 +0800 Subject: [PATCH] feat: Adding Dify configuration to the Sphinx conf.py file. --- docs/source/conf.py | 8 +++++--- docs/source/static/dify.js | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 docs/source/static/dify.js diff --git a/docs/source/conf.py b/docs/source/conf.py index d93048a..144baf0 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -35,8 +35,11 @@ # html_theme = 'classic' # html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] -html_static_path = ["_static"] - +html_static_path = ["static"] +html_js_files = [ + 'dify.js', + ('https://udify.app/embed.min.js', {'defer': 'true',"id":'fQEsdVSPPy5MKVgo'}), +] html_theme_options = { "top_of_page_button": "edit", "sidebar_hide_name": True, @@ -55,7 +58,6 @@ source_suffix = [".rst", ".md"] - project_path = "../../geochemistrypi" # autodoc_mock_imports = ["geochemistrypi"] sys.path.insert(0, os.path.abspath("../..")) diff --git a/docs/source/static/dify.js b/docs/source/static/dify.js new file mode 100644 index 0000000..5881bd9 --- /dev/null +++ b/docs/source/static/dify.js @@ -0,0 +1,4 @@ + +window.difyChatbotConfig = { + token: 'fQEsdVSPPy5MKVgo' +} \ No newline at end of file