aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-06-07 04:49:59 +0000
committerGitHub <noreply@github.com>2023-06-07 04:49:59 +0000
commitcf28aed1a71ad8d9da5c6b44e0196c0629a4b246 (patch)
tree45fd4246bcde57801676b8e8c61c6d11d59778d4
parent806ea639e6f198f5f7153966e32ae7c5a3d2aad3 (diff)
parent96e446218cf80c9b095ea7d69f3b1fafb32bf462 (diff)
downloadstable-diffusion-webui-gfx803-cf28aed1a71ad8d9da5c6b44e0196c0629a4b246.tar.gz
stable-diffusion-webui-gfx803-cf28aed1a71ad8d9da5c6b44e0196c0629a4b246.tar.bz2
stable-diffusion-webui-gfx803-cf28aed1a71ad8d9da5c6b44e0196c0629a4b246.zip
Merge pull request #11058 from AUTOMATIC1111/api-wiki
link footer API to Wiki when API is not active
-rw-r--r--html/footer.html2
-rw-r--r--modules/ui.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/html/footer.html b/html/footer.html
index 1ce13295..69b2372c 100644
--- a/html/footer.html
+++ b/html/footer.html
@@ -1,5 +1,5 @@
<div>
- <a href="/docs">API</a>
+ <a href="{api_docs}">API</a>
 • 
<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">Github</a>
 • 
diff --git a/modules/ui.py b/modules/ui.py
index 3315cc17..e2e3b6da 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1501,7 +1501,7 @@ def create_ui():
gr.Audio(interactive=False, value=os.path.join(script_path, "notification.mp3"), elem_id="audio_notification", visible=False)
footer = shared.html("footer.html")
- footer = footer.format(versions=versions_html())
+ footer = footer.format(versions=versions_html(), api_docs="/docs" if shared.cmd_opts.api else "https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API")
gr.HTML(footer, elem_id="footer")
settings.add_functionality(demo)