typedoc.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. const fs = require('fs');
  2. const packages = [
  3. // 'application-extension',
  4. 'application',
  5. 'apputils-extension',
  6. 'apputils',
  7. 'attachments',
  8. 'cells',
  9. 'celltags-extension',
  10. 'celltags',
  11. 'codeeditor',
  12. 'codemirror-extension',
  13. 'codemirror',
  14. 'completer-extension',
  15. 'completer',
  16. 'console-extension',
  17. 'console',
  18. 'coreutils',
  19. 'csvviewer-extension',
  20. 'csvviewer',
  21. 'debugger-extension',
  22. 'debugger',
  23. 'docprovider-extension',
  24. 'docprovider',
  25. 'docmanager-extension',
  26. 'docmanager',
  27. 'docregistry',
  28. 'documentsearch-extension',
  29. 'documentsearch',
  30. 'extensionmanager-extension',
  31. 'extensionmanager',
  32. 'filebrowser-extension',
  33. 'filebrowser',
  34. 'fileeditor-extension',
  35. 'fileeditor',
  36. 'help-extension',
  37. 'htmlviewer-extension',
  38. 'htmlviewer',
  39. 'hub-extension',
  40. 'imageviewer-extension',
  41. 'imageviewer',
  42. 'inspector-extension',
  43. 'inspector',
  44. 'javascript-extension',
  45. 'json-extension',
  46. 'launcher-extension',
  47. 'launcher',
  48. 'logconsole-extension',
  49. 'logconsole',
  50. 'mainmenu-extension',
  51. 'mainmenu',
  52. 'markdownviewer-extension',
  53. 'markdownviewer',
  54. 'mathjax2-extension',
  55. 'mathjax2',
  56. // 'metapackage',
  57. // 'nbconvert-css',
  58. 'nbformat',
  59. 'notebook-extension',
  60. 'notebook',
  61. 'observables',
  62. 'outputarea',
  63. 'pdf-extension',
  64. 'property-inspector',
  65. 'rendermime-extension',
  66. 'rendermime-interfaces',
  67. 'rendermime',
  68. 'running-extension',
  69. 'running',
  70. 'services',
  71. 'settingeditor-extension',
  72. 'settingeditor',
  73. 'settingregistry',
  74. 'shared-models',
  75. 'shortcuts-extension',
  76. 'statedb',
  77. 'statusbar-extension',
  78. 'statusbar',
  79. 'terminal-extension',
  80. 'terminal',
  81. 'theme-dark-extension',
  82. 'theme-light-extension',
  83. 'toc',
  84. 'toc-extension',
  85. 'tooltip-extension',
  86. 'tooltip',
  87. 'translation-extension',
  88. 'translation',
  89. 'ui-components-extension',
  90. 'ui-components',
  91. 'vdom-extension',
  92. 'vdom',
  93. 'vega5-extension'
  94. ];
  95. const entryPoints = packages
  96. .flatMap(p => [`packages/${p}/src/index.ts`, `packages/${p}/src/index.tsx`])
  97. .filter(function (path) {
  98. return fs.existsSync(path);
  99. });
  100. const exclude =
  101. packages.flatMap(p => [`packages/${p}/test`]) +
  102. [
  103. 'packages/application-extension/src/index.tsx'
  104. //'packages/*/test/*.spec.ts',
  105. ];
  106. module.exports = {
  107. entryPoints,
  108. exclude,
  109. name: '@jupyterlab',
  110. out: 'docs/api',
  111. // json: 'docs/api.json',
  112. readme: 'README.md',
  113. theme: 'typedoc-theme',
  114. tsconfig: 'tsconfigdoc.json'
  115. // theme: minimal,
  116. // excludePrivate: true,
  117. // excludeProtected: true,
  118. // excludeExternals: true,
  119. // hideGenerator: true
  120. // gitRevision: 'master',
  121. // 'sourcefile-url-prefix': `https://github.com/sinnerschrader/feature-hub/tree/${git.short()}/packages/`,
  122. };