-
Notifications
You must be signed in to change notification settings - Fork 11
/
redirect_doc.html
130 lines (110 loc) · 7.83 KB
/
redirect_doc.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!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',
'task:' : 'https://vatlab.github.io/sos-docs/doc/user_guide/task_statement.html',
'expand': 'https://vatlab.github.io/sos-docs/doc/user_guide/script_format.html',
'provides': 'https://vatlab.github.io/sos-docs/doc/user_guide/auxiliary_steps.html',
'shared': 'https://vatlab.github.io/sos-docs/doc/user_guide/shared_variables.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',
'paired_with': 'https://vatlab.github.io/sos-docs/doc/user_guide/paired_group_with.html',
'group_with': 'https://vatlab.github.io/sos-docs/doc/user_guide/paired_group_with.html',
'pattern': 'https://vatlab.github.io/sos-docs/doc/user_guide/input_pattern.html',
'concurrent': 'https://vatlab.github.io/sos-docs/doc/user_guide/concurrent_substep.html',
'sos_run': 'https://vatlab.github.io/sos-docs/doc/user_guide/nested_workflow.html',
'skip_if': 'https://vatlab.github.io/sos-docs/doc/user_guide/control_actions.html',
'done_if': 'https://vatlab.github.io/sos-docs/doc/user_guide/control_actions.html',
'warn_if': 'https://vatlab.github.io/sos-docs/doc/user_guide/control_actions.html',
'fail_if': 'https://vatlab.github.io/sos-docs/doc/user_guide/control_actions.html',
'get_output': 'https://vatlab.github.io/sos-docs/workflow.html#content',
'expand_pattern': 'https://vatlab.github.io/sos-docs/doc/user_guide/input_pattern.html',
'queue': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_statement.html',
'walltime': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_template.html',
'cores': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_template.html',
'nodes': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_template.html',
'mem': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_template.html',
'to_host': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_files.html',
'from_host': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_files.html',
'map_vars': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_files.html',
'workdir': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'trunk_size': 'https://vatlab.github.io/sos-docs/doc/user_guide/trunk_size.html',
'trunk_workers': 'https://vatlab.github.io/sos-docs/doc/user_guide/trunk_size.html',
'file_target': 'https://vatlab.github.io/sos-docs/doc/user_guide/targets.html',
'sos_variable': 'https://vatlab.github.io/sos-docs/doc/user_guide/shared_variables.html',
'sos_step': 'https://vatlab.github.io/sos-docs/doc/user_guide/target_sos_step.html',
'executable': 'https://vatlab.github.io/sos-docs/doc/user_guide/targets.html',
'env_variable': 'https://vatlab.github.io/sos-docs/doc/user_guide/targets.html',
'dynamic': 'https://vatlab.github.io/sos-docs/doc/user_guide/dynamic_input.html',
'remote': 'https://vatlab.github.io/sos-docs/doc/user_guide/remote_target.html',
'system_resource': 'https://vatlab.github.io/sos-docs/doc/user_guide/targets.html',
'Py_Module': 'https://vatlab.github.io/sos-docs/doc/user_guide/targets.html',
'R_Library': 'https://vatlab.github.io/sos-docs/doc/user_guide/targets.html',
// 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',
'tcsh:': 'https://vatlab.github.io/sos-docs/doc/user_guide/shell_actions.html',
'csh:': 'https://vatlab.github.io/sos-docs/doc/user_guide/shell_actions.html',
'zsh:': 'https://vatlab.github.io/sos-docs/doc/user_guide/shell_actions.html',
'download:': 'https://vatlab.github.io/sos-docs/doc/user_guide/download_actions.html',
'docker_build': 'https://vatlab.github.io/sos-docs/doc/user_guide/docker.html',
'singularity_build': 'https://vatlab.github.io/sos-docs/doc/user_guide/singularity.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',
'script:': 'https://vatlab.github.io/sos-docs/doc/user_guide/script_actions.html',
'node:': 'https://vatlab.github.io/sos-docs/doc/user_guide/script_actions.html',
'julia:': 'https://vatlab.github.io/sos-docs/doc/user_guide/script_actions.html',
'report:': 'https://vatlab.github.io/sos-docs/doc/user_guide/report_actions.html',
'pandoc:': 'https://vatlab.github.io/sos-docs/doc/user_guide/report_actions.html',
'Rmarkdown:': 'https://vatlab.github.io/sos-docs/doc/user_guide/report_actions.html',
'args': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'allow_error': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'container': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'engine': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'env': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'stdout': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'stderr': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'tracked': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'tags': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_tags.html',
// cm-meta
'%run': 'https://vatlab.github.io/sos-docs/doc/user_guide/workflow_magics.html',
'%sosrun': 'https://vatlab.github.io/sos-docs/doc/user_guide/workflow_magics.html',
'%runfile': 'https://vatlab.github.io/sos-docs/doc/user_guide/workflow_magics.html',
'%expand': 'https://vatlab.github.io/sos-docs/doc/user_guide/expand_capture_render.html',
'%capture': 'https://vatlab.github.io/sos-docs/doc/user_guide/expand_capture_render.html',
'%render': 'https://vatlab.github.io/sos-docs/doc/user_guide/expand_capture_render.html',
'%get': 'https://vatlab.github.io/sos-docs/doc/user_guide/exchange_variable.html',
'%put': 'https://vatlab.github.io/sos-docs/doc/user_guide/exchange_variable.html',
'%with': 'https://vatlab.github.io/sos-docs/doc/user_guide/exchange_variable.html',
'%use': 'https://vatlab.github.io/sos-docs/doc/user_guide/magic_use.html',
'%convert': 'https://vatlab.github.io/sos-docs/doc/user_guide/magic_convert.html',
'%preview': 'https://vatlab.github.io/sos-docs/doc/user_guide/magic_preview.html',
'%env': 'https://vatlab.github.io/sos-docs/doc/user_guide/magic_env.html',
'%cd': 'https://vatlab.github.io/sos-docs/doc/user_guide/expand_capture_render.html',
'%task': 'https://vatlab.github.io/sos-docs/doc/user_guide/task_management.html',
'%matplotlib': 'https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html',
'%revisions': 'https://vatlab.github.io/sos-docs/doc/user_guide/sessioninfo_revision.html',
'%sessioninfo': 'https://vatlab.github.io/sos-docs/doc/user_guide/sessioninfo_revision.html',
}
let key = window.location.href.split('?')[1];
if (key in keyword_links) {
window.location.replace(keyword_links[key]);
} else if (key[0] === '%' ) {
// other magics
window.location.replace('https://vatlab.github.io/sos-docs/doc/user_guide/sos_magics.html');
} else if (key[key.length-1] === ':') {
// other actions
window.location.replace('https://vatlab.github.io/sos-docs/doc/user_guide/sos_actions.html');
} else {
window.location.replace('https://vatlab.github.io/sos-docs/workflow.html#content');
}
</script>
<head>