@@ -5,7 +5,6 @@ import { parse, stringify } from "yaml";
5
5
import { Icon } from " astro-icon/components" ;
6
6
import Button from " @components/Button.svelte" ;
7
7
import { getCollection } from " astro:content" ;
8
- import search_patterns from " @src/search_patterns.yaml" ;
9
8
10
9
export async function getStaticPaths() {
11
10
const modules = await getCollection (" modules" );
@@ -17,24 +16,15 @@ export async function getStaticPaths() {
17
16
props: {
18
17
module: module ,
19
18
frontmatter: module .data ,
20
- search_patterns: search_patterns ,
21
19
},
22
20
}));
23
21
}
24
22
25
- const { module, frontmatter, search_patterns } = Astro .props ;
23
+ const { module, frontmatter } = Astro .props ;
26
24
27
25
const { headings, Content, remarkPluginFrontmatter } = await module .render ();
28
26
const gh_url =
29
27
" https://github.com/MultiQC/MultiQC/blob/main/docs/modules/" + module .id .split (" /" ).pop ();
30
-
31
- // Filter search_patterns to only include keys containing key string
32
- const module_search_patterns = Object .keys (search_patterns )
33
- .filter ((key ) => key .includes (module .id .split (" /" ).pop ().replace (" .md" , " " )))
34
- .reduce ((obj , key ) => {
35
- obj [key ] = search_patterns [key ];
36
- return obj ;
37
- }, {});
38
28
---
39
29
40
30
<PageLayout
@@ -49,17 +39,6 @@ const module_search_patterns = Object.keys(search_patterns)
49
39
frontmatter .name ,
50
40
)} ` }
51
41
>
52
- <div class =" prose max-w-none dark:prose-invert" >
53
- <Content />
54
- {
55
- Object .keys (module_search_patterns ).length > 0 && (
56
- <>
57
- <h2 id = " module-search-patterns" >File search patterns</h2 >
58
- <Code code = { stringify (module_search_patterns , null , 2 )} lang = " yaml" />
59
- </>
60
- )
61
- }
62
- </div >
63
42
<div class =" text-center" >
64
43
<Button to =" /modules" variant =" secondary" size =" sm" classes =" mt-12" >
65
44
<Icon name =" mdi:arrow-left" class =" -ml-1 mr-2 h-4 w-4" />
0 commit comments