-
Notifications
You must be signed in to change notification settings - Fork 11
/
doc_links.html
42 lines (36 loc) · 1.94 KB
/
doc_links.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<script>
let keyword_links = {
// cm-keyword cm-strong
'input:' : 'https://vatlab.github.io/sos-docs/doc/user_guide/input_statement.html',
'output:' : 'https://vatlab.github.io/sos-docs/doc/user_guide/output_statement.html',
'depends:' : 'https://vatlab.github.io/sos-docs/doc/user_guide/depebds_statement.html',
// cm-variable cm-sos-option
'named_output' : 'https://vatlab.github.io/sos-docs/doc/user_guide/named_output.html',
'output_from' : 'https://vatlab.github.io/sos-docs/doc/user_guide/output_from.html',
'for_each': 'https://vatlab.github.io/sos-docs/doc/user_guide/for_each.html',
'trunk_size': 'https://vatlab.github.io/sos-docs/doc/user_guide/trunk_size.html',
'expand': 'https://vatlab.github.io/sos-docs/doc/user_guide/scripts_in_sos.html#option-expand',
// cm-builtin cm-strong
'run:': 'https://vatlab.github.io/sos-docs/doc/user_guide/shell_actions.html',
'sh:': 'https://vatlab.github.io/sos-docs/doc/user_guide/shell_actions.html',
'bash': 'https://vatlab.github.io/sos-docs/doc/user_guide/shell_actions.html',
'R:': 'https://vatlab.github.io/sos-docs/doc/user_guide/script_actions.html',
'Python:': 'https://vatlab.github.io/sos-docs/doc/user_guide/script_actions.html',
// cm-meta
'%sosrun': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_in_notebook.html#magic-sosrun',
'%run': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_in_notebook.html#magic-run',
'%runfile': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_in_notebook.html#magic-runfile',
'%sossave': 'https://vatlab.github.io/sos-docs/doc/user_guide/magic_sossave.html',
'%preview': 'https://vatlab.github.io/sos-docs/doc/user_guide/magic_preview.html',
}
let key = window.location.href.split('?')[1];
if (key in keyword_links) {
window.location.replace(keyword_links[key]);
} else {
window.location.replace('https://vatlab.github.io/sos-docs/guide.html#content');
}
</script>
<head>