Skip to content

Commit fafb2fb

Browse files
Fix missing toc files in published docs
1 parent a4c4191 commit fafb2fb

14 files changed

Lines changed: 17421 additions & 8 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nelson-en.pdf
1010
nelson-fr.pdf
1111
target/
1212
to*.html
13+
!docs/releases/**/toc.html
1314
to*.pdf
1415
temp_nelson-en.md
1516
temp_nelson-fr.md
17+
.tools/
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
2+
<html xmlns:ext="http://io.github.nelson_lang/ext" lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5+
<title>toc</title>
6+
<link rel="stylesheet" href="highlight.css">
7+
<link rel="stylesheet" href="nelson_common.css">
8+
<script src="nelson_help.js"></script><style>
9+
@media (prefers-color-scheme: dark) {
10+
/* target both class names used in different XSLT outputs */
11+
.chapter-description, .chapter-desc { color: #e6eef8 !important; }
12+
.chapter-description p, .chapter-desc p { color: inherit !important; }
13+
}
14+
@media (prefers-color-scheme: light) {
15+
.chapter-description, .chapter-desc { color: #444 !important; }
16+
.chapter-description p, .chapter-desc p { color: inherit !important; }
17+
}
18+
</style>
19+
</head>
20+
<body>
21+
<a href="index.html" class="home-summary-link"><button class="home-summary-btn" aria-label="Back to help index"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12L12 3l9 9"></path><path d="M9 21V12h6v9"></path><path d="M9 21h6"></path></svg></button></a><div class="header"><div class="title"><span class="keyword-title">toc</span></div></div>
22+
<div class="section syntax-section"><div class="subtitle">Read the stopwatch timer.</div></div>
23+
<div class="section syntax-section">
24+
<div class="section-title">
25+
<span class="syntax-icon">📝</span>Syntax</div>
26+
<pre class="syntax-block"><code class="language-matlab">toc()
27+
t = toc()
28+
toc(timer_value)
29+
t = toc(timer_value)
30+
</code></pre>
31+
</div>
32+
<div class="section">
33+
<div class="section-title">
34+
<span class="syntax-icon">📥</span>Input Arguments</div>
35+
<table class="param-table">
36+
<tr>
37+
<th>Parameter</th>
38+
<th>Description</th>
39+
</tr>
40+
<tr>
41+
<td class="param-name">timer_value</td>
42+
<td>a unsigned integer 64 bit: value of internal timer of the tic function.</td>
43+
</tr>
44+
</table>
45+
</div>
46+
<div class="section">
47+
<div class="section-title">
48+
<span class="syntax-icon">📤</span>Output Arguments</div>
49+
<table class="param-table">
50+
<tr>
51+
<th>Parameter</th>
52+
<th>Description</th>
53+
</tr>
54+
<tr>
55+
<td class="param-name">t</td>
56+
<td>a double: number of seconds since last call to tic function (Precision in order of millisecond).</td>
57+
</tr>
58+
</table>
59+
</div>
60+
<div class="section">
61+
<div class="section-title">
62+
<span class="syntax-icon">📄</span>Description</div>
63+
<div>
64+
<p>The sequence of commands<b>tic(); commands ; t = toc() </b> returns the number of seconds required for the commands.</p>
65+
<p>Consecutive calls to the toc function with no input return the elapsed since the most recent tic.</p>
66+
<p>Consecutive calls to the toc function with the same timerVal input return the elapsed time since the tic function call that corresponds to that input.</p>
67+
</div>
68+
</div>
69+
<div class="section">
70+
<div class="section-title">
71+
<span class="syntax-icon">💡</span>Examples</div>
72+
<div class="example"><div style="display:flex;align-items:flex-start;gap:8px;">
73+
<pre class="syntax-block" style="flex:1 1 auto;margin:0;"><code class="language-matlab">tic()
74+
sleep(10)
75+
toc()
76+
sleep(10)
77+
toc()</code></pre>
78+
<button class="copy-btn" type="button" onclick="copyExample(this)" title="Copy"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" style="display:block;"><rect x="7" y="3" width="10" height="14" rx="2" fill="white" fill-opacity="0.15" stroke="white" stroke-width="1.2"></rect><rect x="3" y="7" width="10" height="10" rx="2" fill="currentColor"></rect></svg></button>
79+
</div></div>
80+
</div>
81+
<div class="section">
82+
<div class="section-title">
83+
<span class="syntax-icon">🔗</span>See Also</div>
84+
<div>
85+
<a class="see-also-link" href="../time/datenum.html">tic</a><a class="see-also-link" href="../time/datevec.html">clock</a>
86+
</div>
87+
</div>
88+
<div class="section">
89+
<div class="section-title">
90+
<span class="syntax-icon">🕔</span>Version History</div>
91+
<table class="param-table">
92+
<tr>
93+
<th>Version</th>
94+
<th>Description</th>
95+
</tr>
96+
<tr>
97+
<td class="version">1.0.0</td>
98+
<td>initial version</td>
99+
</tr>
100+
</table>
101+
</div>
102+
<!--Author: Allan CORNET--><div class="section" style="margin-top:40px; text-align:center;">
103+
<a id="github-edit-link" class="github-edit-btn" target="_blank" rel="noopener noreferrer"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg><span id="github-edit-text">Edit this page on GitHub</span></a><style>
104+
.github-edit-btn { display:inline-flex; align-items:center; gap:6px; font-size:14px; padding:6px 12px; border:1px solid #ddd; border-radius:4px; background:#f5f5f5; color:#333; text-decoration:none; transition:all 0.2s ease; }
105+
.github-edit-btn:hover { background:#e9e9e9; border-color:#ccc; color:#000; }
106+
</style>
107+
</div>
108+
</body>
109+
</html>

0 commit comments

Comments
 (0)