Skip to content

Commit

Permalink
update versions and prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeGirlMurph committed May 21, 2024
1 parent 6750451 commit 8fa2b46
Show file tree
Hide file tree
Showing 22 changed files with 1,006 additions and 1,720 deletions.
22 changes: 0 additions & 22 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ _Don't worry about this project being "inactive". It's not inactive. It's done :
## Questions & Contributions

Feel free to ask me and the community if you have any questions in the [discussion tab](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/discussions). I am also happy to hear about your ideas for this plugin and all bugs! Just create an issue! If you want to contribute you can do that simply by creating issues and pull requests :)

## License

This project is licensed under the [Humane Software License](https://github.com/StrangeGirlMurph/The-Humane-Software-License) see [LICENSE](LICENSE).
73 changes: 34 additions & 39 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,45 +1,40 @@
import { defineConfig } from 'vitepress'
import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Obsidian Wikipedia Search",
description: "An Obsidian plugin to search, link and open Wikipedia articles directly from the app.",
lang: 'en-US',
base: '/obsidian-wikipedia-search/',

themeConfig: {
nav: [
{ text: 'Getting Started', link: '/getting-started' },
{ text: 'Settings', link: '/settings' },
{ text: 'Commands', link: '/commands' },
],
outline: [2,3],
sidebar: [
{
text: '',
items: [
{ text: 'Getting Started', link: '/getting-started' },
{ text: "Installation", link: '/installation' },
{ text: "Settings", link: '/settings' },
{ text: "Commands", link: '/commands' },
{ text: "Help", link: '/help' },
{ text: "Roadmap", link: '/roadmap' },
{ text: "Changelog", link: '/changelog' },
{ text: "Support", link: '/support' },
{ text: "License", link: '/license' },

]
}
],
title: "Obsidian Wikipedia Search",
description: "An Obsidian plugin to search, link and open Wikipedia articles directly from the app.",
lang: "en-US",
base: "/obsidian-wikipedia-search/",

socialLinks: [
{ icon: 'github', link: 'https://github.com/StrangeGirlMurph/obsidian-wikipedia-search' }
],
themeConfig: {
nav: [
{ text: "Getting Started", link: "/getting-started" },
{ text: "Settings", link: "/settings" },
{ text: "Commands", link: "/commands" },
],
outline: [2, 3],
sidebar: [
{
text: "",
items: [
{ text: "Getting Started", link: "/getting-started" },
{ text: "Installation", link: "/installation" },
{ text: "Settings", link: "/settings" },
{ text: "Commands", link: "/commands" },
{ text: "Help", link: "/help" },
{ text: "Roadmap", link: "/roadmap" },
{ text: "Changelog", link: "/changelog" },
{ text: "Support", link: "/support" },
{ text: "License", link: "/license" },
],
},
],

editLink: {
pattern: 'https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/edit/master/docs/:path'
},
socialLinks: [{ icon: "github", link: "https://github.com/StrangeGirlMurph/obsidian-wikipedia-search" }],


}
})
editLink: {
pattern: "https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/edit/master/docs/:path",
},
},
});
34 changes: 33 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,109 +1,141 @@
# Changelog

## [2.4.4](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.4.4) (15.03.2024)

- Tweaks the auto cleanup for some more edge cases.

## [2.4.3](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.4.3) (07.03.2024)

