@@ -36,7 +36,6 @@ function analyticsHead(): HeadConfig[] {
3636export default async ( ) => {
3737 return defineConfig ( {
3838 base : siteBase ( ) ,
39- lastUpdated : true ,
4039 lang : "en-US" ,
4140 title : headTitle ,
4241 description : headDescription ,
@@ -52,7 +51,10 @@ export default async () => {
5251 [ "meta" , { property : "og:image" , content : headImage } ] ,
5352 [ "meta" , { property : "og:type" , content : "website" } ] ,
5453 [ "meta" , { property : "og:site_name" , content : "Sail documentation" } ] ,
55- [ 'link' , { rel : 'icon' , type : 'image/png' , href : `${ siteBase ( ) } favicon.png` } ] ,
54+ [
55+ "link" ,
56+ { rel : "icon" , type : "image/png" , href : `${ siteBase ( ) } favicon.png` } ,
57+ ] ,
5658 ...analyticsHead ( ) ,
5759 ] ,
5860 transformPageData ( pageData ) {
@@ -69,20 +71,34 @@ export default async () => {
6971 "meta" ,
7072 { property : "og:url" , content : canonicalUrl } ,
7173 ] ) ;
74+
75+ if ( pageData . params ?. sphinx ) {
76+ pageData . frontmatter . prev = pageData . params . prev || {
77+ link : "/reference/" ,
78+ text : "Reference" ,
79+ } ;
80+ pageData . frontmatter . next = pageData . params . next ?? false ;
81+ }
7282 } ,
7383 // Exclude directories starting with an underscore. Such directories are
7484 // internal (e.g. containing pages to be included in other pages).
7585 srcExclude : [ "**/_*/**/*.md" ] ,
7686 ignoreDeadLinks : [ / ^ h t t p s ? : \/ \/ l o c a l h o s t ( : \d + ) ? ( \/ .* ) ? $ / ] ,
7787 themeConfig : {
78- nav : [ { text : "Home" , link : "/" } ] ,
88+ logo : "/favicon.png" ,
89+ nav : [
90+ { text : "User Guide" , link : "/guide/" } ,
91+ { text : "Development" , link : "/development/" } ,
92+ { text : "Reference" , link : "/reference/" } ,
93+ ] ,
7994 notFound : {
8095 quote : "The page does not exist." ,
8196 } ,
8297 sidebar : {
8398 "/" : [
8499 {
85100 text : "User Guide" ,
101+ link : "/guide/" ,
86102 items : [
87103 {
88104 text : "Installation" ,
@@ -93,6 +109,17 @@ export default async () => {
93109 {
94110 text : "Development" ,
95111 link : "/development/" ,
112+ items : [ ] ,
113+ } ,
114+ {
115+ text : "Reference" ,
116+ link : "/reference/" ,
117+ items : [
118+ {
119+ text : "Python API Reference" ,
120+ link : "/reference/python/" ,
121+ } ,
122+ ] ,
96123 } ,
97124 ] ,
98125 } ,
0 commit comments