mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
Merge pull request #1734 from darlanalves/env-docs-dir
feat: allow a docs directory coming from env
This commit is contained in:
@@ -220,7 +220,7 @@ Path(CACHE_DIR).mkdir(parents=True, exist_ok=True)
|
|||||||
# Docs DIR
|
# Docs DIR
|
||||||
####################################
|
####################################
|
||||||
|
|
||||||
DOCS_DIR = f"{DATA_DIR}/docs"
|
DOCS_DIR = os.getenv("DOCS_DIR", f"{DATA_DIR}/docs")
|
||||||
Path(DOCS_DIR).mkdir(parents=True, exist_ok=True)
|
Path(DOCS_DIR).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user