forked from speced/respec
-
Notifications
You must be signed in to change notification settings - Fork 3
/
profile-w3c-common.js
65 lines (63 loc) · 1.88 KB
/
profile-w3c-common.js
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
/*global respecVersion */
// this is only set in a build, not at all in the dev environment
var requireConfig = {
shim: {
"shortcut": {
exports: "shortcut"
}
}
};
if ("respecVersion" in window && respecVersion) {
requireConfig.paths = {
"ui": "https://w3c.github.io/respec/js/ui"
};
}
require.config(requireConfig);
define([
"domReady"
, "core/base-runner"
, "core/ui"
, "core/override-configuration"
, "core/default-root-attr"
, "core/markdown"
, "core/style"
, "w3c/style"
, "w3c/headers"
, "w3c/abstract"
, "w3c/conformance"
, "core/data-transform"
, "core/data-include"
, "core/inlines"
, "core/dfn"
, "w3c/rfc2119"
, "core/examples"
, "core/issues-notes"
, "core/requirements"
, "core/highlight"
, "core/best-practices"
, "core/figures"
, "core/biblio"
, "core/webidl-contiguous"
, "core/webidl-oldschool"
, "core/link-to-dfn"
, "core/fix-headers"
, "core/structure"
, "w3c/informative"
, "w3c/permalinks"
, "core/id-headers"
, "core/rdfa"
, "w3c/aria"
, "core/shiv"
, "core/remove-respec"
, "core/location-hash"
],
function (domReady, runner, ui) {
var args = Array.prototype.slice.call(arguments);
domReady(function () {
ui.addCommand("Save Snapshot", "ui/save-html", "Ctrl+Shift+Alt+S");
ui.addCommand("About ReSpec", "ui/about-respec", "Ctrl+Shift+Alt+A");
ui.addCommand("Search Specref DB", "ui/search-specref", "Ctrl+Shift+Alt+space");
runner.runAll(args);
});
}
);