diff --git a/README.md b/README.md index 8a3ca9f891..4fc0b5776f 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ Originally inspired by languages like MATLAB© and GNU Octave, Nelson offers use ## 📚 **Resources** - **Homepage:** -- **GitBook:** +- **GitBook:** - **Documentation:** - **Source code:** - **Binaries:** diff --git a/chocolatey/nelson/nelson.nuspec b/chocolatey/nelson/nelson.nuspec index dbfa9470b6..fd105b030d 100644 --- a/chocolatey/nelson/nelson.nuspec +++ b/chocolatey/nelson/nelson.nuspec @@ -27,7 +27,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe https://raw.githubusercontent.com/nelson-lang/nelson/master/desktop/icons/hicolor/256x256/apps/nelson.png 2016-present https://github.com/nelson-lang/nelson - https://nelson-9.gitbook.io/nelson/ + https://nelson-lang.github.io/nelson-gitbook/ https://github.com/nelson-lang/nelson/issues https://raw.githubusercontent.com/nelson-lang/nelson/master/lgpl-3.0.md diff --git a/modules/sio_client/functions/doc.m b/modules/sio_client/functions/doc.m index 42a43dfafa..2019010821 100644 --- a/modules/sio_client/functions/doc.m +++ b/modules/sio_client/functions/doc.m @@ -9,7 +9,10 @@ %============================================================================= function doc(varargin) % replaces standard 'doc' function to open help in web browser - url_help = 'https://nelson-9.gitbook.io/nelson/en/'; + ver_number = version('-number'); + version_string = sprintf('v%d.%d.%d', ver_number(1), ver_number(2), ver_number(3)); + language = 'en_US'; + url_help = ['https://nelson-lang.github.io/nelson-gitbook/', language, '/', version_string, '/']; if nargin() > 1 error(_('Wrong number of input arguments.')); end @@ -20,12 +23,12 @@ function doc(varargin) end module = which(name,'-module'); if isempty(module) - sioemit('help', [url_help , '?q=', name]); + sioemit('help', [url_help , '?search=', name]); else if length(module) == 1 sioemit('help', [url_help, module{1}, '/', name, '.html']); else - sioemit('help', [url_help , '?q=', name]); + sioemit('help', [url_help , '?search=', name]); end end else