- Fixes a forbidden characters in file name bug. (#30)
- Fixes a bug with the directory search in the settings with the forced `/`. (#27)

## [2.4.2](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.4.2) (07.03.2024)

- Adds the `{thumbnailUrl}` option for the template strings.

## [2.4.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.4.1) (23.02.2024)

- Fixes a bug where a template still uses the specified template file without creating a note
- Improves the auto-cleanup feature to also parse the LaTeX of a Wikipedia articles intro.

## [2.4.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.4.0) (17.12.2023)

- Fixes a big bug that made using template files with the link article command impossible. (#25)
- Adds the option to use the parent folder of the currently active note to create new notes in. (#24)

## [2.3.3](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.3.3) (02.12.2023)

- Adds the template file option.
- Adds the `Override files` setting
- Fixes some bugs.

## [2.3.2](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.3.2) (27.11.2023)

- Adds the `Create article note` command.
- Adds the `Open created article notes` setting.

## [2.3.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.3.1) (18.11.2023)

- Introduces the new documentation and links it from the settings page.

## [2.3.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.3.0) (18.11.2023)

- Fixes article redirect bugs and adds intro auto cleanup.

## [2.2.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.2.1) (14.11.2023)

- Fixes an IOS bug (#20).
- Fixes typos and stuff.

## [2.2.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.2.0) (16.10.2023)

- Adds note creation for articles and improves a bunch of stuff.

## [2.1.4](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.1.4) (29.09.2023)

- Fixes a mobile bug with the surfing integration.

## [2.1.2](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.1.2) (20.08.2023)

- Adds the `{thumbnail}` option for the templates.

## [2.1.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.1.1) (03.08.2023)

- Small styling and functionality patch.

## [2.1.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/2.1.0) (03.08.2023)

- Changes `Open article` to use the surfing plugin.

## [1.9.2](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.9.2) (19.07.2023)

- Fixes links opening when offline.

## [1.9.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.9.1) (12.07.2023)

- Fixes file navigation bug (#14).

## [1.9.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.9.0) (10.07.2023)

- Adds an `Open article` command.

## [1.8.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.8.1) (25.06.2023)

- Fixes a small intro language bug.

## [1.8.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.8.0) (14.06.2023)

- Adds the option for multiple templates.
- Adds a {language} and {languageCode} parameter for the templates.
- Some smaller tweaks.

## [1.7.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.7.1) (25.05.2023)

- Adds a setting for choosing whether or not to use the articles title instead of the selected text for '{title}' parameter when hyperlinking.

## [1.7.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.7.0) (25.05.2023)

- Implements the option for the cursor placement (#7)
- Adds the option to auto-select single response queries (#8)

## [1.6.3](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.6.3) (21.04.2023)

- Removes an unnecessary check.
- Update the funding url.

## [1.6.2](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.6.2) (15.04.2023)

- Fixes a bug with some queries messing up the urls and therefore showing wrong descriptions.

## [1.6.1](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.6.1) (31.03.2023)

- Improves the offline error handling. A missing internet connection gets caught right away now.

## [1.6.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.6.0) (31.03.2023)

- Adds `{intro}` for the templates.
- Improve the UX with better setting descriptions and so on.

## [1.5.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.5.0) (31.03.2023)

- Added quicksearching different languages.

## [1.4.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.4.0) (31.03.2023)

- Added hyperlinking.

## [1.3.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.3.0) (29.03.2023)

- Improve search with articles description.

## [1.2.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.2.0) (23.03.2023)

- Minor code and meta data changes.

## [1.1.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.1.0) (20.03.2023)

- Improved error handling when the user is offline.

## [1.0.0](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases/tag/1.0.0) (15.03.2023)
- Birth

- Birth
6 changes: 5 additions & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
The plugin comes with the following two commands. You can access these commands over the command palette (`CTRL+P`). The `Open Article` command also has its own little button in the ribbon menu on the left (the Wikipedia Logo). Of course you can also set custom hotkeys for the commands in your settings.

## `Link Article`

The `Link Article` command can be used in the edit mode of any markdown file in your vault. It lets you link articles. At first you have to search for and select the Wikipedia article you want to link using the [search pop-up](#shared-search-modal) that appears. After you selected the article you were looking for you have to choose which template to use for the insert. For this another pop-up appears for you to select one of the ones you configured in the settings. If you don't have any [additional templates](settings.md#template-settings) this step is skipped and the default template is used. When you picked the template the magic is happening. The insert is created using the templates [template string](settings.md#template-string) and is inserted inline at the cursors position or into a newly created note based on your [settings](settings.md#creates-note--custom-note-path). Now the ["Cursor placement" setting](settings.md#cursor-placement) comes into play and everything is done!

## `Open Article`

The `Open Article` command can be used everywhere. It lets you open articles to read. At first you have to search for and select the Wikipedia article you want to open using the [search pop-up](#shared-search-modal) that appears. Now the articles website gets opened either in your default browser or obsidian directly which depends on a few factors. On mobile articles always get opened in the browser. On desktop it depends on your ["Open article in browser" setting](settings.md#open-article-in-browser) and whether or not you have the [Surfing plugin](https://github.com/PKM-er/Obsidian-Surfing) enabled. The Surfing plugin allows you to browse the web and open websites within Obsidian. You can install it [here](obsidian://show-plugin?id=surfing). The Wikipedia Search plugin integrates with the Surfing plugin. By default will Wikipedia Search create a new Surfing web tab and make it open the url of your article selection if you have the plugin enabled.

## `Create Article Note`

The `Create Article Note` command can be used everywhere but you have to have at least one [note template](settings.md#creates-note--custom-note-path) configured to use it. It lets you create notes in your vault for Wikipedia articles. At first you have to search for and select the Wikipedia article you want to open using the [search pop-up](#shared-search-modal) that appears. After you selected the article you were looking for you have to choose one of the [note template](settings.md#creates-note--custom-note-path) you configured in the settings to use for the insert. If there is only one template to choose from it gets selected automatically. This will create the articles note in your vault.

## Shared search modal
The search modal gets used by both the `Link Article` and `Open Article` command. It lets you search the Wikipedia for the article you are looking for and lets you select one. If you had some text selected while calling one of the commands your selection is automatically pasted into the search bar. The search modal shows you the search results for articles that fit to your query (see the [search limit setting](settings.md#search-limit) to change to maximum number of results shown). Each article gets shown with it's title and description (if available). By default the Wikipedia set in your [settings](settings.md#language) will be searched for any given input. If your query starts with a language code followed by a semicolon the Wikipedia of the language code will be used temporarily for this query (for example `nl: Albert Einstein` to search for the dutch Wikipedia article of Albert Einstein). This let's you easily **quicksearch different languages**. When you found what you were looking for just select it. This is also where [this](settings.md#auto-select-single-response-queries) setting might come in handy.

The search modal gets used by both the `Link Article` and `Open Article` command. It lets you search the Wikipedia for the article you are looking for and lets you select one. If you had some text selected while calling one of the commands your selection is automatically pasted into the search bar. The search modal shows you the search results for articles that fit to your query (see the [search limit setting](settings.md#search-limit) to change to maximum number of results shown). Each article gets shown with it's title and description (if available). By default the Wikipedia set in your [settings](settings.md#language) will be searched for any given input. If your query starts with a language code followed by a semicolon the Wikipedia of the language code will be used temporarily for this query (for example `nl: Albert Einstein` to search for the dutch Wikipedia article of Albert Einstein). This let's you easily **quicksearch different languages**. When you found what you were looking for just select it. This is also where [this](settings.md#auto-select-single-response-queries) setting might come in handy.
2 changes: 1 addition & 1 deletion docs/help.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Help

If you tried finding an answer to your question in this documentation but still need help with something feel free to ask the community and me for help in the [Q&A in the GitHub Discussions Tab](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/discussions/categories/q-a).
If you tried finding an answer to your question in this documentation but still need help with something feel free to ask the community and me for help in the [Q&A in the GitHub Discussions Tab](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/discussions/categories/q-a).
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ hero:
text: Settings
link: /settings
- theme: alt
text: Commands
text: Commands
link: /commands
---

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

1. Create the directory `[path-to-vault]/.obsidian/plugins/wikipedia-search`.
2. Download the `main.js` and `mainfest.json` from the [latest release](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/releases) and put them in the created directory.
3. Enable the plugin by using its toggle in the installed plugin list.
3. Enable the plugin by using its toggle in the installed plugin list.
2 changes: 1 addition & 1 deletion docs/license.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# License

This project and documentation is licensed under the [Humane Software License](https://github.com/StrangeGirlMurph/The-Humane-Software-License) see [LICENSE](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/blob/master/LICENSE).
This project and documentation is licensed under the [Humane Software License](https://github.com/StrangeGirlMurph/The-Humane-Software-License) see [LICENSE](https://github.com/StrangeGirlMurph/obsidian-wikipedia-search/blob/master/LICENSE).
2 changes: 1 addition & 1 deletion docs/roadmap.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Roadmap

For now this project is done. As long as there aren't any new ideas from the community or bugs found there isn't really anything to do. I am simply out of ideas and pretty happy with how everything is right now. If you have anything that needs to be done create an issue!
For now this project is done. As long as there aren't any new ideas from the community or bugs found there isn't really anything to do. I am simply out of ideas and pretty happy with how everything is right now. If you have anything that needs to be done create an issue!
Loading

0 comments on commit 8fa2b46

Please sign in to comment.