Use new Khoj Lantern Logo in Web, Emacs, Obsidian UIs and Docs

This commit is contained in:
Debanjum Singh Solanky 2023-06-21 01:13:50 -07:00
parent 69d4fa6525
commit 6d4aad57e1
11 changed files with 5404 additions and 15 deletions

View file

@ -1,4 +1,5 @@
# Khoj 🦅 <h1><img src="src/khoj/interface/web/assets/icons/khoj-logo-sideways.svg" width="330" alt="Khoj Logo"></h1>
[![test](https://github.com/khoj-ai/khoj/actions/workflows/test.yml/badge.svg)](https://github.com/khoj-ai/khoj/actions/workflows/test.yml) [![test](https://github.com/khoj-ai/khoj/actions/workflows/test.yml/badge.svg)](https://github.com/khoj-ai/khoj/actions/workflows/test.yml)
[![dockerize](https://github.com/khoj-ai/khoj/actions/workflows/dockerize.yml/badge.svg)](https://github.com/khoj-ai/khoj/pkgs/container/khoj) [![dockerize](https://github.com/khoj-ai/khoj/actions/workflows/dockerize.yml/badge.svg)](https://github.com/khoj-ai/khoj/pkgs/container/khoj)
[![pypi](https://github.com/khoj-ai/khoj/actions/workflows/pypi.yml/badge.svg)](https://pypi.org/project/khoj-assistant/) [![pypi](https://github.com/khoj-ai/khoj/actions/workflows/pypi.yml/badge.svg)](https://pypi.org/project/khoj-assistant/)
@ -308,7 +309,7 @@ pip install --upgrade --pre khoj-assistant
If you want, Khoj can be configured to use OpenAI for search and chat.<br /> If you want, Khoj can be configured to use OpenAI for search and chat.<br />
Add your OpenAI API to Khoj by using either of the two options below: Add your OpenAI API to Khoj by using either of the two options below:
- Open the Khoj desktop GUI, add your [OpenAI API key](https://beta.openai.com/account/api-keys) and click *Configure* - Open the Khoj desktop GUI, add your [OpenAI API key](https://beta.openai.com/account/api-keys) and click *Configure*
Ensure khoj is started **without** the `--no-gui` flag. Check your system tray to see if Khoj 🦅 is minimized there. Ensure khoj is started **without** the `--no-gui` flag. Check your system tray to see if Khoj is minimized there.
- Set `openai-api-key` field under `processor.conversation` section in your `khoj.yml`[^1] to your [OpenAI API key](https://beta.openai.com/account/api-keys) and restart khoj: - Set `openai-api-key` field under `processor.conversation` section in your `khoj.yml`[^1] to your [OpenAI API key](https://beta.openai.com/account/api-keys) and restart khoj:
```diff ```diff
processor: processor:

View file

@ -3,7 +3,7 @@
"name": "Khoj", "name": "Khoj",
"version": "0.6.2", "version": "0.6.2",
"minAppVersion": "0.15.0", "minAppVersion": "0.15.0",
"description": "An AI Personal Assistant for your Digital Brain 🦅", "description": "An AI Personal Assistant for your Digital Brain",
"author": "Debanjum Singh Solanky", "author": "Debanjum Singh Solanky",
"authorUrl": "https://github.com/debanjum", "authorUrl": "https://github.com/debanjum",
"isDesktopOnly": false "isDesktopOnly": false

View file

@ -1,4 +1,6 @@
* Khoj Emacs 🦅 [[https://github.com/khoj-ai/khoj/edit/master/src/interface/emacs/README.org][file:/src/khoj/interface/web/assets/icons/khoj-logo-sideways-200.png]] Emacs
[[https://stable.melpa.org/#/khoj][file:https://stable.melpa.org/packages/khoj-badge.svg]] [[https://melpa.org/#/khoj][file:https://melpa.org/packages/khoj-badge.svg]] [[https://github.com/khoj-ai/khoj/actions/workflows/build_khoj_el.yml][https://github.com/khoj-ai/khoj/actions/workflows/build_khoj_el.yml/badge.svg?]] [[https://github.com/khoj-ai/khoj/actions/workflows/test_khoj_el.yml][https://github.com/khoj-ai/khoj/actions/workflows/test_khoj_el.yml/badge.svg?]] [[https://stable.melpa.org/#/khoj][file:https://stable.melpa.org/packages/khoj-badge.svg]] [[https://melpa.org/#/khoj][file:https://melpa.org/packages/khoj-badge.svg]] [[https://github.com/khoj-ai/khoj/actions/workflows/build_khoj_el.yml][https://github.com/khoj-ai/khoj/actions/workflows/build_khoj_el.yml/badge.svg?]] [[https://github.com/khoj-ai/khoj/actions/workflows/test_khoj_el.yml][https://github.com/khoj-ai/khoj/actions/workflows/test_khoj_el.yml/badge.svg?]]
/An AI personal assistant for your digital brain/ /An AI personal assistant for your digital brain/

View file

@ -106,13 +106,13 @@
(defvar khoj--minibuffer-window nil (defvar khoj--minibuffer-window nil
"Minibuffer window used to enter query.") "Minibuffer window used to enter query.")
(defconst khoj--query-prompt "🦅Khoj: " (defconst khoj--query-prompt "🏮 Khoj: "
"Query prompt shown in the minibuffer.") "Query prompt shown in the minibuffer.")
(defconst khoj--search-buffer-name "*🦅Khoj Search*" (defconst khoj--search-buffer-name "*🏮 Khoj Search*"
"Name of buffer to show search results from Khoj.") "Name of buffer to show search results from Khoj.")
(defconst khoj--chat-buffer-name "*🦅Khoj Chat*" (defconst khoj--chat-buffer-name "*🏮 Khoj Chat*"
"Name of chat buffer for Khoj.") "Name of chat buffer for Khoj.")
(defvar khoj--content-type "org" (defvar khoj--content-type "org"
@ -782,7 +782,7 @@ Render results in BUFFER-NAME using QUERY, CONTENT-TYPE."
(progn (progn
(org-set-startup-visibility) (org-set-startup-visibility)
(visual-line-mode) (visual-line-mode)
(re-search-backward "^\*+ 🦅" nil t)))) (re-search-backward "^\*+ 🏮" nil t))))
(defun khoj--query-chat-api (query) (defun khoj--query-chat-api (query)
"Send QUERY to Khoj Chat API." "Send QUERY to Khoj Chat API."
@ -807,7 +807,7 @@ RECEIVE-DATE is the message receive date."
(let ((first-message-line (car (split-string message "\n" t))) (let ((first-message-line (car (split-string message "\n" t)))
(rest-message-lines (string-join (cdr (split-string message "\n" t)) "\n")) (rest-message-lines (string-join (cdr (split-string message "\n" t)) "\n"))
(heading-level (if (equal sender "you") "**" "***")) (heading-level (if (equal sender "you") "**" "***"))
(emojified-sender (if (equal sender "you") "🤔 *You*" "🦅 *Khoj*")) (emojified-sender (if (equal sender "you") "🤔 *You*" "🏮 *Khoj*"))
(suffix-newlines (if (equal sender "khoj") "\n\n" "")) (suffix-newlines (if (equal sender "khoj") "\n\n" ""))
(received (or receive-date (format-time-string "%F %T")))) (received (or receive-date (format-time-string "%F %T"))))
(format "%s %s: %s\n :PROPERTIES:\n :RECEIVED: [%s]\n :END:\n%s\n%s" (format "%s %s: %s\n :PROPERTIES:\n :RECEIVED: [%s]\n :END:\n%s\n%s"

View file

@ -1,4 +1,5 @@
# Khoj Obsidian 🦅 <img src="/src/khoj/interface/web/assets/icons/khoj-logo-sideways.svg" width="200" alt="Khoj Logo">Obsidian
> Natural language search for your Obsidian notes using [Khoj](https://github.com/khoj-ai/khoj) > Natural language search for your Obsidian notes using [Khoj](https://github.com/khoj-ai/khoj)
## Table of Contents ## Table of Contents

View file

@ -3,7 +3,7 @@
"name": "Khoj", "name": "Khoj",
"version": "0.6.2", "version": "0.6.2",
"minAppVersion": "0.15.0", "minAppVersion": "0.15.0",
"description": "An AI Personal Assistant for your Digital Brain 🦅", "description": "An AI Personal Assistant for your Digital Brain",
"author": "Debanjum Singh Solanky", "author": "Debanjum Singh Solanky",
"authorUrl": "https://github.com/debanjum", "authorUrl": "https://github.com/debanjum",
"isDesktopOnly": false "isDesktopOnly": false

View file

@ -1,7 +1,7 @@
{ {
"name": "Khoj", "name": "Khoj",
"version": "0.6.2", "version": "0.6.2",
"description": "An AI Personal Assistant for your Digital Brain 🦅", "description": "An AI Personal Assistant for your Digital Brain",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {
"dev": "node esbuild.config.mjs", "dev": "node esbuild.config.mjs",

View file

@ -49,7 +49,7 @@ export class KhojChatModal extends Modal {
type: "text", type: "text",
id: "khoj-chat-input", id: "khoj-chat-input",
autofocus: "autofocus", autofocus: "autofocus",
placeholder: "Chat with Khoj 🦅 [Hit Enter to send message]", placeholder: "Chat with Khoj [Hit Enter to send message]",
class: "khoj-chat-input option" class: "khoj-chat-input option"
} }
}) })
@ -81,7 +81,7 @@ export class KhojChatModal extends Modal {
renderMessage(message: string, sender: string, dt?: Date): Element | null { renderMessage(message: string, sender: string, dt?: Date): Element | null {
let message_time = this.formatDate(dt ?? new Date()); let message_time = this.formatDate(dt ?? new Date());
let emojified_sender = sender == "khoj" ? "🦅 Khoj" : "🤔 You"; let emojified_sender = sender == "khoj" ? "🏮 Khoj" : "🤔 You";
// Append message to conversation history HTML element. // Append message to conversation history HTML element.
// The chat logs should display above the message input box to follow standard UI semantics // The chat logs should display above the message input box to follow standard UI semantics

View file

@ -63,7 +63,7 @@ export class KhojSearchModal extends SuggestModal<SearchResult> {
this.setInstructions(modalInstructions); this.setInstructions(modalInstructions);
// Set Placeholder Text for Modal // Set Placeholder Text for Modal
this.setPlaceholder('Search with Khoj 🦅...'); this.setPlaceholder('Search with Khoj...');
} }
async onOpen() { async onOpen() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB