-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
easyspindoc: access local documentation directly from within MATLAB
- Loading branch information
Showing
15 changed files
with
250 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="icon" href="img/eslogo196.png"> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<link rel="stylesheet" href="highlight/matlab.css"> | ||
<script src="highlight/highlight.pack.js"></script> | ||
<script>hljs.initHighlightingOnLoad();</script> | ||
<title>easyspincompile</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<header> | ||
<ul> | ||
<li><img src="img/eslogo42.png"> | ||
<li class="header-title">EasySpin | ||
<li><a href="index.html">Documentation</a> | ||
<li><a href="references.html">Publications</a> | ||
<li><a href="http://easyspin.org" target="_blank">Website</a> | ||
<li><a href="http://easyspin.org/academy" target="_blank">Academy</a> | ||
<li><a href="http://easyspin.org/forum" target="_blank">Forum</a> | ||
</ul> | ||
</header> | ||
|
||
<section> | ||
|
||
<div class="functitle">easyspin</div> | ||
|
||
<p> | ||
Information and tasks relating to the EasySpin installation. | ||
</p> | ||
|
||
<!-- ============================================================= --> | ||
<div class="subtitle">Syntax</div> | ||
|
||
<pre class="matlab"> | ||
easyspin info | ||
easyspin doc | ||
easyspin compile | ||
easyspin ? | ||
easyspin | ||
</pre> | ||
|
||
<!-- ============================================================= --> | ||
<div class="subtitle">Description</div> | ||
|
||
<p> | ||
<code>easyspin info</code>> displays information about your current EasySpin installation. See <a class="esf" href="easyspininfo.html">easyspininfo</a>. | ||
</p> | ||
|
||
<p> | ||
<code>easyspin doc</code>> opens the documentation of your current EasySpin installation. See <a class="esf" href="easyspindoc.html">easyspininfo</a>. | ||
</p> | ||
|
||
<p> | ||
<code>easyspin compile</code>> compiles the C files of your current EasySpin installation using <code>mex</code>. See <a class="esf" href="easyspincompile.html">easyspincompile</a>. | ||
</p> | ||
|
||
<p> | ||
<code>easyspin ?</code>> displays al possible options for <code>easyspin</code>. | ||
</p> | ||
|
||
<p> | ||
<code>easyspin</code>> is equivalent to <code>easyspin info</code>. | ||
</p> | ||
|
||
<!-- ====================================================== --> | ||
<div class="subtitle">See also</div> | ||
|
||
<p> | ||
<a class="esf" href="easyspincompile.html">easyspincompile</a>, | ||
<a class="esf" href="easyspindoc.html">easyspindoc</a>, | ||
<a class="esf" href="easyspininfo.html">easyspininfo</a> | ||
</p> | ||
|
||
<hr> | ||
</section> | ||
|
||
<footer></footer> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="icon" href="img/eslogo196.png"> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<link rel="stylesheet" href="highlight/matlab.css"> | ||
<script src="highlight/highlight.pack.js"></script> | ||
<script>hljs.initHighlightingOnLoad();</script> | ||
<title>easyspininfo</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<header> | ||
<ul> | ||
<li><img src="img/eslogo42.png"> | ||
<li class="header-title">EasySpin | ||
<li><a href="index.html">Documentation</a> | ||
<li><a href="references.html">Publications</a> | ||
<li><a href="http://easyspin.org" target="_blank">Website</a> | ||
<li><a href="http://easyspin.org/academy" target="_blank">Academy</a> | ||
<li><a href="http://easyspin.org/forum" target="_blank">Forum</a> | ||
</ul> | ||
</header> | ||
|
||
<section> | ||
|
||
<div class="functitle">easyspindoc</div> | ||
|
||
<p> | ||
Access the documentation of EasySpin. | ||
</p> | ||
|
||
<!-- ============================================================= --> | ||
<div class="subtitle">Syntax</div> | ||
|
||
<pre class="matlab"> | ||
easyspindoc | ||
</pre> | ||
|
||
<!-- ============================================================= --> | ||
<div class="subtitle">Description</div> | ||
|
||
<p> | ||
<code>easyspindoc</code>> opens the EasySpin documentation in the MATLAB browser. It opens <code>documentation/index.html</code> in your local EasySpin installation. | ||
</p> | ||
|
||
<!-- ====================================================== --> | ||
<div class="subtitle">See also</div> | ||
|
||
<p> | ||
<a class="esf" href="easyspin.html">easyspin</a>, | ||
<a class="esf" href="easyspincompile.html">easyspincompile</a>, | ||
<a class="esf" href="easyspininfo.html">easyspininfo</a> | ||
</p> | ||
|
||
<hr> | ||
</section> | ||
|
||
<footer></footer> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,38 @@ | ||
% easyspin Toolbox for Electron Paramagnetic Resonance (EPR) | ||
% | ||
% 'easyspin' tests the EasySpin installation and prints release details. | ||
% easyspin | ||
% easyspin ? | ||
% easyspin doc | ||
% easyspin info | ||
% easyspin compile | ||
% | ||
% If a parameter is given, various tasks are performed: | ||
% ? show options | ||
% doc display EasySpin documentation | ||
% info display information about current EasySpin installation | ||
% compile compile MEX files for EasySpin | ||
% | ||
% If no parameter is given, 'info' is used by default. | ||
|
||
function easyspin | ||
function easyspin(str) | ||
|
||
warning('off','MATLAB:oldPfileVersion'); | ||
if nargin==0 | ||
str = 'info'; | ||
end | ||
|
||
easyspininfo | ||
switch str | ||
case '?' | ||
dips(' easyspin info Display information about EasySpin'); | ||
disp(' easyspin doc Display EasySpin documentation'); | ||
disp(' easyspin compile Compile MEX files for EasySpin'); | ||
case 'info' | ||
easyspininfo; | ||
case 'doc' | ||
easyspindoc; | ||
case 'compile' | ||
easyspincompile; | ||
otherwise | ||
error('Unknown option ''%s''.',str); | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
% easyspindoc Provide access to the EasySpin documentation | ||
|
||
function varargout = easyspindoc() | ||
|
||
% Determine entry point for documentation | ||
esPath = fileparts(which(mfilename)); | ||
esRoot = esPath(1:end-length('\easyspin')); | ||
docEntry = [esRoot filesep 'documentation' filesep 'index.html']; | ||
if ~exist(docEntry,'file') | ||
docEntry = [esRoot filesep 'docsrc' filesep 'index.html']; | ||
end | ||
|
||
if nargout==0 | ||
fprintf('<a href="%s">EasySpin documentation</a>\n',docEntry); | ||
web(docEntry,'-new'); | ||
varargout = {}; | ||
else | ||
varargout = {docEntry}; | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function ok = test() | ||
|
||
docEntry = easyspindoc; | ||
ref = "index.html"; | ||
ok = docEntry(end-strlength(ref)+1:end)==ref; |