siteConfig.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /**
  2. * Copyright (c) 2017-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. // See https://docusaurus.io/docs/site-config for all the possible
  8. // site configuration options.
  9. // List of projects/orgs using your project for the users page.
  10. const users = [];
  11. const siteConfig = {
  12. title: 'BlitzMax', // Title for your website.
  13. tagline: 'Code. Build. Play.',
  14. url: 'https://blitzmax.org', // Your website URL
  15. baseUrl: '/', // Base URL for your project */
  16. // For github.io type URLs, you would set the url and baseUrl like:
  17. // url: 'https://facebook.github.io',
  18. // baseUrl: '/test-site/',
  19. // Used for publishing and more
  20. projectName: 'blitzmax',
  21. organizationName: 'bmx-ng',
  22. // For top-level user or org sites, the organization is still the same.
  23. // e.g., for the https://JoelMarcey.github.io site, it would be set like...
  24. // organizationName: 'JoelMarcey'
  25. // For no header links in the top nav bar -> headerLinks: [],
  26. headerLinks: [
  27. {page: 'downloads', label: 'Downloads'},
  28. {doc: 'setup/get_started', label: 'Docs'},
  29. {doc: 'api/intro', label: 'API'},
  30. {doc: 'community/resources', label: 'Resources'},
  31. {doc: 'site/about', label: 'About'},
  32. ],
  33. // If you have users set above, you add it here:
  34. users,
  35. /* path to images for header/footer */
  36. headerIcon: 'img/rocket.png',
  37. footerIcon: 'img/rocket.png',
  38. favicon: 'img/rocket.png',
  39. /* Colors for website */
  40. colors: {
  41. primaryColor: '#000000',
  42. secondaryColor: '#4f62be',
  43. },
  44. /* Custom fonts for website */
  45. /*
  46. fonts: {
  47. myFont: [
  48. "Times New Roman",
  49. "Serif"
  50. ],
  51. myOtherFont: [
  52. "-apple-system",
  53. "system-ui"
  54. ]
  55. },
  56. */
  57. // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds.
  58. copyright: `Copyright © ${new Date().getFullYear()} Bruce A Henderson`,
  59. highlight: {
  60. // Highlight.js theme to use for syntax highlighting in code blocks.
  61. theme: 'github',
  62. hljs: function (hljs) {
  63. hljs.registerLanguage('blitzmax', function (hljs) {
  64. var NUMBER = {
  65. className: 'number', relevance: 0,
  66. variants: [
  67. {
  68. begin: '[$][a-fA-F0-9]+'
  69. },
  70. {
  71. begin: '[%][10]+'
  72. },
  73. {
  74. begin: '\\b[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?'
  75. },
  76. hljs.NUMBER_MODE
  77. ]
  78. };
  79. return {
  80. case_insensitive: true,
  81. keywords: {
  82. keyword: 'strict superstrict public private protected short int float double long string object ptr var varptr ' +
  83. 'mod continue exit include import module extern framework new self super eachin true false ' +
  84. 'null not extends abstract select case default const local global field method function type ' +
  85. 'and or shl shr sar end if then else elseif endif while wend repeat until forever for to step ' +
  86. 'next return alias rem endrem throw assert try catch finally nodebug incbin endselect endmethod ' +
  87. 'endfunction endtype endextern endtry endwhile pi release defdata readdata restoredata interface ' +
  88. 'endinterface implements size_t uint ulong struct endstruct operator where readonly export enum override',
  89. built_in: 'DebugLog DebugStop',
  90. literal: 'true false null'
  91. },
  92. illegal: /\/\*/,
  93. contains: [
  94. hljs.COMMENT('^\\s*rem\\b', '^\\s*(endrem|end rem)\\b'),
  95. hljs.COMMENT(
  96. "'",
  97. '$',
  98. {
  99. relevance: 0
  100. }
  101. ),
  102. {
  103. className: 'function',
  104. beginKeywords: 'function method', end: '[(=:]|$',
  105. illegal: /\n/,
  106. contains: [
  107. hljs.UNDERSCORE_TITLE_MODE
  108. ]
  109. },
  110. {
  111. className: 'type',
  112. beginKeywords: 'type interface struct', end: '$',
  113. contains: [
  114. {
  115. beginKeywords: 'extends implements'
  116. },
  117. hljs.UNDERSCORE_TITLE_MODE
  118. ]
  119. },
  120. {
  121. className: 'new',
  122. beginKeywords: 'new', end: '$',
  123. contains: [
  124. hljs.UNDERSCORE_TITLE_MODE
  125. ]
  126. },
  127. {
  128. className: 'built_in',
  129. begin: '\\b(self|super)\\b'
  130. },
  131. {
  132. className: 'meta',
  133. begin: '\\s*\\?', end: '$',
  134. keywords: {'meta-keyword': 'not and or'}
  135. },
  136. hljs.QUOTE_STRING_MODE,
  137. NUMBER
  138. ]
  139. }
  140. });
  141. }
  142. },
  143. // Add custom scripts here that would be placed in <script> tags.
  144. scripts: [
  145. 'https://buttons.github.io/buttons.js',
  146. 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
  147. '/js/code-blocks-buttons.js',
  148. '/js/scrollspy.js'
  149. ],
  150. // On page navigation for the current documentation page.
  151. onPageNav: 'separate',
  152. // No .html extensions for paths.
  153. cleanUrl: true,
  154. scrollToTop: true,
  155. // You may provide arbitrary config keys to be used as needed by your
  156. // template. For example, if you need your repo's URL...
  157. repoUrl: 'https://github.com/bmx-ng/bmx-ng',
  158. editUrl: 'https://github.com/bmx-ng/bmx-site/edit/master/docs/',
  159. useEnglishUrl: true,
  160. docsSideNavCollapsible: true,
  161. };
  162. module.exports = siteConfig;