Skip to content

Commit

Permalink
update help url (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software authored Dec 23, 2024
1 parent b2e908b commit fc05677
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Originally inspired by languages like MATLAB© and GNU Octave, Nelson offers use
## 📚 **Resources**

- **Homepage:** <https://nelson-lang.github.io/nelson-website/>
- **GitBook:** <https://nelson-9.gitbook.io/nelson/>
- **GitBook:** <https://nelson-lang.github.io/nelson-gitbook/>
- **Documentation:** <https://nelson-lang.github.io/nelson-website/help/en_US/>
- **Source code:** <https://github.com/nelson-lang/nelson>
- **Binaries:** <https://github.com/nelson-lang/nelson/releases>
Expand Down
2 changes: 1 addition & 1 deletion chocolatey/nelson/nelson.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
<iconUrl>https://raw.githubusercontent.com/nelson-lang/nelson/master/desktop/icons/hicolor/256x256/apps/nelson.png</iconUrl>
<copyright>2016-present</copyright>
<projectSourceUrl>https://github.com/nelson-lang/nelson</projectSourceUrl>
<docsUrl>https://nelson-9.gitbook.io/nelson/</docsUrl>
<docsUrl>https://nelson-lang.github.io/nelson-gitbook/</docsUrl>
<!--<mailingListUrl></mailingListUrl>-->
<bugTrackerUrl>https://github.com/nelson-lang/nelson/issues</bugTrackerUrl>
<licenseUrl>https://raw.githubusercontent.com/nelson-lang/nelson/master/lgpl-3.0.md</licenseUrl>
Expand Down
9 changes: 6 additions & 3 deletions modules/sio_client/functions/doc.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fc05677

Please sign in to comment.