Skip to content

Commit

Permalink
feat: Adding Dify configuration to the Sphinx conf.py file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenki committed Sep 11, 2024
1 parent 9bcd22e commit 0156ab2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -55,7 +58,6 @@

source_suffix = [".rst", ".md"]


project_path = "../../geochemistrypi"
# autodoc_mock_imports = ["geochemistrypi"]
sys.path.insert(0, os.path.abspath("../.."))
Expand Down
4 changes: 4 additions & 0 deletions docs/source/static/dify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

window.difyChatbotConfig = {
token: 'fQEsdVSPPy5MKVgo'
}

0 comments on commit 0156ab2

Please sign in to comment.