Skip to content

Commit b3c5f5b

Browse files
committed
comment update
1 parent f04339c commit b3c5f5b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/HierarchicalNamedLayoutStrategy.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ import { NotionPage } from "./NotionPage";
55

66
// This strategy gives us a file tree that mirrors that of notion.
77
// Each level in the outline becomes a directory, and each file bears the name of the Notion document.
8-
// Pros: Easy to read and understand. The URLs are perhaps better for SEO.
9-
// Cons: The URLs become fragile. Moving a file, enclosing it in a new level, or tweaking
10-
// the title means the url will change. This may or may not be worth it to you.
11-
//
12-
// Note that I tried getting a readable file tree while generating slugs based on the notion page id.
13-
// However Docusaurus still makes the url be the "hierarchical path"/slug. So the using the slug as an id
14-
// doesn't buy us much... it would give protection against name changes, but not changes to the outline structure.
8+
// As long as you use slugs, the urls is still just something like https://site/slug
159

1610
export class HierarchicalNamedLayoutStrategy extends LayoutStrategy {
1711
public newLevel(

0 commit comments

Comments
 (0)