Skip to content

Commit 7c26984

Browse files
fix: linting issues
1 parent b22cd89 commit 7c26984

2 files changed

Lines changed: 30 additions & 23 deletions

File tree

src/content/docs/articles/obsidian-x-ollama.mdx

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,21 @@ Let's consider that Obsidian is already installed on your machine. If you haven'
116116

117117
To connect Obsidian to Ollama, you'll need two open source Obsidian community plugins created by [Pavel Frankov](https://github.com/pfrankov):
118118

119-
* AI Providers
120-
* Local GPT
121-
122-
<ShowcaseGitHubRepo env="pfrankov" repo="obsidian-local-gpt" img="584632" description="Local Ollama and OpenAI-like GPT's assistance for maximum privacy and offline access " />
123-
<ShowcaseGitHubRepo env="pfrankov" repo="obsidian-ai-providers" img="584632" description="This plugin is a hub for setting AI providers (OpenAI-like, Ollama and more) in one place. " />
119+
- AI Providers
120+
- Local GPT
121+
122+
<ShowcaseGitHubRepo
123+
env="pfrankov"
124+
repo="obsidian-local-gpt"
125+
img="584632"
126+
description="Local Ollama and OpenAI-like GPT's assistance for maximum privacy and offline access "
127+
/>
128+
<ShowcaseGitHubRepo
129+
env="pfrankov"
130+
repo="obsidian-ai-providers"
131+
img="584632"
132+
description="This plugin is a hub for setting AI providers (OpenAI-like, Ollama and more) in one place. "
133+
/>
124134

125135
### AI Providers
126136

@@ -130,17 +140,16 @@ Let's start by installing the **AI Providers** plugin.
130140

131141
1. In Obsidian, go to "Settings → Community Plugins → Browse" and search for "AI Providers".
132142

133-
<ContentImage src="/images/running-a-local-ai-inside-obsidian-with-ollama-1.png" alt="" width="720" height="320" />
143+
<ContentImage src="/images/running-a-local-ai-inside-obsidian-with-ollama-1.png" alt="" width="720" height="320" />
134144

135145
1. Click "Install", then "Enable" to enable the plugin.
136146

137147
1. Click "Options" to configure the plugin:
138-
139148
- In the "AI providers" section, click "+" to add a new provider.
140149
- In the "Add new provider" dialog:
141150
- Select "Ollama" as the provider type.
142-
- Click on the refresh icon of the "Model" field to fetch Gemma 3 from your local Ollama installation.
143-
- Click "Save" to add the provider.
151+
- Click on the refresh icon of the "Model" field to fetch Gemma 3 from your local Ollama installation.
152+
- Click "Save" to add the provider.
144153

145154
<ContentImage src="/images/running-a-local-ai-inside-obsidian-with-ollama-2.png" alt="" width="420" height="320" />
146155

@@ -154,15 +163,14 @@ Then, install the **Local GPT** plugin.
154163

155164
1. In Obsidian, go to "Settings → Community Plugins → Browse" and search for "Local GPT".
156165

157-
<ContentImage src="/images/running-a-local-ai-inside-obsidian-with-ollama-3.png" alt="" width="720" height="320" />
166+
<ContentImage src="/images/running-a-local-ai-inside-obsidian-with-ollama-3.png" alt="" width="720" height="320" />
158167

159168
1. Click "Install", then "Enable" to enable the plugin.
160169

161170
1. Click "Options" to configure the plugin:
171+
- In the "Main AI Provider", "Embedding AI Provider", and "Vision AI Provider" sections, select "Ollama ~ gemma3:latest" from the dropdown.
162172

163-
- In the "Main AI Provider", "Embedding AI Provider", and "Vision AI Provider" sections, select "Ollama ~ gemma3:latest" from the dropdown.
164-
165-
<ContentImage src="/images/running-a-local-ai-inside-obsidian-with-ollama-4.png" alt="" width="720" height="320" />
173+
<ContentImage src="/images/running-a-local-ai-inside-obsidian-with-ollama-4.png" alt="" width="720" height="320" />
166174

167175
</Steps>
168176

@@ -201,7 +209,6 @@ The context menu is a quick way to apply AI actions to selected text.
201209
1. Open any note in Obsidian.
202210
1. Select some text you want to process with AI.
203211
1. Press the hot key you assigned for "Local GPT: Show context menu" (e.g., <kbd>⌘ + M</kbd>). It will open a context menu with various AI actions you can perform on the selected text:
204-
205212
- General help
206213
- Continue writing
207214
- Summarize

src/styles/custom.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,13 @@
314314
}
315315

316316
kbd {
317-
background-color: var(--sl-color-gray-6);
318-
border-radius: 6px;
319-
box-shadow: inset 0 -1px 0 var(--sl-color-black);
320-
color: var(--sl-color-white);
321-
font-size: 0.875rem;
322-
font-weight: 500;
323-
line-height: 1;
324-
padding: 4px 8px;
325-
font-family: monospace;
317+
background-color: var(--sl-color-gray-6);
318+
border-radius: 6px;
319+
box-shadow: inset 0 -1px 0 var(--sl-color-black);
320+
color: var(--sl-color-white);
321+
font-size: 0.875rem;
322+
font-weight: 500;
323+
line-height: 1;
324+
padding: 4px 8px;
325+
font-family: monospace;
326326
}

0 commit comments

Comments
 (0)