diff --git a/api/routes/single-page.ts b/api/routes/single-page.ts index 992609d6d..6355bd31d 100644 --- a/api/routes/single-page.ts +++ b/api/routes/single-page.ts @@ -1,7 +1,13 @@ import { fetcher } from 'itty-fetcher' -const GITHUB_REPO = 'https://api.github.com/repos/fmhy/FMHYEdit/contents/' -const EXCLUDE_FILES = ['README.md', 'index.md', 'feedback.md', 'posts.md'] +// Look inside tbe docs directory +const GITHUB_REPO = 'https://api.github.com/repos/fmhy/FMHYEdit/contents/docs/' +const EXCLUDE_FILES = [ + 'README.md', + 'docs/index.md', + 'docs/feedback.md', + 'docs/posts.md' +] const EXCLUDE_DIRECTORIES = ['posts/'] interface File {