docusaurus.config.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. import {themes as prismThemes} from 'prism-react-renderer';
  2. import type {Config} from '@docusaurus/types';
  3. import type * as Preset from '@docusaurus/preset-classic';
  4. const config: Config = {
  5. title: 'Laradock',
  6. tagline: 'Full PHP development environment on Docker.',
  7. favicon: 'laradock.ico',
  8. // Set the production url of your site here
  9. url: 'https://laradock.io/',
  10. // Set the /<baseUrl>/ pathname under which your site is served
  11. // For GitHub pages deployment, it is often '/<projectName>/'
  12. baseUrl: '/',
  13. // GitHub pages deployment config.
  14. // If you aren't using GitHub pages, you don't need these.
  15. organizationName: 'laradock/laradock', // Usually your GitHub org/user name.
  16. projectName: 'laradock', // Usually your repo name.
  17. onBrokenLinks: 'throw',
  18. onBrokenMarkdownLinks: 'warn',
  19. // Even if you don't use internationalization, you can use this field to set
  20. // useful metadata like html lang. For example, if your site is Chinese, you
  21. // may want to replace "en" with "zh-Hans".
  22. i18n: {
  23. defaultLocale: 'en',
  24. locales: ['en'],
  25. },
  26. presets: [
  27. [
  28. '@docusaurus/preset-classic',
  29. {
  30. docs: {
  31. id: 'default',
  32. sidebarPath: './sidebars.ts',
  33. // Please change this to your repo.
  34. // Remove this to remove the "edit this page" links.
  35. editUrl:
  36. 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
  37. },
  38. // blog: {
  39. // showReadingTime: true,
  40. // // Please change this to your repo.
  41. // // Remove this to remove the "edit this page" links.
  42. // editUrl:
  43. // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
  44. // },
  45. theme: {
  46. customCss: './src/css/custom.css',
  47. },
  48. gtag: {
  49. trackingID: 'G-CVZBKZ36Y5', // Update with your Google Analytics ID
  50. anonymizeIP: true,
  51. },
  52. } satisfies Preset.Options,
  53. ],
  54. ],
  55. themeConfig: {
  56. image: '/img/laradock/laradock-logo.jpg',
  57. navbar: {
  58. title: 'Laradock',
  59. logo: {
  60. alt: 'Laradock Logo',
  61. src: '/img/laradock/laradock-icon.png',
  62. },
  63. items: [
  64. // {
  65. // type: 'docSidebar',
  66. // sidebarId: 'tutorialSidebar',
  67. // position: 'left',
  68. // label: 'Tutorial',
  69. // },
  70. // {to: '/blog', label: 'Blog', position: 'left'},
  71. {
  72. href: 'https://github.com/laradock/laradock',
  73. label: 'GitHub',
  74. position: 'right',
  75. },
  76. ],
  77. },
  78. footer: {
  79. style: 'dark',
  80. links: [
  81. // {
  82. // title: 'Docs',
  83. // items: [
  84. // {
  85. // label: 'Tutorial',
  86. // to: '/docs/intro',
  87. // },
  88. // ],
  89. // },
  90. // {
  91. // title: 'Community',
  92. // items: [
  93. // {
  94. // label: 'Stack Overflow',
  95. // href: 'https://stackoverflow.com/questions/tagged/docusaurus',
  96. // },
  97. // {
  98. // label: 'Discord',
  99. // href: 'https://discordapp.com/invite/docusaurus',
  100. // },
  101. // {
  102. // label: 'Twitter',
  103. // href: 'https://twitter.com/docusaurus',
  104. // },
  105. // ],
  106. // },
  107. // {
  108. // title: 'More',
  109. // items: [
  110. // {
  111. // label: 'Blog',
  112. // to: '/blog',
  113. // },
  114. // {
  115. // label: 'GitHub',
  116. // href: 'https://github.com/Mahmoudz/Porto',
  117. // },
  118. // ],
  119. // },
  120. ],
  121. copyright: `Copyright © 2016 - ${new Date().getFullYear()} - Laradock - By <a href="https://zalt.me" target="_blank" rel="noopener noreferrer">Mahmoud Zalt</a>.`,
  122. },
  123. prism: {
  124. theme: prismThemes.github,
  125. darkTheme: prismThemes.dracula,
  126. },
  127. colorMode: {
  128. defaultMode: 'dark',
  129. },
  130. } satisfies Preset.ThemeConfig,
  131. };
  132. export default config;