You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

rspress.config.ts 2.1 kB

3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import * as path from 'node:path';
  2. import { defineConfig } from '@rspress/core';
  3. export default defineConfig({
  4. root: path.join(__dirname, 'docs'),
  5. title: 'Dora中文社区',
  6. description: 'Dora中文社区 - 信息收集、文章推送、教程学习、技巧分享、社区交流',
  7. icon: '/favicon.ico',
  8. // lang: 'zh',
  9. // locales: [
  10. // {
  11. // lang: 'zh',
  12. // label: '中文',
  13. // },
  14. // ],
  15. logo: {
  16. light: '/logo.svg',
  17. dark: '/logo-dark.svg',
  18. },
  19. logoText: 'Dora中文社区',
  20. // route: {
  21. // cleanUrls: true,
  22. // },
  23. head: [
  24. '<meta name="Author" content="李扬">',
  25. '<script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src="https://hm.baidu.com/hm.js?bad2b636058313c698986f4096bb5742";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script>'
  26. ],
  27. themeConfig: {
  28. socialLinks: [
  29. {
  30. icon: 'github',
  31. mode: 'link',
  32. content: 'https://github.com/DoraCN/doracc.com',
  33. },
  34. ],
  35. editLink: {
  36. docRepoBaseUrl: 'https://github.com/DoraCN/doracc.com/tree/main/docs',
  37. text: '📝 在 GitHub 上编辑此页',
  38. },
  39. enableScrollToTop: true,
  40. enableContentAnimation: true,
  41. searchPlaceholderText: '搜索文档',
  42. lastUpdated: true,
  43. lastUpdatedText: '上次更新',
  44. // footer: {
  45. // message: '<img src="/logo.svg" style="width:30px;display:inline;"><br>Dora中文社区 © 2025 <a href="/">doracc.com</a><br><a href="https://beian.miit.gov.cn/" rel="noreferrer"> 苏ICP备14007268号-19 </a> | <img src="/beian.png" style="width:12px;display:inline;"><a href="https://beian.mps.gov.cn/#/query/webSearch?code=32050602013520" rel="noreferrer"> 苏公网安备32050602013520号 </a>',
  46. // },
  47. },
  48. markdown: {
  49. showLineNumbers: true,
  50. defaultWrapCode: true,
  51. // highlightLanguages: [
  52. // ['py', 'python'],
  53. // ['rust', 'rust'],
  54. // ],
  55. },
  56. mediumZoom: {
  57. selector: '.rspress-doc img',
  58. },
  59. globalUIComponents: [path.join(__dirname, 'components', 'compTongji.tsx')],
  60. });

Dora中文社区官网

Contributors (1)