@@ -35,33 +35,43 @@ const config: Config = {
3535 format : "detect" ,
3636 } ,
3737
38- plugins : [ [ require . resolve ( './blogPluginEnhanced' ) , {
39- showReadingTime : true ,
40- blogSidebarTitle : 'All posts' ,
41- blogSidebarCount : 'ALL' ,
42- feedOptions : {
43- type : "all" ,
44- //copyright: `Copyright © ${new Date().getFullYear()} metal-stack`,
45- createFeedItems : async ( params ) => {
46- const { blogPosts, defaultCreateFeedItems, ...rest } = params ;
47- return await defaultCreateFeedItems ( {
48- // keep only the 10 most recent blog posts in the feed
49- blogPosts : blogPosts . filter ( ( item , index ) => index < 30 ) ,
50- ...rest ,
51- } ) ;
38+ plugins : [
39+ [
40+ require . resolve ( "./blogPluginEnhanced" ) ,
41+ {
42+ showReadingTime : true ,
43+ blogSidebarTitle : "All posts" ,
44+ blogSidebarCount : 0 ,
45+ postsPerPage : 12 ,
46+ feedOptions : {
47+ type : "all" ,
48+ //copyright: `Copyright © ${new Date().getFullYear()} metal-stack`,
49+ createFeedItems : async ( params ) => {
50+ const { blogPosts, defaultCreateFeedItems, ...rest } = params ;
51+ return await defaultCreateFeedItems ( {
52+ // keep only the 10 most recent blog posts in the feed
53+ blogPosts : blogPosts . filter ( ( item , index ) => index < 30 ) ,
54+ ...rest ,
55+ } ) ;
56+ } ,
57+ } ,
58+ // Please change this to your repo.
59+ // Remove this to remove the "edit this page" links.
60+ editUrl : "https://github.com/metal-stack/docs-new/tree/main/" ,
61+ // Useful options to enforce blogging best practices
62+ onInlineTags : "warn" ,
63+ onInlineAuthors : "ignore" ,
64+ onUntruncatedBlogPosts : "warn" ,
5265 } ,
53- } ,
54- // Please change this to your repo.
55- // Remove this to remove the "edit this page" links.
56- editUrl : "https://github.com/metal-stack/docs-new/tree/main/" ,
57- // Useful options to enforce blogging best practices
58- onInlineTags : "warn" ,
59- onInlineAuthors : "ignore" ,
60- onUntruncatedBlogPosts : "warn" ,
61- } ] , [ "./src/plugins/tailwind-config.js" , { } ] ,
62- [ require . resolve ( 'docusaurus-lunr-search' ) , {
63- languages : [ 'en' ]
64- } ] ] ,
66+ ] ,
67+ [ "./src/plugins/tailwind-config.js" , { } ] ,
68+ [
69+ require . resolve ( "docusaurus-lunr-search" ) ,
70+ {
71+ languages : [ "en" ] ,
72+ } ,
73+ ] ,
74+ ] ,
6575
6676 presets : [
6777 [
@@ -71,8 +81,7 @@ const config: Config = {
7181 sidebarPath : "./sidebars.ts" ,
7282 // Please change this to your repo.
7383 // Remove this to remove the "edit this page" links.
74- editUrl :
75- "https://github.com/metal-stack/docs-new/tree/main/" ,
84+ editUrl : "https://github.com/metal-stack/docs-new/tree/main/" ,
7685 } ,
7786 blog : false ,
7887 theme : {
@@ -95,18 +104,20 @@ const config: Config = {
95104 src : "img/metal-stack.png" ,
96105 } ,
97106 items : [
98- { type : "docsVersionDropdown" , dropdownItemsAfter : [
99- {
100- type : 'html' ,
101- value : '<hr class="dropdown-separator">' ,
102- } ,
103- {
104- label : "Archived: v0.1 - v0.21.8" ,
105- //! TODO: change to archived dns
106- href : "https://docs.metal-stack.io/stable/"
107- }
108- ] ,
109- } ,
107+ {
108+ type : "docsVersionDropdown" ,
109+ dropdownItemsAfter : [
110+ {
111+ type : "html" ,
112+ value : '<hr class="dropdown-separator">' ,
113+ } ,
114+ {
115+ label : "Archived: v0.1 - v0.21.8" ,
116+ //! TODO: change to archived dns
117+ href : "https://docs.metal-stack.io/stable/" ,
118+ } ,
119+ ] ,
120+ } ,
110121 {
111122 type : "doc" ,
112123 label : "Docs" ,
0 commit comments