Skip to content

Commit d8ebc6b

Browse files
committed
Update wiki paths
1 parent c3a3fdd commit d8ebc6b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/wiki.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const image_regex = /!\[[^\]]*]\(([^)]*)\)/;
4343
const reference_definition_regex = /\s*\[([^\]]*)]: (.+)/;
4444
const reference_link_regex = /\[([^\]]*)]\[([^\]]*)]/g;
4545

46-
export const wiki_path = "wiki";
47-
export const wiki_articles_path = "wiki/articles";
46+
export const wiki_path = "wiki/wiki";
47+
export const wiki_articles_path = "wiki/bot-articles";
4848

4949
type substitution_fun = (str: string) => string;
5050

@@ -408,7 +408,7 @@ export default class Wiki extends BotComponent {
408408
this.article_aliases.set(alias, file_path.name);
409409
}
410410
}
411-
for await (const file_path of globIterate(`${wiki_path}/src/**/*.md`, { withFileTypes: true })) {
411+
for await (const file_path of globIterate(`${wiki_path}/**/*.md`, { withFileTypes: true })) {
412412
const file_content = await fs.promises.readFile(file_path.fullpath(), { encoding: "utf-8" });
413413
const { data } = matter(file_content);
414414
if (data.preview) {

wiki

Submodule wiki updated 171 files

0 commit comments

Comments
 (0)