From c2d46de8bc9a1d9059ab81e651cc91400a03e32e Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 17 Jun 2023 15:47:33 -0700 Subject: [PATCH] Add endpoint for regenerating directly from the config page and add music content-type --- src/khoj/interface/web/base_config.html | 11 ++++++- src/khoj/interface/web/config.html | 39 +++++++++++++++++++++++++ src/khoj/routers/web_client.py | 2 +- 3 files changed, 50 insertions(+), 2 deletions(-) diff --git a/src/khoj/interface/web/base_config.html b/src/khoj/interface/web/base_config.html index c927abc8..89ea6067 100644 --- a/src/khoj/interface/web/base_config.html +++ b/src/khoj/interface/web/base_config.html @@ -7,7 +7,10 @@
-

Configure Khoj

+
+

Configure Khoj

+

Check out our source code on Github

+

Ready?

@@ -31,5 +34,11 @@ grid-template-columns: 1fr 1fr; grid-gap: 12px; } + + @media screen and (max-width: 600px) { + header { + grid-template-columns: 1fr; + } + } diff --git a/src/khoj/interface/web/config.html b/src/khoj/interface/web/config.html index e6b2c9c4..62f2c642 100644 --- a/src/khoj/interface/web/config.html +++ b/src/khoj/interface/web/config.html @@ -14,11 +14,16 @@ +

Processors

+

Finalize

+ + {% endblock %} diff --git a/src/khoj/routers/web_client.py b/src/khoj/routers/web_client.py index 0a64efc7..7b3ae778 100644 --- a/src/khoj/routers/web_client.py +++ b/src/khoj/routers/web_client.py @@ -18,7 +18,7 @@ logger = logging.getLogger("khoj") web_client = APIRouter() templates = Jinja2Templates(directory=constants.web_directory) -VALID_CONTENT_TYPES = ["org", "ledger", "image", "music", "markdown", "pdf"] +VALID_CONTENT_TYPES = ["org", "ledger", "music", "markdown", "pdf"] # Create Routes