docs: improve performance of API reference (#1247)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2022-04-05 11:22:25 +02:00
1 parent cab5821f55
commit 8ceb895d9c
13 files changed
+160 -94

No files matched your search

+2 -2
View File
@@ -331,7 +331,7 @@ const createAllPages = (sections, api, siteData, createPage, template) => {
api: api,
title: edge.section.section_name,
description: edge.section.schema ? edge.section.schema.description : "",
to: { section: baseURL, method: null },
to: { section: baseURL, method: null, sectionObj: edge.section },
},
})
edge.section.paths.forEach(p => {
@@ -345,7 +345,7 @@ const createAllPages = (sections, api, siteData, createPage, template) => {
api: api,
title: method.summary,
description: method.description || "",
to: { section: baseURL, method: methodURL },
to: { section: baseURL, method: methodURL, sectionObj: edge.section },
},
})
})