@@ -10,6 +10,7 @@ import { markdownThemeImagePlugin } from './utils/markdown-theme-image'
1010
1111const COMMIT_TAG = process . env . COMMIT_TAG || 'dev'
1212const DOCS_COMMIT_SHA = process . env . CF_PAGES_COMMIT_SHA || process . env . DOCS_COMMIT_SHA
13+ const DOCS_ICP = process . env . DOCS_ICP || ''
1314const DOCS_BUILT_DATE = new Date ( ) . toISOString ( )
1415// Must have SITE_URL or build fails
1516const SITE_URL = process . env . SITE_URL || 'https://example.com'
@@ -68,7 +69,7 @@ export default defineValaxyConfig<PressTheme.Config>({
6869 theme : 'press' ,
6970 themeConfig : {
7071 logo : VITE_BASE . endsWith ( '/' ) ? `${ VITE_BASE } logo.svg` : `/${ VITE_BASE } /logo.svg` ,
71- sidebar : [ 'guide' , 'configuration' , 'faq' , 'api' , 'migration' , 'ecosystem' ] ,
72+ sidebar : [ 'guide' , 'configuration' , 'faq' , 'api' , 'migration' , 'ecosystem' ] ,
7273 socialLinks : [ { icon : 'i-ri-github-line' , link : 'https://github.com/OpenListTeam/OpenList' } ] ,
7374 nav : [
7475 {
@@ -122,8 +123,7 @@ export default defineValaxyConfig<PressTheme.Config>({
122123
123124 footer : {
124125 message : `Commit <a href="https://github.com/OpenListTeam/OpenList-Docs/commit/${ DOCS_COMMIT_SHA } ">${ DOCS_COMMIT_SHA ?. slice ( 0 , 8 ) } </a> built at ${ DOCS_BUILT_DATE } ` ,
125- copyright :
126- 'AGPL-3.0 Licensed | © 2022-present <a href="https://github.com/OpenListTeam" target="_blank">The OpenList Projects Contributors</a>' ,
126+ copyright : `AGPL-3.0 Licensed | © 2022-${ new Date ( ) . getFullYear ( ) } <a href="https://github.com/OpenListTeam" target="_blank">The OpenList Projects Contributors</a>${ DOCS_ICP ? ' | <a href="https://beian.miit.gov.cn" target="_blank">' + DOCS_ICP + '</a>' : '' } ` ,
127127 } ,
128128 } ,
129129
0 commit comments