1
0

docusaurus.config.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. const TwitterSvg =
  2. '<svg style="fill: #1DA1F2; vertical-align: middle;" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>';
  3. module.exports = {
  4. title: "netboot.xyz",
  5. tagline: "your favorite operating systems in one place",
  6. url: "https://netboot.xyz",
  7. baseUrl: "/",
  8. onBrokenLinks: "throw",
  9. onBrokenMarkdownLinks: "warn",
  10. favicon: "img/favicon.ico",
  11. organizationName: "netbootxyz",
  12. projectName: "netboot.xyz",
  13. themeConfig: {
  14. metadata: [{name: 'keywords', content: 'ipxe, netbootxyz, pxe, linux, os, operating system, install, installer, netboot, netboot.xyz'}],
  15. docs: {
  16. sidebar: {
  17. hideable: true,
  18. },
  19. },
  20. docsSideNavCollapsible: true,
  21. image: 'img/nbxyz_logo_name.png',
  22. announcementBar: {
  23. id: "announcementBar-1", // Increment on change
  24. content: `If you like netboot.xyz, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/netbootxyz/netboot.xyz">GitHub</a>⭐️, follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/netbootxyz" >Twitter</a> ${TwitterSvg} and join our <a target="_blank" rel="noopener noreferrer" href="https://discord.gg/An6PA2a">Discord</a>!`,
  25. },
  26. colorMode: {
  27. defaultMode: "light",
  28. disableSwitch: false,
  29. },
  30. algolia: {
  31. appId: "BMY28LDVW4",
  32. apiKey: "51b51a157c47742003b8943f2c5acc09",
  33. indexName: "netboot",
  34. },
  35. navbar: {
  36. title: "netboot.xyz",
  37. logo: {
  38. alt: "netboot.xyz",
  39. src: "img/nbxyz-logo.svg",
  40. srcDark: "img/nbxyz-logo-dark.svg",
  41. },
  42. items: [
  43. {
  44. to: "docs/",
  45. activeBasePath: "docs",
  46. label: "Docs",
  47. position: "left",
  48. },
  49. {
  50. to: "downloads/",
  51. activeBasePath: "downloads",
  52. label: "Downloads",
  53. position: "left",
  54. },
  55. {
  56. to: "blog",
  57. label: "Blog",
  58. position: "left",
  59. },
  60. {
  61. href: "https://github.com/netbootxyz/netboot.xyz",
  62. position: "right",
  63. className: "header-github-link",
  64. "aria-label": "GitHub repository",
  65. },
  66. ],
  67. },
  68. footer: {
  69. style: "dark",
  70. links: [
  71. {
  72. title: "Docs",
  73. items: [
  74. {
  75. label: "Documentation",
  76. to: "docs/",
  77. },
  78. {
  79. label: "Downloads",
  80. to: "downloads/",
  81. },
  82. ],
  83. },
  84. {
  85. title: "Community",
  86. items: [
  87. {
  88. label: "Discord",
  89. href: "https://discord.gg/An6PA2a",
  90. },
  91. {
  92. label: "Discussions",
  93. href: "https://github.com/netbootxyz/netboot.xyz/discussions",
  94. },
  95. {
  96. label: "Twitter",
  97. href: "https://twitter.com/netbootxyz",
  98. },
  99. ],
  100. },
  101. {
  102. title: "More",
  103. items: [
  104. {
  105. label: "Blog",
  106. to: "blog",
  107. },
  108. {
  109. label: "Donate",
  110. href: "https://opencollective.com/netbootxyz/donate",
  111. },
  112. {
  113. label: "Status",
  114. href: "https://status.netboot.xyz",
  115. },
  116. {
  117. label: "GitHub",
  118. href: "https://github.com/netbootxyz/netboot.xyz",
  119. },
  120. ],
  121. },
  122. ],
  123. copyright: `Copyright © ${new Date().getFullYear()} netboot.xyz`,
  124. },
  125. },
  126. presets: [
  127. [
  128. "@docusaurus/preset-classic",
  129. {
  130. docs: {
  131. sidebarPath: require.resolve("./sidebars.js"),
  132. editUrl:
  133. "https://github.com/netbootxyz/netboot.xyz-docs/edit/master/",
  134. },
  135. blog: {
  136. showReadingTime: true,
  137. editUrl:
  138. "https://github.com/netbootxyz/netboot.xyz-docs/edit/master/",
  139. },
  140. theme: {
  141. customCss: require.resolve("./src/css/custom.css"),
  142. },
  143. gtag: {
  144. trackingID: "G-VBSC8VX50S",
  145. },
  146. },
  147. ],
  148. ],
  149. };