docusaurus.config.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. module.exports = {
  2. title: 'Premake',
  3. tagline: 'Powerfully simple build configuration',
  4. url: 'https://premake.github.io/',
  5. baseUrl: '/',
  6. scripts: [
  7. 'https://use.fontawesome.com/dd1c9cd9ff.js'
  8. ],
  9. onBrokenLinks: 'throw',
  10. onBrokenMarkdownLinks: 'throw',
  11. favicon: 'img/favicon.ico',
  12. organizationName: 'premake',
  13. projectName: 'premake.github.io',
  14. themeConfig: {
  15. prism: {
  16. additionalLanguages: ['lua'],
  17. },
  18. algolia: {
  19. apiKey: '7440a29a5d611582272899683f54f54e',
  20. indexName: 'premake',
  21. },
  22. navbar: {
  23. title: 'Premake',
  24. logo: {
  25. alt: 'Premake Logo',
  26. src: 'img/premake-logo.png',
  27. },
  28. items: [
  29. {
  30. to: '/docs/',
  31. activeBasePath: 'docs',
  32. label: 'Docs',
  33. position: 'left',
  34. },
  35. {
  36. to: '/blog',
  37. label: 'News',
  38. },
  39. {
  40. to: '/community/support',
  41. label: 'Community',
  42. position: 'left',
  43. activeBaseRegex: `/community/`
  44. },
  45. {
  46. href: 'https://twitter.com/premakeapp',
  47. position: 'right',
  48. className: 'fa fa-twitter fa-2x',
  49. 'aria-label': 'Premake on Twitter',
  50. },
  51. {
  52. href: 'https://github.com/premake/premake-core',
  53. position: 'right',
  54. className: 'fa fa-github fa-2x',
  55. 'aria-label': 'GitHub repository'
  56. },
  57. ],
  58. },
  59. footer: {
  60. style: 'dark',
  61. links: [
  62. {
  63. title: 'Learn',
  64. items: [
  65. {
  66. label: 'Introduction',
  67. to: '/docs/What-Is-Premake'
  68. },
  69. {
  70. label: 'Download',
  71. to: '/download'
  72. },
  73. {
  74. label: 'Your First Script',
  75. to: '/docs/Your-First-Script'
  76. },
  77. {
  78. label: 'Premake 4.x',
  79. to: 'https://github.com/premake/premake-4.x/wiki',
  80. }
  81. ],
  82. },
  83. {
  84. title: 'Community',
  85. items: [
  86. {
  87. label: 'Discussions',
  88. href: 'https://github.com/premake/premake-core/discussions',
  89. },
  90. {
  91. label: 'Stack Overflow',
  92. href: 'https://stackoverflow.com/questions/tagged/premake',
  93. },
  94. {
  95. label: 'Help',
  96. to: '/community/support'
  97. }
  98. ],
  99. },
  100. {
  101. title: 'More',
  102. items: [
  103. {
  104. label: 'Blog',
  105. to: '/blog'
  106. },
  107. {
  108. label: 'GitHub',
  109. href: 'https://github.com/premake/premake-core/',
  110. },
  111. {
  112. label: 'Twitter',
  113. href: 'https://twitter.com/premakeapp',
  114. },
  115. {
  116. label: 'OpenCollective',
  117. href: 'https://opencollective.com/premake',
  118. }
  119. ],
  120. },
  121. ],
  122. copyright: `Copyright © ${new Date().getFullYear()} Premake`,
  123. },
  124. },
  125. presets: [
  126. [
  127. '@docusaurus/preset-classic',
  128. {
  129. docs: {
  130. sidebarPath: require.resolve('./sidebars.js'),
  131. editUrl: 'https://github.com/premake/premake-core/edit/master/website/',
  132. showLastUpdateAuthor: true,
  133. showLastUpdateTime: true,
  134. },
  135. blog: {
  136. blogSidebarTitle: 'Posts',
  137. },
  138. theme: {
  139. customCss: require.resolve('./src/css/custom.css'),
  140. },
  141. }
  142. ],
  143. ],
  144. plugins: [
  145. [
  146. '@docusaurus/plugin-content-docs',
  147. {
  148. id: 'community',
  149. path: 'community',
  150. editUrl: 'https://github.com/premake/premake-core/edit/master/website/',
  151. routeBasePath: 'community',
  152. sidebarPath: require.resolve('./sidebars-community.js'),
  153. showLastUpdateAuthor: true,
  154. showLastUpdateTime: true,
  155. }
  156. ]
  157. ]
  158. };