diff options
| -rw-r--r-- | docs/keymap.html | 2 | ||||
| -rw-r--r-- | docs/repl.js | 6 | ||||
| -rw-r--r-- | docs/try.html | 9 |
3 files changed, 7 insertions, 10 deletions
diff --git a/docs/keymap.html b/docs/keymap.html index 6efe233d..89ea2722 100644 --- a/docs/keymap.html +++ b/docs/keymap.html @@ -30,4 +30,4 @@ └───────────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────────────┘ Space: <span class='Ligature'>‿</span> </pre></div> -<p>See also the <a href="https://mlochbaum.github.io/BQN/editors/index.html">editor plugins</a> (and other input methods) and <a href="doc/primitive.html">primitive</a> documentation.</p> +<p>See also the <a href="https://mlochbaum.github.io/BQN/editors/index.html">editor plugins</a> (and other input methods) and <a href="help/index.html">help index</a>.</p> diff --git a/docs/repl.js b/docs/repl.js index 79e5781b..b6e54d6b 100644 --- a/docs/repl.js +++ b/docs/repl.js @@ -159,7 +159,7 @@ let keys={}, revkeys={}, primhelp={}, helpurl={}; kk.map((k,i)=>{keys[k]=kv[i];revkeys[kv[i]]=k;}); doc.kb.innerHTML = keydesc .map(d=>'<a class="key '+syncls[d[0]]+'">'+Array.from(d)[1]+'</a>') - .concat(['<a href="keymap.html" target="_blank">map</a>']) + .concat(['<a href="keymap.html" target="_blank" title="Link to a BQN keyboard diagram">map</a>']) .join("​"); // zero-width space let setPrefix = () => { doc.kb.querySelectorAll("a.key").forEach((x,i) => { @@ -185,7 +185,7 @@ doc.kbext = doc.kb.querySelector('.kbext'); if (doc.demo) { let fonts=[["BQN386"],["DejaVu","Mod"],["Fairfax","HD"],["3270","font"],["Iosevka","Term"],["Julia","Mono"]]; let fclass = f => f==="3270"?"f"+f:f - let fontsel = '<select>'+fonts.map(f => + let fontsel = '<select title="Select font">'+fonts.map(f => '<option value="'+f[0]+'">'+f[0]+(f[1]?' '+f[1]:'')+'</option>' ).join("")+'select'; appendHTML(doc.kbext, fontsel); @@ -193,7 +193,7 @@ if (doc.demo) { e=>doc.cont.className='cont '+fclass(e.target.value); } -appendHTML(doc.kbext, '<input class="prfx" type="text" maxlength="1" value="'+prefix+'"/>'); +appendHTML(doc.kbext, '<input class="prfx" type="text" maxlength="1" title="Configure prefix key" value="'+prefix+'"/>'); doc.kbext.querySelector(".prfx").onchange = ev => { prefix = ev.target.value; setPrefix(); } diff --git a/docs/try.html b/docs/try.html index 2515f188..3fc040d4 100644 --- a/docs/try.html +++ b/docs/try.html @@ -22,8 +22,8 @@ <div class="highlight"></div> <textarea class="code" rows="8" spellcheck="false" autofocus></textarea> <div class="count"></div> - <input class="run" type="submit" value="Run (or shift-enter)"/> - <input class="doexplain" type="button" value="Explain"/> + <input class="run" type="submit" value="Run (or shift-enter)" title="(any modifier works actually)"/> + <input class="doexplain" type="button" value="Explain" title="Show a syntax breakdown with execution"/> <a class="perm" href="#" title="Link with the code above embedded">permalink</a> </div> <div class="explain"></div> @@ -31,10 +31,7 @@ <p> Notes: <ul> - <li>Documentation links for primitives are <a href="doc/primitive.html#functions">here</a>.</li> - <li>You can type special characters with a back<em>slash</em> prefix, as shown by hovering over the character bar above. Customize the prefix with the input at the right.</li> - <li>Middle- or modified click on a primitive to go to its help page!</li> - <li>Any modifier with enter will execute, not just shift.</li> + <li>The top bar has everything you need to know about BQN's special characters. Click to enter it, hover to see its name and the backslash combination you can type instead, and middle- or modified click to go to a help page.</li> <li>The code window is vertically resizeable.</li> </ul> </p> |
