mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
refactor(v2): point blog plugin path to v1's blog directory
This commit is contained in:
parent
95ca07a646
commit
b13e468b16
5 changed files with 4 additions and 414 deletions
|
@ -13,6 +13,7 @@ async function genRoutesConfig({
|
|||
pagesMetadatas = [],
|
||||
contentsStore = {},
|
||||
}) {
|
||||
// Docs.
|
||||
const {docsUrl, baseUrl} = siteConfig;
|
||||
function genDocsRoute(metadata) {
|
||||
const {permalink, source} = metadata;
|
||||
|
@ -45,6 +46,7 @@ async function genRoutesConfig({
|
|||
.join(',')}],
|
||||
}`;
|
||||
|
||||
// Pages.
|
||||
function genPagesRoute(metadata) {
|
||||
const {permalink, source} = metadata;
|
||||
return `
|
||||
|
@ -66,6 +68,7 @@ async function genRoutesConfig({
|
|||
}`;
|
||||
}
|
||||
|
||||
// Blog.
|
||||
function genBlogRoute(metadata) {
|
||||
const {permalink, source} = metadata;
|
||||
if (metadata.isBlogPage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue