From 465093c0a260778b9ad52f79d8be79b2ea067521 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sat, 16 Jun 2018 10:21:44 +0200 Subject: [PATCH] Update documentation links (#96) Signed-off-by: Wouter Born --- README.md | 8 ++++---- src/extension.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2a9a1db..4e998b6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The extension is designed with openHAB 2.x in mind - most snippets and design pa ## Features -* Syntax highlighting for the [openHAB DSL](http://docs.openhab.org/configuration/index.html) (rules, items, scripts and sitemaps). +* Syntax highlighting for the [openHAB DSL](https://www.openhab.org/docs/configuration/) (rules, items, scripts and sitemaps). * Code snippets for openHAB, including [Design Patterns](https://community.openhab.org/tags/designpattern) by Rich Koshak * Integrated quick search of [openHAB Docs page](http://docs.openhab.org) (`Alt + Shift + O`) * Integrated quick search of [openHAB Community](https://community.openhab.org) @@ -33,7 +33,7 @@ You are able to configure the hostname and port for the Sitemap preview. *openhab.host* will also work with the IP address of your openHAB instance, instead of the hostname. -These settings should work fine on Windows machines and openHAB installations using the recommended [openHABian](http://docs.openhab.org/installation/openhabian.html) setup. +These settings should work fine on Windows machines and openHAB installations using the recommended [openHABian](https://www.openhab.org/docs/installation/openhabian.html) setup. They should be edited if you use macOS or *NIX systems or manual openHAB installations. To edit these settings, simply add overrides to either your user settings or your workspace settings in your Visual Studio Codes preferences. @@ -114,7 +114,7 @@ The following configuration will allow you to access REST API remotely: ## Sitemap preview with Basic UI -openHAB VS Code Extension allows you to preview the [sitemap structure](http://docs.openhab.org/configuration/sitemaps.html) in the [Basic UI](http://docs.openhab.org/addons/uis/basic/readme.html) running on your openHAB server instance. +openHAB VS Code Extension allows you to preview the [sitemap structure](https://www.openhab.org/docs/configuration/sitemaps.html) in the [Basic UI](https://www.openhab.org/docs/configuration/ui/basic/) running on your openHAB server instance. If you have a sitemap file active in your editor and open Basic UI (`Ctrl + Alt + O` or editor title icon), you'll land directly on the sitemap you're working on. @@ -169,7 +169,7 @@ See [CHANGELOG.md](https://github.com/openhab/openhab-vscode/blob/master/CHANGEL ### For More Information -* [openHAB Documentation](http://docs.openhab.org) +* [openHAB Documentation](https://www.openhab.org/docs/) * [openHAB Community](https://community.openhab.org) **Enjoy!** diff --git a/src/extension.ts b/src/extension.ts index 709c9f5..cb775e9 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -105,7 +105,7 @@ async function init(context: ExtensionContext, disposables: Disposable[], config })) disposables.push(commands.registerCommand('openhab.command.things.docs', (query: Thing) => - openBrowser(`https://docs.openhab.org/addons/bindings/${query.binding}/readme.html`))) + openBrowser(`https://www.openhab.org/addons/bindings/${query.binding}/`))) if (config.useRestApi) { const itemsExplorer = new ItemsExplorer() @@ -164,4 +164,4 @@ export function activate(context: ExtensionContext) { // this method is called when your extension is deactivated export function deactivate() { -} \ No newline at end of file +}