@@ -12,6 +12,7 @@ const env = envVar.from(process.env);
12
12
13
13
const urlBase = env . get ( "DOCS_URL_BASE" ) . asString ( ) ;
14
14
const packageVersion = env . get ( "DOCS_PACKAGE_VERSION" ) . default ( packageJson . version ) . asString ( ) ;
15
+ const googleSiteVerificationCode = "7b4Hd_giIK0EFsin6a7PWLmM_OeaC7APLZUxVGwwI6Y" ;
15
16
16
17
const chatWrappersOrder = [
17
18
"GeneralChatPromptWrapper" ,
@@ -43,7 +44,19 @@ export default defineConfig({
43
44
44
45
base : urlBase ,
45
46
sitemap : {
46
- hostname : "https://withcatai.github.io/node-llama-cpp/"
47
+ hostname : "https://withcatai.github.io/node-llama-cpp/" ,
48
+ transformItems ( items ) {
49
+ return items . map ( ( item ) => {
50
+ if ( item . url . includes ( "api/" ) || item . url . includes ( "guide/cli/" ) ) {
51
+ item = {
52
+ ...item ,
53
+ lastmod : undefined ,
54
+ }
55
+ }
56
+
57
+ return item ;
58
+ } ) ;
59
+ }
47
60
} ,
48
61
head : [
49
62
[ "link" , { rel : "icon" , type : "image/svg+xml" , href : resolveHref ( "/favicon.svg" ) } ] ,
@@ -54,6 +67,11 @@ export default defineConfig({
54
67
[ "meta" , { name : "og:locale" , content : "en" } ] ,
55
68
[ "meta" , { name : "og:site_name" , content : "node-llama-cpp" } ]
56
69
] ,
70
+ transformHead ( { pageData, head} ) {
71
+ if ( pageData . filePath === "index.md" ) {
72
+ head . push ( [ "meta" , { name : "google-site-verification" , content : googleSiteVerificationCode } ] ) ;
73
+ }
74
+ } ,
57
75
transformPageData ( pageData ) {
58
76
if ( pageData . filePath . startsWith ( "api/" ) || pageData . filePath . startsWith ( "guide/cli/" ) ) {
59
77
pageData . frontmatter . editLink = false ;
@@ -62,7 +80,7 @@ export default defineConfig({
62
80
} ,
63
81
themeConfig : {
64
82
editLink : {
65
- pattern : "https://github.com/withcatai/node-llama-cpp/edit/main /docs/:path"
83
+ pattern : "https://github.com/withcatai/node-llama-cpp/edit/master /docs/:path"
66
84
} ,
67
85
nav : [
68
86
{ text : "Guide" , link : "/guide/" , activeMatch : "/guide/" } ,
0 commit comments