config.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. define(function() {
  2. var modulePaths = {
  3. // core
  4. "webhelp" : "core/webhelp",
  5. "expand": "core/expand",
  6. "polyfill": "core/polyfill",
  7. // context sensitive help
  8. "context-help" : "context-help/context-help",
  9. "context-help-map" : "context-help/context-help-map",
  10. // navigation links
  11. "menu" : "nav-links/menu-loader",
  12. "toc" : "nav-links/toc-loader",
  13. "nav" : "nav-links/nav",
  14. // search
  15. "search-init" : "search/search-init",
  16. "search" : "search/search",
  17. "nwSearchFnt" : "search/nwSearchFnt",
  18. "searchAutocomplete" : "search/searchAutocomplete",
  19. "searchHistoryItems" : "search/searchHistoryItems",
  20. // search index
  21. "index" : "search/index/index",
  22. "link2parent" : "search/index/link-to-parent",
  23. "stopwords" : "search/index/stopwords",
  24. "index-1" : "search/index/index-1",
  25. "index-2" : "search/index/index-2",
  26. "index-3" : "search/index/index-3",
  27. "htmlFileInfoList" : "search/index/htmlFileInfoList",
  28. "keywords" : "search/index/keywords",
  29. // stemmers
  30. "stemmer" : "search/stemmers/stemmer",
  31. "en_stemmer" : "search/stemmers/en_stemmer",
  32. "de_stemmer" : "search/stemmers/de_stemmer",
  33. "fr_stemmer" : "search/stemmers/fr_stemmer",
  34. // options
  35. "options" : "options/options",
  36. "properties" : "options/properties",
  37. // utilities
  38. "util" : "util/util",
  39. "parseuri" : "util/parseuri",
  40. // i18n
  41. "localization" : "localization/localization",
  42. "strings" : "localization/strings",
  43. // image maps
  44. "image-map" : "image-map/image-map",
  45. // Publishing template JS module loader
  46. "template-module-loader" : "template/template-module-loader",
  47. // Publishing Template base directory
  48. "template-base-dir" : "../template",
  49. // jquery-private
  50. "jquery-private" : "jquery-private/jquery-private",
  51. "jquery.highlight.amd" : "jquery-private/jquery.highlight.amd",
  52. "jquery.bootpag.amd" : "jquery-private/jquery.bootpag.amd",
  53. "jquery.rwdImageMaps.amd" : "jquery-private/jquery.rwdImageMaps.amd",
  54. /********************************************************
  55. **************** 3rd Party Libraries *******************
  56. ********************************************************/
  57. // JQuery
  58. "jquery" : "../lib/jquery/jquery-3.5.1.min",
  59. // JQuery UI
  60. "jquery.ui" : "../lib/jquery-ui/jquery-ui.min",
  61. // JQuery Highlight
  62. "jquery.highlight" : "../lib/jquery-highlight/jquery.highlight-3",
  63. // JQuery Image maps highlighter
  64. "jquery.maphilight" : "../lib/maphighlight/jquery.maphilight.min",
  65. // JQuery Responsive image maps
  66. "jquery.rwdImageMaps" : "../lib/rwdImageMaps/jquery.rwdImageMaps.min",
  67. // JQuery Bootpag
  68. "jquery.bootpag" : "../lib/jquery-bootpag/jquery.bootpag.min",
  69. // Popper
  70. "bootstrap" : "../lib/bootstrap/js/bootstrap.bundle.min",
  71. "kuromoji" : "../lib/kuromoji/kuromoji"
  72. };
  73. var shimConfig = {
  74. // Responsive image maps
  75. "jquery.rwdImageMaps" : {
  76. deps: ["jquery"],
  77. exports : "jQuery.fn.rwdImageMaps"
  78. },
  79. // JQuery Highlight
  80. "jquery.highlight" : {
  81. deps: ["jquery"],
  82. exports : "jQuery.fn.highlight"
  83. },
  84. // JQuery Bootpag
  85. "jquery.bootpag" : {
  86. deps: ["jquery"],
  87. exports : "jQuery.fn.bootpag"
  88. },
  89. };
  90. requirejs.config({
  91. paths : modulePaths,
  92. shim : shimConfig,
  93. map: {
  94. // @see http://requirejs.org/docs/jquery.html#noconflictmap
  95. // '*' means all modules will get 'jquery-private'
  96. // for their 'jquery' dependency.
  97. "*": {
  98. "jquery": "jquery-private",
  99. "jquery.rwdImageMaps" : "jquery.rwdImageMaps.amd",
  100. "jquery.highlight" : "jquery.highlight.amd",
  101. "jquery.bootpag" : "jquery.bootpag.amd"
  102. },
  103. // 'jquery-private' wants the real jQuery module
  104. // though. If this line was not here, there would
  105. // be an unresolvable cyclic dependency.
  106. "jquery-private": { "jquery": "jquery" },
  107. "jquery.rwdImageMaps.amd" : {"jquery.rwdImageMaps" : "jquery.rwdImageMaps"},
  108. "jquery.highlight.amd" : {"jquery.highlight" : "jquery.highlight"},
  109. "jquery.bootpag.amd" : {"jquery.bootpag" : "jquery.bootpag"}
  110. }
  111. });
  112. });