File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -19326,7 +19326,7 @@ function linkify_headings() {
1932619326
1932719327 let slug;
1932819328
19329- if (data.docs_type === "blog") {
19329+ if (data.docs_type === "blog" || data.file_type === "readme" ) {
1933019330 slug = make_slug$3(
1933119331 node.depth === data.base_level
1933219332 ? title_text
@@ -25677,10 +25677,17 @@ async function format({
2567725677 title,
2567825678 slug,
2567925679}) {
25680+ const file_type = file.toLowerCase().endsWith("readme.md")
25681+ ? "readme"
25682+ : "other";
25683+
25684+ const is_readme = file_type === "readme";
25685+
2568025686 const sections = [];
25681- const section_title = title || false;
25687+ const section_title = title || (is_readme && project) || false;
2568225688
2568325689 const section_slug =
25690+ (is_readme && make_slug$1(project.replace("@sveltejs/", ""), seen_slugs)) ||
2568425691 (slug && make_slug$1(slug, seen_slugs)) ||
2568525692 (title && make_slug$1(title, seen_slugs)) ||
2568625693 false;
@@ -25693,8 +25700,8 @@ async function format({
2569325700 section_stack: [sections],
2569425701 section_title,
2569525702 section_slug,
25696- dir,
25697- file_type: file.toLowerCase().endsWith("readme.md") ? "readme" : "other" ,
25703+ dir: is_readme ? `${dir}/${section_slug}` : dir ,
25704+ file_type,
2569825705 docs_type,
2569925706 base_level: level,
2570025707 prev_level: level,
You can’t perform that action at this time.
0 commit comments