diff options
author | 2021-04-27 13:42:03 -0500 | |
---|---|---|
committer | 2021-04-27 13:42:03 -0500 | |
commit | 73b7827b40ae33664877156850ecf04302fa668a (patch) | |
tree | bab8d916d06238bd859435c13b2c7390936a9cba /src | |
parent | 41c64b30af7ed34c1a870b6f273a2889fa2df102 (diff) | |
download | astro-73b7827b40ae33664877156850ecf04302fa668a.tar.gz astro-73b7827b40ae33664877156850ecf04302fa668a.tar.zst astro-73b7827b40ae33664877156850ecf04302fa668a.zip |
chore: update docs to new defaults (#133)
Diffstat (limited to 'src')
-rw-r--r-- | src/build.ts | 2 | ||||
-rw-r--r-- | src/compiler/codegen/content.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/build.ts b/src/build.ts index f5e825ea4..db30b70d2 100644 --- a/src/build.ts +++ b/src/build.ts @@ -40,7 +40,7 @@ const logging: LogOptions = { dest: defaultLogDestination, }; -/** Return contents of astro/pages */ +/** Return contents of src/pages */ async function allPages(root: URL) { const api = new fdir() .filter((p) => /\.(astro|md)$/.test(p)) diff --git a/src/compiler/codegen/content.ts b/src/compiler/codegen/content.ts index e6377eec0..fb8f9e307 100644 --- a/src/compiler/codegen/content.ts +++ b/src/compiler/codegen/content.ts @@ -23,8 +23,8 @@ const crawler = new fdir(); function globSearch(spec: string, { filename }: { filename: string }): string[] { try { // Note: fdir’s glob requires you to do some work finding the closest non-glob folder. - // For example, this fails: .glob("./post/*.md").crawl("/…/astro/pages") ❌ - // …but this doesn’t: .glob("*.md").crawl("/…/astro/pages/post") ✅ + // For example, this fails: .glob("./post/*.md").crawl("/…/src/pages") ❌ + // …but this doesn’t: .glob("*.md").crawl("/…/src/pages/post") ✅ let globDir = ''; let glob = spec; for (const part of spec.split('/')) { |