galley-cms 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -2
- package/bin/galley.js +29 -0
- package/dist/LICENSE +202 -0
- package/dist/NOTICE +19 -0
- package/dist/galley.mjs +168872 -0
- package/dist/overlay.js +60 -0
- package/dist/starters/README.md +257 -0
- package/dist/starters/astro-editorial/CONTENT-GUIDE.md +218 -0
- package/dist/starters/astro-editorial/LICENSE +21 -0
- package/dist/starters/astro-editorial/README.md +375 -0
- package/dist/starters/astro-editorial/astro.config.ts +50 -0
- package/dist/starters/astro-editorial/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-editorial/galley/photography/LOG.md +77 -0
- package/dist/starters/astro-editorial/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-editorial/galley/photography/shots.json +721 -0
- package/dist/starters/astro-editorial/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/night.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/film.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/form.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/look.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/story.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/about.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/about.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/contact.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/story.md +49 -0
- package/dist/starters/astro-editorial/galley/templates/story.webp +0 -0
- package/dist/starters/astro-editorial/galley.config.json +334 -0
- package/dist/starters/astro-editorial/gitignore +26 -0
- package/dist/starters/astro-editorial/netlify.toml +6 -0
- package/dist/starters/astro-editorial/package.json +46 -0
- package/dist/starters/astro-editorial/public/favicon.svg +5 -0
- package/dist/starters/astro-editorial/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-editorial/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-editorial/public/images/share.jpg +0 -0
- package/dist/starters/astro-editorial/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-editorial/scripts/gallery/gallery.astro +77 -0
- package/dist/starters/astro-editorial/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-editorial/scripts/gallery/sections.md +171 -0
- package/dist/starters/astro-editorial/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-editorial/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-editorial/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-editorial/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-editorial/scripts/starter-notice.json +9 -0
- package/dist/starters/astro-editorial/src/components/Actions.astro +31 -0
- package/dist/starters/astro-editorial/src/components/Footer.astro +195 -0
- package/dist/starters/astro-editorial/src/components/Header.astro +340 -0
- package/dist/starters/astro-editorial/src/components/Icon.astro +39 -0
- package/dist/starters/astro-editorial/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-editorial/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-editorial/src/components/Media.astro +37 -0
- package/dist/starters/astro-editorial/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-editorial/src/components/PieceList.astro +70 -0
- package/dist/starters/astro-editorial/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-editorial/src/components/PostList.astro +103 -0
- package/dist/starters/astro-editorial/src/components/Section.astro +47 -0
- package/dist/starters/astro-editorial/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-editorial/src/components/Sections.astro +81 -0
- package/dist/starters/astro-editorial/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-editorial/src/components/Tags.astro +68 -0
- package/dist/starters/astro-editorial/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-editorial/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-editorial/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-editorial/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-editorial/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-editorial/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-editorial/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-editorial/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-editorial/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-editorial/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-editorial/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-editorial/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-editorial/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-editorial/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-editorial/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-editorial/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-editorial/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-editorial/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-editorial/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-editorial/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-editorial/src/content/pages/404.md +14 -0
- package/dist/starters/astro-editorial/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-editorial/src/content/pages/collections.md +15 -0
- package/dist/starters/astro-editorial/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-editorial/src/content/pages/index.md +144 -0
- package/dist/starters/astro-editorial/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-editorial/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-editorial/src/content/pages/stockists.md +32 -0
- package/dist/starters/astro-editorial/src/content.config.ts +464 -0
- package/dist/starters/astro-editorial/src/data/navigation.json +60 -0
- package/dist/starters/astro-editorial/src/data/scripts.json +29 -0
- package/dist/starters/astro-editorial/src/data/site.json +86 -0
- package/dist/starters/astro-editorial/src/data/stockists.json +81 -0
- package/dist/starters/astro-editorial/src/data/visibility.json +30 -0
- package/dist/starters/astro-editorial/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-editorial/src/galley/catalog.js +42 -0
- package/dist/starters/astro-editorial/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-editorial/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-editorial/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-editorial/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-editorial/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-editorial/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-editorial/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-editorial/src/galley/components/index.js +5 -0
- package/dist/starters/astro-editorial/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-editorial/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-editorial/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-editorial/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-editorial/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-editorial/src/galley/integration.js +21 -0
- package/dist/starters/astro-editorial/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-editorial/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-editorial/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-editorial/src/galley/schema.js +338 -0
- package/dist/starters/astro-editorial/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-editorial/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-editorial/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-editorial/src/galley/settings.json +18 -0
- package/dist/starters/astro-editorial/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-editorial/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-editorial/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-editorial/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-editorial/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-editorial/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-editorial/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-editorial/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-editorial/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-editorial/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-editorial/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-editorial/src/layouts/Base.astro +98 -0
- package/dist/starters/astro-editorial/src/lib/journal.ts +45 -0
- package/dist/starters/astro-editorial/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-editorial/src/lib/site.ts +181 -0
- package/dist/starters/astro-editorial/src/pages/404.astro +13 -0
- package/dist/starters/astro-editorial/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-editorial/src/pages/collections/[slug].astro +23 -0
- package/dist/starters/astro-editorial/src/pages/collections/index.astro +66 -0
- package/dist/starters/astro-editorial/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-editorial/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-editorial/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-editorial/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-editorial/src/styles/global.css +661 -0
- package/dist/starters/astro-editorial/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-editorial/src/styles/tokens.css +181 -0
- package/dist/starters/astro-editorial/starter.json +52 -0
- package/dist/starters/astro-editorial/tsconfig.json +8 -0
- package/dist/starters/astro-saas/CONTENT-GUIDE.md +273 -0
- package/dist/starters/astro-saas/LICENSE +21 -0
- package/dist/starters/astro-saas/README.md +365 -0
- package/dist/starters/astro-saas/astro.config.ts +77 -0
- package/dist/starters/astro-saas/galley/previews/home.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/meridian.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/night-shift.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/signal.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/awards.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/case-studies.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/changelog.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/comparison.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-tabs.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/features.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/integrations.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/metrics.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing-table.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/screenshot.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/security.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/team.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/use-cases.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/about.md +50 -0
- package/dist/starters/astro-saas/galley/templates/about.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/contact.md +30 -0
- package/dist/starters/astro-saas/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.md +47 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/landing.md +76 -0
- package/dist/starters/astro-saas/galley/templates/landing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/pricing.md +77 -0
- package/dist/starters/astro-saas/galley/templates/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/product.md +69 -0
- package/dist/starters/astro-saas/galley/templates/product.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/solution.md +71 -0
- package/dist/starters/astro-saas/galley/templates/solution.webp +0 -0
- package/dist/starters/astro-saas/galley.config.json +286 -0
- package/dist/starters/astro-saas/gitignore +22 -0
- package/dist/starters/astro-saas/netlify.toml +6 -0
- package/dist/starters/astro-saas/package.json +45 -0
- package/dist/starters/astro-saas/public/favicon.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/easiest-setup.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/facilities-review.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/support-index.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/audit-schedule.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/certificate-register.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/four-numbers.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/fourteen-depots.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/offline-first.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/work-order-fields.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/corrin-foods.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/halbeck-retail.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/linmore-schools.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/ostrell-logistics.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/pellow-hotels.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/tamsett-facilities.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/vantry-health.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/wendmoor-senior-living.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/anika-thorvald.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/calum-ashby.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/dana-whitcombe.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/ellie-strand.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/grace-achterberg.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/hana-lindqvist.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/joel-marchetti.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/marcus-oyelaran.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/rosa-ferrante.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/sunmi-hollis.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/teodor-rask.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/tobi-merriden.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/dashboard.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/evidence.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/inspection.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/planner.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/reports.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/work-orders.svg +1 -0
- package/dist/starters/astro-saas/public/images/share.png +0 -0
- package/dist/starters/astro-saas/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-saas/scripts/gallery/gallery.astro +114 -0
- package/dist/starters/astro-saas/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-saas/scripts/gallery/sections.md +362 -0
- package/dist/starters/astro-saas/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-saas/src/components/Actions.astro +30 -0
- package/dist/starters/astro-saas/src/components/Announcement.astro +51 -0
- package/dist/starters/astro-saas/src/components/Checklist.astro +55 -0
- package/dist/starters/astro-saas/src/components/CustomerCard.astro +147 -0
- package/dist/starters/astro-saas/src/components/CustomerStory.astro +343 -0
- package/dist/starters/astro-saas/src/components/Footer.astro +204 -0
- package/dist/starters/astro-saas/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-saas/src/components/Frame.astro +88 -0
- package/dist/starters/astro-saas/src/components/Header.astro +489 -0
- package/dist/starters/astro-saas/src/components/Icon.astro +83 -0
- package/dist/starters/astro-saas/src/components/Logo.astro +40 -0
- package/dist/starters/astro-saas/src/components/Mark.astro +54 -0
- package/dist/starters/astro-saas/src/components/Media.astro +54 -0
- package/dist/starters/astro-saas/src/components/PageEntry.astro +65 -0
- package/dist/starters/astro-saas/src/components/PostCard.astro +99 -0
- package/dist/starters/astro-saas/src/components/PostList.astro +108 -0
- package/dist/starters/astro-saas/src/components/Section.astro +52 -0
- package/dist/starters/astro-saas/src/components/SectionHeader.astro +80 -0
- package/dist/starters/astro-saas/src/components/Sections.astro +100 -0
- package/dist/starters/astro-saas/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-saas/src/components/Tags.astro +67 -0
- package/dist/starters/astro-saas/src/components/UpdateEntry.astro +145 -0
- package/dist/starters/astro-saas/src/components/sections/Awards.astro +144 -0
- package/dist/starters/astro-saas/src/components/sections/CaseStudies.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/Changelog.astro +108 -0
- package/dist/starters/astro-saas/src/components/sections/Comparison.astro +132 -0
- package/dist/starters/astro-saas/src/components/sections/Contact.astro +105 -0
- package/dist/starters/astro-saas/src/components/sections/Cta.astro +121 -0
- package/dist/starters/astro-saas/src/components/sections/Faq.astro +142 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureSplit.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureTabs.astro +246 -0
- package/dist/starters/astro-saas/src/components/sections/Features.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/FormSection.astro +89 -0
- package/dist/starters/astro-saas/src/components/sections/Hero.astro +102 -0
- package/dist/starters/astro-saas/src/components/sections/HeroForm.astro +129 -0
- package/dist/starters/astro-saas/src/components/sections/HeroSplit.astro +140 -0
- package/dist/starters/astro-saas/src/components/sections/Integrations.astro +172 -0
- package/dist/starters/astro-saas/src/components/sections/Logos.astro +122 -0
- package/dist/starters/astro-saas/src/components/sections/Metrics.astro +97 -0
- package/dist/starters/astro-saas/src/components/sections/Newsletter.astro +94 -0
- package/dist/starters/astro-saas/src/components/sections/Posts.astro +93 -0
- package/dist/starters/astro-saas/src/components/sections/Pricing.astro +196 -0
- package/dist/starters/astro-saas/src/components/sections/PricingTable.astro +151 -0
- package/dist/starters/astro-saas/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-saas/src/components/sections/Screenshot.astro +112 -0
- package/dist/starters/astro-saas/src/components/sections/Security.astro +167 -0
- package/dist/starters/astro-saas/src/components/sections/Steps.astro +177 -0
- package/dist/starters/astro-saas/src/components/sections/Team.astro +135 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonial.astro +118 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonials.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-saas/src/components/sections/UseCases.astro +166 -0
- package/dist/starters/astro-saas/src/content/blog/audit-ready-maintenance-schedule.md +41 -0
- package/dist/starters/astro-saas/src/content/blog/certificate-register.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/four-maintenance-numbers.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/fourteen-depots-off-spreadsheets.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/offline-first-inspections.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/work-order-fields.md +43 -0
- package/dist/starters/astro-saas/src/content/changelog/asset-qr-labels.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/certificate-forecasts.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/contractor-bulk-upload.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/faster-planner.md +11 -0
- package/dist/starters/astro-saas/src/content/changelog/offline-inspections.md +16 -0
- package/dist/starters/astro-saas/src/content/changelog/scim-provisioning.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/weekly-reminders-fix.md +11 -0
- package/dist/starters/astro-saas/src/content/customers/linmore-schools.md +53 -0
- package/dist/starters/astro-saas/src/content/customers/ostrell-logistics.md +59 -0
- package/dist/starters/astro-saas/src/content/customers/pellow-hotels.md +47 -0
- package/dist/starters/astro-saas/src/content/customers/wendmoor-senior-living.md +47 -0
- package/dist/starters/astro-saas/src/content/forms/contact.json +31 -0
- package/dist/starters/astro-saas/src/content/forms/demo.json +133 -0
- package/dist/starters/astro-saas/src/content/forms/newsletter.json +13 -0
- package/dist/starters/astro-saas/src/content/pages/404.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/about.md +83 -0
- package/dist/starters/astro-saas/src/content/pages/blog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/changelog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/contact.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/customers.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/index.md +161 -0
- package/dist/starters/astro-saas/src/content/pages/pricing.md +131 -0
- package/dist/starters/astro-saas/src/content/pages/privacy.md +38 -0
- package/dist/starters/astro-saas/src/content/pages/product.md +152 -0
- package/dist/starters/astro-saas/src/content/pages/security.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/facilities-teams.md +114 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/service-contractors.md +88 -0
- package/dist/starters/astro-saas/src/content/pages/terms.md +31 -0
- package/dist/starters/astro-saas/src/content/team/anika-thorvald.md +7 -0
- package/dist/starters/astro-saas/src/content/team/calum-ashby.md +7 -0
- package/dist/starters/astro-saas/src/content/team/hana-lindqvist.md +10 -0
- package/dist/starters/astro-saas/src/content/team/joel-marchetti.md +7 -0
- package/dist/starters/astro-saas/src/content/team/rosa-ferrante.md +7 -0
- package/dist/starters/astro-saas/src/content/team/tobi-merriden.md +10 -0
- package/dist/starters/astro-saas/src/content.config.ts +746 -0
- package/dist/starters/astro-saas/src/data/navigation.json +146 -0
- package/dist/starters/astro-saas/src/data/scripts.json +10 -0
- package/dist/starters/astro-saas/src/data/site.json +105 -0
- package/dist/starters/astro-saas/src/data/visibility.json +32 -0
- package/dist/starters/astro-saas/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-saas/src/galley/catalog.js +42 -0
- package/dist/starters/astro-saas/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-saas/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-saas/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-saas/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-saas/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-saas/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-saas/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-saas/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-saas/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-saas/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-saas/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-saas/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-saas/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-saas/src/galley/components/index.js +5 -0
- package/dist/starters/astro-saas/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-saas/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-saas/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-saas/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-saas/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-saas/src/galley/integration.js +21 -0
- package/dist/starters/astro-saas/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-saas/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-saas/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-saas/src/galley/schema.js +338 -0
- package/dist/starters/astro-saas/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-saas/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-saas/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-saas/src/galley/settings.json +18 -0
- package/dist/starters/astro-saas/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-saas/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-saas/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-saas/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-saas/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-saas/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-saas/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-saas/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-saas/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-saas/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-saas/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-saas/src/layouts/Base.astro +106 -0
- package/dist/starters/astro-saas/src/lib/customers.ts +18 -0
- package/dist/starters/astro-saas/src/lib/posts.ts +47 -0
- package/dist/starters/astro-saas/src/lib/site.ts +222 -0
- package/dist/starters/astro-saas/src/pages/404.astro +13 -0
- package/dist/starters/astro-saas/src/pages/[...slug].astro +27 -0
- package/dist/starters/astro-saas/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-saas/src/pages/blog/[slug].astro +298 -0
- package/dist/starters/astro-saas/src/pages/blog/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-saas/src/pages/changelog.astro +41 -0
- package/dist/starters/astro-saas/src/pages/customers/[slug].astro +32 -0
- package/dist/starters/astro-saas/src/styles/global.css +651 -0
- package/dist/starters/astro-saas/src/styles/kit.css +70 -0
- package/dist/starters/astro-saas/src/styles/themes/meridian.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/night-shift.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/signal.css +173 -0
- package/dist/starters/astro-saas/src/styles/tokens.css +173 -0
- package/dist/starters/astro-saas/starter-notice.json +9 -0
- package/dist/starters/astro-saas/starter.json +52 -0
- package/dist/starters/astro-saas/tsconfig.json +8 -0
- package/dist/starters/astro-saas/wrangler.jsonc +12 -0
- package/dist/starters/astro-starter/CONTENT-GUIDE.md +195 -0
- package/dist/starters/astro-starter/LICENSE +21 -0
- package/dist/starters/astro-starter/README.md +381 -0
- package/dist/starters/astro-starter/astro.config.ts +77 -0
- package/dist/starters/astro-starter/galley/previews/evening.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/home.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/lowfield.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sage.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/features.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/form.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/split.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/stats.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/team.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/about.md +33 -0
- package/dist/starters/astro-starter/galley/templates/about.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/contact.md +25 -0
- package/dist/starters/astro-starter/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.md +27 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/project.md +44 -0
- package/dist/starters/astro-starter/galley/templates/project.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/service.md +50 -0
- package/dist/starters/astro-starter/galley/templates/service.webp +0 -0
- package/dist/starters/astro-starter/galley.config.json +187 -0
- package/dist/starters/astro-starter/gitignore +22 -0
- package/dist/starters/astro-starter/netlify.toml +6 -0
- package/dist/starters/astro-starter/package.json +44 -0
- package/dist/starters/astro-starter/public/favicon.svg +1 -0
- package/dist/starters/astro-starter/public/images/blog/kitchen-questions.svg +6 -0
- package/dist/starters/astro-starter/public/images/blog/measured-survey.svg +5 -0
- package/dist/starters/astro-starter/public/images/blog/planning.svg +7 -0
- package/dist/starters/astro-starter/public/images/blog/renovation-guide.svg +8 -0
- package/dist/starters/astro-starter/public/images/gallery/arched-doorway.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/garden-room.svg +4 -0
- package/dist/starters/astro-starter/public/images/gallery/kitchen.svg +7 -0
- package/dist/starters/astro-starter/public/images/gallery/plan.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/stair.svg +3 -0
- package/dist/starters/astro-starter/public/images/gallery/window-seat.svg +6 -0
- package/dist/starters/astro-starter/public/images/logos/brackenridge.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/hartwell-glass.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/millbrook-timber.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/ostler-lime.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/wrenhallow-civic.svg +1 -0
- package/dist/starters/astro-starter/public/images/people/client-mistry.svg +3 -0
- package/dist/starters/astro-starter/public/images/projects/garden-room.svg +11 -0
- package/dist/starters/astro-starter/public/images/projects/hero-house.svg +18 -0
- package/dist/starters/astro-starter/public/images/projects/kitchen-extension.svg +16 -0
- package/dist/starters/astro-starter/public/images/projects/workshop.svg +9 -0
- package/dist/starters/astro-starter/public/images/share.png +0 -0
- package/dist/starters/astro-starter/public/images/share.svg +10 -0
- package/dist/starters/astro-starter/public/images/team/joe-whitlock.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/nell-okafor.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/priya-anand.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/tomas-reyes.svg +1 -0
- package/dist/starters/astro-starter/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-starter/scripts/gallery/gallery.astro +136 -0
- package/dist/starters/astro-starter/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-starter/scripts/gallery/sections.md +201 -0
- package/dist/starters/astro-starter/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-starter/src/components/Actions.astro +30 -0
- package/dist/starters/astro-starter/src/components/Footer.astro +166 -0
- package/dist/starters/astro-starter/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-starter/src/components/Header.astro +284 -0
- package/dist/starters/astro-starter/src/components/Icon.astro +57 -0
- package/dist/starters/astro-starter/src/components/Media.astro +32 -0
- package/dist/starters/astro-starter/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-starter/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-starter/src/components/PostList.astro +108 -0
- package/dist/starters/astro-starter/src/components/Section.astro +43 -0
- package/dist/starters/astro-starter/src/components/SectionHeader.astro +93 -0
- package/dist/starters/astro-starter/src/components/Sections.astro +76 -0
- package/dist/starters/astro-starter/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-starter/src/components/Tags.astro +65 -0
- package/dist/starters/astro-starter/src/components/sections/Contact.astro +106 -0
- package/dist/starters/astro-starter/src/components/sections/Cta.astro +96 -0
- package/dist/starters/astro-starter/src/components/sections/Faq.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Features.astro +105 -0
- package/dist/starters/astro-starter/src/components/sections/FormSection.astro +91 -0
- package/dist/starters/astro-starter/src/components/sections/Gallery.astro +69 -0
- package/dist/starters/astro-starter/src/components/sections/Hero.astro +128 -0
- package/dist/starters/astro-starter/src/components/sections/Logos.astro +99 -0
- package/dist/starters/astro-starter/src/components/sections/Posts.astro +73 -0
- package/dist/starters/astro-starter/src/components/sections/Pricing.astro +186 -0
- package/dist/starters/astro-starter/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-starter/src/components/sections/Split.astro +117 -0
- package/dist/starters/astro-starter/src/components/sections/Stats.astro +83 -0
- package/dist/starters/astro-starter/src/components/sections/Steps.astro +113 -0
- package/dist/starters/astro-starter/src/components/sections/Team.astro +112 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonial.astro +82 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonials.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-starter/src/content/authors/ines-ferreira.md +5 -0
- package/dist/starters/astro-starter/src/content/authors/nell-okafor.md +6 -0
- package/dist/starters/astro-starter/src/content/authors/tomas-reyes.md +6 -0
- package/dist/starters/astro-starter/src/content/blog/kitchen-extension-questions.md +46 -0
- package/dist/starters/astro-starter/src/content/blog/living-through-a-renovation.md +47 -0
- package/dist/starters/astro-starter/src/content/blog/measured-survey.md +42 -0
- package/dist/starters/astro-starter/src/content/blog/permitted-development.md +45 -0
- package/dist/starters/astro-starter/src/content/forms/contact.json +39 -0
- package/dist/starters/astro-starter/src/content/pages/404.md +17 -0
- package/dist/starters/astro-starter/src/content/pages/about.md +66 -0
- package/dist/starters/astro-starter/src/content/pages/blog.md +9 -0
- package/dist/starters/astro-starter/src/content/pages/contact.md +30 -0
- package/dist/starters/astro-starter/src/content/pages/index.md +125 -0
- package/dist/starters/astro-starter/src/content/pages/pricing.md +77 -0
- package/dist/starters/astro-starter/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-starter/src/content/pages/services.md +84 -0
- package/dist/starters/astro-starter/src/content/team/joe-whitlock.md +10 -0
- package/dist/starters/astro-starter/src/content/team/nell-okafor.md +12 -0
- package/dist/starters/astro-starter/src/content/team/priya-anand.md +7 -0
- package/dist/starters/astro-starter/src/content/team/tomas-reyes.md +10 -0
- package/dist/starters/astro-starter/src/content.config.ts +410 -0
- package/dist/starters/astro-starter/src/data/navigation.json +64 -0
- package/dist/starters/astro-starter/src/data/scripts.json +10 -0
- package/dist/starters/astro-starter/src/data/site.json +66 -0
- package/dist/starters/astro-starter/src/data/visibility.json +30 -0
- package/dist/starters/astro-starter/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-starter/src/galley/catalog.js +42 -0
- package/dist/starters/astro-starter/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-starter/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-starter/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-starter/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-starter/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-starter/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-starter/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-starter/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-starter/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-starter/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-starter/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-starter/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-starter/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-starter/src/galley/components/index.js +5 -0
- package/dist/starters/astro-starter/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-starter/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-starter/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-starter/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-starter/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-starter/src/galley/integration.js +21 -0
- package/dist/starters/astro-starter/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-starter/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-starter/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-starter/src/galley/schema.js +338 -0
- package/dist/starters/astro-starter/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-starter/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-starter/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-starter/src/galley/settings.json +18 -0
- package/dist/starters/astro-starter/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-starter/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-starter/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-starter/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-starter/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-starter/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-starter/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-starter/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-starter/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-starter/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-starter/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-starter/src/layouts/Base.astro +104 -0
- package/dist/starters/astro-starter/src/lib/posts.ts +43 -0
- package/dist/starters/astro-starter/src/lib/site.ts +201 -0
- package/dist/starters/astro-starter/src/pages/404.astro +13 -0
- package/dist/starters/astro-starter/src/pages/[...slug].astro +32 -0
- package/dist/starters/astro-starter/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-starter/src/pages/blog/[slug].astro +289 -0
- package/dist/starters/astro-starter/src/pages/blog/tags/[tag]/[...page].astro +82 -0
- package/dist/starters/astro-starter/src/styles/global.css +478 -0
- package/dist/starters/astro-starter/src/styles/kit.css +74 -0
- package/dist/starters/astro-starter/src/styles/themes/evening.css +135 -0
- package/dist/starters/astro-starter/src/styles/themes/lowfield.css +133 -0
- package/dist/starters/astro-starter/src/styles/themes/sage.css +134 -0
- package/dist/starters/astro-starter/src/styles/tokens.css +133 -0
- package/dist/starters/astro-starter/starter-notice.json +9 -0
- package/dist/starters/astro-starter/starter.json +52 -0
- package/dist/starters/astro-starter/tsconfig.json +8 -0
- package/dist/starters/astro-starter/wrangler.jsonc +12 -0
- package/dist/starters/astro-storefront/CONTENT-GUIDE.md +280 -0
- package/dist/starters/astro-storefront/LICENSE +21 -0
- package/dist/starters/astro-storefront/README.md +203 -0
- package/dist/starters/astro-storefront/astro.config.ts +50 -0
- package/dist/starters/astro-storefront/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-storefront/galley/photography/LOG.md +91 -0
- package/dist/starters/astro-storefront/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-storefront/galley/photography/shots.json +743 -0
- package/dist/starters/astro-storefront/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/night.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/collection-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/featured-product.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/film.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/form.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/product-rail.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/shop-the-look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/about.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/about.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/contact.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.md +21 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.md +40 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/story.md +49 -0
- package/dist/starters/astro-storefront/galley/templates/story.webp +0 -0
- package/dist/starters/astro-storefront/galley.config.json +752 -0
- package/dist/starters/astro-storefront/gitignore +26 -0
- package/dist/starters/astro-storefront/netlify.toml +6 -0
- package/dist/starters/astro-storefront/package.json +49 -0
- package/dist/starters/astro-storefront/public/favicon.svg +5 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/aw26-harbour-wall-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/ss26-plaster-steps-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-04-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-05-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-06-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-07-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-08-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/blanket-scarf-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/field-coat-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/gansey-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rib-polo-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rollneck-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-storefront/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rollneck.webp +0 -0
- package/dist/starters/astro-storefront/public/images/share.jpg +0 -0
- package/dist/starters/astro-storefront/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-storefront/scripts/gallery/gallery.astro +86 -0
- package/dist/starters/astro-storefront/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-storefront/scripts/gallery/sections.md +196 -0
- package/dist/starters/astro-storefront/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-storefront/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-storefront/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-storefront/scripts/make-sizes.mjs +31 -0
- package/dist/starters/astro-storefront/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-storefront/scripts/seed-shopify.mjs +208 -0
- package/dist/starters/astro-storefront/src/components/Actions.astro +31 -0
- package/dist/starters/astro-storefront/src/components/Footer.astro +206 -0
- package/dist/starters/astro-storefront/src/components/Header.astro +423 -0
- package/dist/starters/astro-storefront/src/components/Icon.astro +43 -0
- package/dist/starters/astro-storefront/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-storefront/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-storefront/src/components/Media.astro +37 -0
- package/dist/starters/astro-storefront/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-storefront/src/components/PieceList.astro +112 -0
- package/dist/starters/astro-storefront/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-storefront/src/components/PostList.astro +103 -0
- package/dist/starters/astro-storefront/src/components/Section.astro +47 -0
- package/dist/starters/astro-storefront/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-storefront/src/components/Sections.astro +89 -0
- package/dist/starters/astro-storefront/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-storefront/src/components/Tags.astro +68 -0
- package/dist/starters/astro-storefront/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-storefront/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-storefront/src/components/sections/CollectionGrid.astro +116 -0
- package/dist/starters/astro-storefront/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-storefront/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-storefront/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-storefront/src/components/sections/FeaturedProduct.astro +109 -0
- package/dist/starters/astro-storefront/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-storefront/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-storefront/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-storefront/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-storefront/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-storefront/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-storefront/src/components/sections/ProductRail.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-storefront/src/components/sections/ShopTheLook.astro +150 -0
- package/dist/starters/astro-storefront/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-storefront/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-storefront/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-storefront/src/components/shop/BagDrawer.astro +114 -0
- package/dist/starters/astro-storefront/src/components/shop/BagView.astro +241 -0
- package/dist/starters/astro-storefront/src/components/shop/Breadcrumbs.astro +63 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductCard.astro +142 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductGrid.astro +297 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductImage.astro +53 -0
- package/dist/starters/astro-storefront/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-storefront/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-storefront/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-storefront/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-storefront/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-storefront/src/content/pages/404.md +14 -0
- package/dist/starters/astro-storefront/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-storefront/src/content/pages/bag.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-storefront/src/content/pages/index.md +107 -0
- package/dist/starters/astro-storefront/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-storefront/src/content/pages/lookbook.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/privacy.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/search.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/shop.md +4 -0
- package/dist/starters/astro-storefront/src/content/pages/stockists.md +66 -0
- package/dist/starters/astro-storefront/src/content/products/car-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/products/field-coat.md +35 -0
- package/dist/starters/astro-storefront/src/content/products/gansey.md +20 -0
- package/dist/starters/astro-storefront/src/content/products/wrap-coat.md +16 -0
- package/dist/starters/astro-storefront/src/content.config.ts +563 -0
- package/dist/starters/astro-storefront/src/data/navigation.json +77 -0
- package/dist/starters/astro-storefront/src/data/scripts.json +29 -0
- package/dist/starters/astro-storefront/src/data/shop/catalogue.json +2431 -0
- package/dist/starters/astro-storefront/src/data/shop/store.json +7 -0
- package/dist/starters/astro-storefront/src/data/site.json +161 -0
- package/dist/starters/astro-storefront/src/data/stockists.json +81 -0
- package/dist/starters/astro-storefront/src/data/visibility.json +33 -0
- package/dist/starters/astro-storefront/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-storefront/src/galley/catalog.js +42 -0
- package/dist/starters/astro-storefront/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-storefront/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-storefront/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-storefront/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-storefront/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-storefront/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-storefront/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-storefront/src/galley/components/index.js +5 -0
- package/dist/starters/astro-storefront/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-storefront/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-storefront/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-storefront/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-storefront/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-storefront/src/galley/integration.js +21 -0
- package/dist/starters/astro-storefront/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-storefront/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-storefront/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-storefront/src/galley/schema.js +338 -0
- package/dist/starters/astro-storefront/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-storefront/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-storefront/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-storefront/src/galley/settings.json +18 -0
- package/dist/starters/astro-storefront/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-storefront/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-storefront/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-storefront/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-storefront/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-storefront/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-storefront/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-storefront/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-storefront/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-storefront/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-storefront/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-storefront/src/layouts/Base.astro +112 -0
- package/dist/starters/astro-storefront/src/lib/journal.ts +45 -0
- package/dist/starters/astro-storefront/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-storefront/src/lib/shop/data.ts +161 -0
- package/dist/starters/astro-storefront/src/lib/shop/loader.ts +30 -0
- package/dist/starters/astro-storefront/src/lib/shop/store.ts +332 -0
- package/dist/starters/astro-storefront/src/lib/shop/structured.ts +40 -0
- package/dist/starters/astro-storefront/src/lib/shop/types.ts +80 -0
- package/dist/starters/astro-storefront/src/lib/site.ts +181 -0
- package/dist/starters/astro-storefront/src/pages/404.astro +13 -0
- package/dist/starters/astro-storefront/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-storefront/src/pages/bag.astro +37 -0
- package/dist/starters/astro-storefront/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-storefront/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-storefront/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/[slug].astro +23 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/index.astro +66 -0
- package/dist/starters/astro-storefront/src/pages/products/[handle].astro +455 -0
- package/dist/starters/astro-storefront/src/pages/search.astro +137 -0
- package/dist/starters/astro-storefront/src/pages/search.json.ts +36 -0
- package/dist/starters/astro-storefront/src/pages/shop/[collection].astro +65 -0
- package/dist/starters/astro-storefront/src/pages/shop/index.astro +33 -0
- package/dist/starters/astro-storefront/src/scripts/shop.ts +742 -0
- package/dist/starters/astro-storefront/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-storefront/src/styles/global.css +662 -0
- package/dist/starters/astro-storefront/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-storefront/src/styles/tokens.css +181 -0
- package/dist/starters/astro-storefront/starter-notice.json +9 -0
- package/dist/starters/astro-storefront/starter.json +53 -0
- package/dist/starters/astro-storefront/tsconfig.json +8 -0
- package/dist/starters/astro-storefront/wrangler.jsonc +12 -0
- package/dist/web/assets/AppSettingsScreen-D9ZHXus9.js +1 -0
- package/dist/web/assets/BodyEditor-DAJ8MM41.js +1 -0
- package/dist/web/assets/BrandScreen-BuYHSbp6.js +1 -0
- package/dist/web/assets/CollectionScreen-DVXLw7MF.js +1 -0
- package/dist/web/assets/EditorScreen-8vhIBZu1.js +6 -0
- package/dist/web/assets/FormsScreen-BbngAAzO.js +4 -0
- package/dist/web/assets/HistoryScreen-CubZj8QG.js +4 -0
- package/dist/web/assets/ImportScreen-DA8mZ3-S.css +1 -0
- package/dist/web/assets/ImportScreen-eVAPjnE2.js +1 -0
- package/dist/web/assets/InboxScreen-Azqy6w4_.js +2 -0
- package/dist/web/assets/MediaLibraryPane-Dpcxede9.css +1 -0
- package/dist/web/assets/MediaLibraryPane-jMuqbnLa.js +1 -0
- package/dist/web/assets/MediaScreen-BQYVSf8P.css +1 -0
- package/dist/web/assets/MediaScreen-mg2CATkP.js +1 -0
- package/dist/web/assets/NewSiteScreen-D9zWX6oE.js +1 -0
- package/dist/web/assets/NewSiteScreen-RQ3ccqTf.css +1 -0
- package/dist/web/assets/Online-bYUu0ETZ.js +1 -0
- package/dist/web/assets/OpenScreen-DR1GhNWX.js +1 -0
- package/dist/web/assets/PluginsScreen-1qEv-u35.js +3 -0
- package/dist/web/assets/PreviewControls-Du87hOEG.js +1 -0
- package/dist/web/assets/PreviewPane-SH9rzgVw.css +1 -0
- package/dist/web/assets/PreviewPane-a06mELw4.js +3 -0
- package/dist/web/assets/ProofScreen-CZfFbHFS.js +7 -0
- package/dist/web/assets/ProofScreen-fG_mV-V4.css +1 -0
- package/dist/web/assets/ProviderSettings-BOiCGeSI.js +1 -0
- package/dist/web/assets/ProviderSettings-COu_e6Mx.css +1 -0
- package/dist/web/assets/PublishDialog-CSKU1lfx.js +3 -0
- package/dist/web/assets/ReachNote-CZYr1oL0.js +1 -0
- package/dist/web/assets/ReachNote-DhT9Cta-.css +1 -0
- package/dist/web/assets/RedirectsScreen-DeR_yuj5.js +3 -0
- package/dist/web/assets/RedirectsScreen-QTaAXMh-.css +1 -0
- package/dist/web/assets/ScriptsScreen-BXY-kqbq.js +2 -0
- package/dist/web/assets/ScriptsScreen-DMdmwkY4.css +1 -0
- package/dist/web/assets/SiteHomeScreen-DOrqAteL.js +1 -0
- package/dist/web/assets/SiteSettingsScreen-B8xQnhjd.js +4 -0
- package/dist/web/assets/SourceView-B5SoYjUF.js +1 -0
- package/dist/web/assets/VisibilityScreen-B4iOATC4.js +2 -0
- package/dist/web/assets/brand-BYux4UiC.css +1 -0
- package/dist/web/assets/changes-BtRtvJ12.js +1 -0
- package/dist/web/assets/changes-DLBkrfUR.js +1 -0
- package/dist/web/assets/chrome-Brnq5kGb.js +1 -0
- package/dist/web/assets/clickToEdit-CV1WT3k1.js +1 -0
- package/dist/web/assets/coalesce-BG8d12M7.js +1 -0
- package/dist/web/assets/codemirror-CWul2x0p.js +11 -0
- package/dist/web/assets/codemirror-g0T4-Tsm.js +1 -0
- package/dist/web/assets/codemirror-languages-RlWkzgfM.js +28 -0
- package/dist/web/assets/common-BA1skXL0.css +1 -0
- package/dist/web/assets/common-BdVEb5Zs.js +2 -0
- package/dist/web/assets/cost-BhkzE86J.js +1 -0
- package/dist/web/assets/events-CTTFdOf-.js +1 -0
- package/dist/web/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2 +0 -0
- package/dist/web/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/dist/web/assets/hashScroll-CSp59QpH.js +1 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/dist/web/assets/index-Djh-DSIT.js +10 -0
- package/dist/web/assets/index-Pd8oyXqS.css +1 -0
- package/dist/web/assets/jobs-BHawhnH2.js +1 -0
- package/dist/web/assets/listPlan-BXud7Oxv.js +1 -0
- package/dist/web/assets/marked.esm-CYtFtVHW.js +75 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-italic-CSPGnFdO.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-normal-BQn1nviT.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-italic-kJKFiXvB.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-normal-s-izfB6B.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-italic-DTr-ymY4.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-normal-BjhtXyW2.woff2 +0 -0
- package/dist/web/assets/outside-CZs19WbV.css +1 -0
- package/dist/web/assets/outside-DaBM5h5B.js +2 -0
- package/dist/web/assets/paths-C8ESZJVU.js +1 -0
- package/dist/web/assets/prefs-BcNyBxxO.js +1 -0
- package/dist/web/assets/proof-BnPD-0Jr.css +1 -0
- package/dist/web/assets/proof-zOrlMTSg.js +2 -0
- package/dist/web/assets/purify.es-BQJV6A36.js +3 -0
- package/dist/web/assets/renderMarkdown-R9_GwOSq.js +1 -0
- package/dist/web/assets/scaffold-BHkqc62J.js +1 -0
- package/dist/web/assets/site-DJUEXLHW.js +1 -0
- package/dist/web/assets/sites-CGDZymBT.js +1 -0
- package/dist/web/assets/store-C95UZPFo.js +1 -0
- package/dist/web/assets/ui-C6O2tW4c.js +3 -0
- package/dist/web/assets/useBrand-DSAfWS_y.js +1 -0
- package/dist/web/assets/usePlugins-acEOSN5a.js +1 -0
- package/dist/web/assets/usePlugins-hom8Btua.css +1 -0
- package/dist/web/assets/useVisibility-B8cm5WkO.css +1 -0
- package/dist/web/assets/useVisibility-kpZhLMTT.js +3 -0
- package/dist/web/index.html +23 -0
- package/dist/web/theme.js +8 -0
- package/package.json +49 -3
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
// Vendored from @galley/astro 0.1.0 by scripts/vendor.mjs. Don't edit: run the script again to update.
|
|
2
|
+
// @ts-check
|
|
3
|
+
// The whole agent-readable output of a site, from its rendered pages: which
|
|
4
|
+
// pages count, each page's markdown twin and the tags its <head> gains, and
|
|
5
|
+
// the site-wide files — llms.txt, llms-full.txt, agent.md, robots.txt and
|
|
6
|
+
// sitemap.xml. Pure: the same pages and settings always give the same bytes,
|
|
7
|
+
// whether they come from a build's output folder or a running dev server.
|
|
8
|
+
//
|
|
9
|
+
// Addresses (every one under the site's base path):
|
|
10
|
+
// a page /about/ its twin /about.md
|
|
11
|
+
// the home page / its twin /index.md
|
|
12
|
+
// a file-style page /about.html its twin /about.md
|
|
13
|
+
// — the llms.txt proposal's "the page's address with .md" for pages without
|
|
14
|
+
// a trailing slash, and its "index.md" form for the home page. A twin is a
|
|
15
|
+
// plain file next to the page's folder, so it works on any static host,
|
|
16
|
+
// under any sub-path, with no rewrite rules.
|
|
17
|
+
|
|
18
|
+
import { matchGlob } from "../shared/glob.js";
|
|
19
|
+
import { AI_CRAWLERS, aiCrawler, PURPOSE_NOTES } from "./crawlers.js";
|
|
20
|
+
import { patternGlob } from "./content.js";
|
|
21
|
+
import { articleLd, breadcrumbLd, jsonLdTag, organizationLd, websiteLd } from "./structured.js";
|
|
22
|
+
|
|
23
|
+
/** @typedef {import("./page.js").PageFacts} PageFacts */
|
|
24
|
+
/** @typedef {import("./config.js").VisibilitySettings} VisibilitySettings */
|
|
25
|
+
|
|
26
|
+
/** llms.txt lists at most this many pages; the rest are in the sitemap. */
|
|
27
|
+
export const MAX_LLMS_LINKS = 2000;
|
|
28
|
+
/** The sitemaps protocol's limit per file. */
|
|
29
|
+
export const MAX_SITEMAP_URLS = 50_000;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @typedef {object} SiteInput
|
|
33
|
+
* @property {PageFacts[]} pages Every rendered page.
|
|
34
|
+
* @property {VisibilitySettings} settings
|
|
35
|
+
* @property {string} origin "https://www.example.com", or "" when the site has no `site` address.
|
|
36
|
+
* @property {string} base The base path without a trailing slash ("" or "/demo").
|
|
37
|
+
* @property {{ robots: string | null; sitemap: string | null; llmsTxt: boolean; llmsFullTxt: boolean; agentPage: boolean }} own
|
|
38
|
+
* What the site already publishes itself (the kit then leaves it alone). `robots` / `sitemap`: the file's name, or null.
|
|
39
|
+
* @property {string[]} [drafts] Addresses (without the base) of draft entries.
|
|
40
|
+
* @property {Record<string, string>} [dates] Address (without the base) → its content entry's date, for pages whose HTML states none.
|
|
41
|
+
* @property {Record<string, string>} [patterns] Collection id → address pattern ("/blog/{slug}/").
|
|
42
|
+
* @property {string} [fallbackName] The site's name when no page states one (galley.config.json).
|
|
43
|
+
* @property {(path: string) => boolean} [fileExists] Whether the site serves a file (for the logo).
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @typedef {object} SitePlan
|
|
48
|
+
* @property {Map<string, string>} head page path → HTML to add before </head>.
|
|
49
|
+
* @property {Record<string, string>} files File path under the output folder → text.
|
|
50
|
+
* @property {Record<string, string>} types File path → content type, for a server.
|
|
51
|
+
* @property {string[]} notes What the build log says.
|
|
52
|
+
* @property {{ pages: number; listed: number; twins: number; structured: number; sitemap: number; llmsLinks: number; fullBytes: number; fullTruncated: boolean }} counts
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* "/demo/about/" → "/demo/about.md"; the home page "/demo/" → "/demo/index.md".
|
|
57
|
+
*
|
|
58
|
+
* @param {string} path The page's address, with the base.
|
|
59
|
+
* @param {string} [base] The base path ("" or "/demo"), to know the home page.
|
|
60
|
+
*/
|
|
61
|
+
export function twinPath(path, base = "") {
|
|
62
|
+
const clean = path.split(/[?#]/)[0] ?? "/";
|
|
63
|
+
|
|
64
|
+
if (clean === "/" || clean === `${base}/`) return `${clean}index.md`;
|
|
65
|
+
if (clean.endsWith("/")) return `${clean.slice(0, -1)}.md`;
|
|
66
|
+
if (/\/index\.html?$/.test(clean)) return clean.replace(/\/index\.html?$/, "/index.md");
|
|
67
|
+
return `${clean.replace(/\.html?$/, "")}.md`;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** The page addresses a twin address can belong to, most likely first. */
|
|
71
|
+
export function pagesForTwin(/** @type {string} */ path, /** @type {string} */ base) {
|
|
72
|
+
if (!path.endsWith(".md")) return [];
|
|
73
|
+
const bare = path.slice(0, -3);
|
|
74
|
+
|
|
75
|
+
if (bare === `${base}/index`) return [`${base}/`];
|
|
76
|
+
if (bare.endsWith("/index")) return [`${bare.slice(0, -"index".length)}`, `${bare}/`];
|
|
77
|
+
return [`${bare}/`, bare, `${bare}.html`];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** "/about" and "/about/" as one key. */
|
|
81
|
+
export function pathKey(/** @type {string} */ path) {
|
|
82
|
+
const bare = (path.split(/[?#]/)[0] ?? "").replace(/\/index\.html?$/, "/").replace(/\.html?$/, "");
|
|
83
|
+
|
|
84
|
+
return bare === "/" || bare === "" ? "/" : bare.replace(/\/+$/, "");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** The page's address on the site without the base: "/demo/about/" → "/about/". */
|
|
88
|
+
export function sitePath(/** @type {string} */ path, /** @type {string} */ base) {
|
|
89
|
+
if (!base) return path;
|
|
90
|
+
if (path === base) return "/";
|
|
91
|
+
return path.startsWith(`${base}/`) ? path.slice(base.length) : path;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const SPECIAL = /^\/(404|500)(\/|\.html)?$/;
|
|
95
|
+
|
|
96
|
+
/** @param {string} value */
|
|
97
|
+
const yaml = (value) => JSON.stringify(value);
|
|
98
|
+
/** @param {string} value */
|
|
99
|
+
const xml = (value) => value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
100
|
+
/** One line of text for a list: no line breaks. */
|
|
101
|
+
const oneLine = (/** @type {string} */ value) => value.replace(/\s+/g, " ").trim();
|
|
102
|
+
/** Link text for llms.txt: brackets would end the link early. */
|
|
103
|
+
const linkText = (/** @type {string} */ value) => oneLine(value).replace(/([[\]\\])/g, "\\$1");
|
|
104
|
+
|
|
105
|
+
/** @param {string} value */
|
|
106
|
+
function dateOnly(value) {
|
|
107
|
+
const time = Date.parse(value);
|
|
108
|
+
|
|
109
|
+
return Number.isFinite(time) ? new Date(time).toISOString().slice(0, 10) : "";
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** "release-notes" → "Release notes". */
|
|
113
|
+
function humanize(/** @type {string} */ segment) {
|
|
114
|
+
const words = decodeURIComponent(segment).replace(/[-_]+/g, " ").trim();
|
|
115
|
+
|
|
116
|
+
return words ? words.charAt(0).toUpperCase() + words.slice(1) : segment;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Whether a robots rule path (with `*` and `$`) matches an address.
|
|
121
|
+
*
|
|
122
|
+
* @param {string} rule
|
|
123
|
+
* @param {string} path
|
|
124
|
+
*/
|
|
125
|
+
function robotsMatch(rule, path) {
|
|
126
|
+
const anchored = rule.endsWith("$");
|
|
127
|
+
const body = anchored ? rule.slice(0, -1) : rule;
|
|
128
|
+
const source = body
|
|
129
|
+
.split("*")
|
|
130
|
+
.map((part) => part.replace(/[.+?^${}()|[\]\\]/g, "\\$&"))
|
|
131
|
+
.join(".*");
|
|
132
|
+
|
|
133
|
+
return new RegExp(`^${source}${anchored ? "$" : ""}`).test(path);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Whether the site-wide rules let crawlers fetch an address: the longest
|
|
138
|
+
* matching rule wins, and Allow wins a tie (RFC 9309, section 2.2.2).
|
|
139
|
+
*
|
|
140
|
+
* @param {{ disallow: string[]; allow: string[] }} rules
|
|
141
|
+
* @param {string} path
|
|
142
|
+
*/
|
|
143
|
+
export function robotsAllows(rules, path) {
|
|
144
|
+
let best = { allow: true, length: -1 };
|
|
145
|
+
|
|
146
|
+
for (const [allow, list] of /** @type {[boolean, string[]][]} */ ([[false, rules.disallow], [true, rules.allow]])) {
|
|
147
|
+
for (const rule of list) {
|
|
148
|
+
if (!robotsMatch(rule, path)) continue;
|
|
149
|
+
if (rule.length > best.length || (rule.length === best.length && allow)) best = { allow, length: rule.length };
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return best.allow;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @param {SiteInput} input
|
|
157
|
+
* @returns {SitePlan}
|
|
158
|
+
*/
|
|
159
|
+
export function planSite(input) {
|
|
160
|
+
const { settings, origin, base, own } = input;
|
|
161
|
+
const agent = settings.agentReadable;
|
|
162
|
+
const notes = /** @type {string[]} */ ([]);
|
|
163
|
+
const abs = (/** @type {string} */ path) => (origin ? `${origin}${path}` : path);
|
|
164
|
+
const home = input.pages.find((page) => pathKey(sitePath(page.path, base)) === "/");
|
|
165
|
+
const drafts = new Set((input.drafts ?? []).map(pathKey));
|
|
166
|
+
const siteName = settings.site.name || home?.siteName || input.fallbackName || home?.name || (origin ? new URL(origin).hostname : "This site");
|
|
167
|
+
const summary = oneLine(settings.site.summary || home?.description || "");
|
|
168
|
+
const rootUrl = abs(`${base}/`);
|
|
169
|
+
// A page the kit's own robots.txt asks every crawler to stay away from isn't listed for them either.
|
|
170
|
+
const disallowed = (/** @type {string} */ path) => settings.robots.enabled && !own.robots && !robotsAllows(settings.robots, sitePath(path, base));
|
|
171
|
+
|
|
172
|
+
// ── Which pages count ────────────────────────────────────────────────
|
|
173
|
+
/** @param {PageFacts} page */
|
|
174
|
+
const listed = (page) => {
|
|
175
|
+
const local = sitePath(page.path, base);
|
|
176
|
+
|
|
177
|
+
if (page.noindex || page.redirect || SPECIAL.test(local) || drafts.has(pathKey(local)) || disallowed(page.path)) return false;
|
|
178
|
+
// A page whose canonical address is another page is a copy of that page.
|
|
179
|
+
if (page.canonical) {
|
|
180
|
+
try {
|
|
181
|
+
if (pathKey(new URL(page.canonical).pathname) !== pathKey(page.path)) return false;
|
|
182
|
+
} catch {
|
|
183
|
+
return false;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return true;
|
|
187
|
+
};
|
|
188
|
+
// A page that states no date of its own takes its content entry's, when it has one.
|
|
189
|
+
const dated = new Map(Object.entries(input.dates ?? {}).map(([path, date]) => [pathKey(path), date]));
|
|
190
|
+
const pages = [...input.pages]
|
|
191
|
+
.map((page) => {
|
|
192
|
+
const date = page.published ? "" : dated.get(pathKey(sitePath(page.path, base)));
|
|
193
|
+
|
|
194
|
+
return date ? { ...page, published: date } : page;
|
|
195
|
+
})
|
|
196
|
+
.sort((a, b) => (a.path < b.path ? -1 : a.path > b.path ? 1 : 0));
|
|
197
|
+
const counted = pages.filter(listed);
|
|
198
|
+
const byKey = new Map(counted.map((page) => [pathKey(page.path), page]));
|
|
199
|
+
const twinned = agent.markdownTwins ? counted.filter((page) => page.markdown && !agent.exclude.some((glob) => matchGlob(sitePath(page.path, base), glob))) : [];
|
|
200
|
+
/** @type {Record<string, string>} */
|
|
201
|
+
const files = {};
|
|
202
|
+
/** @type {Record<string, string>} */
|
|
203
|
+
const types = {};
|
|
204
|
+
const twinOf = new Map(/** @type {[string, string][]} */ ([]));
|
|
205
|
+
const fileFor = (/** @type {string} */ path) => sitePath(path, base).replace(/^\/+/, "");
|
|
206
|
+
|
|
207
|
+
// ── Twins ────────────────────────────────────────────────────────────
|
|
208
|
+
for (const page of twinned) {
|
|
209
|
+
const path = twinPath(page.path, base);
|
|
210
|
+
const file = fileFor(path);
|
|
211
|
+
|
|
212
|
+
if (files[file] !== undefined) {
|
|
213
|
+
notes.push(`${path} would be the markdown version of two pages; only ${twinOf.get(file) ?? "the first"} got it.`);
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
files[file] = twinText(page, page.canonical ?? page.url);
|
|
217
|
+
types[file] = "text/markdown; charset=utf-8";
|
|
218
|
+
twinOf.set(file, page.path);
|
|
219
|
+
}
|
|
220
|
+
const hasTwin = (/** @type {PageFacts} */ page) => twinOf.get(fileFor(twinPath(page.path, base))) === page.path;
|
|
221
|
+
|
|
222
|
+
// ── Structured data and the <head> link ─────────────────────────────
|
|
223
|
+
const sd = settings.structuredData;
|
|
224
|
+
const subPath = Boolean(base);
|
|
225
|
+
const scopes = articleScopes(sd.articles, input.patterns ?? {});
|
|
226
|
+
/** @type {Map<string, string>} */
|
|
227
|
+
const head = new Map();
|
|
228
|
+
let structured = 0;
|
|
229
|
+
const logo = sd.organization && sd.organization.logo ? resolveLogo(sd.organization.logo, base, origin, input.fileExists, notes) : "";
|
|
230
|
+
|
|
231
|
+
if (!origin && (sd.website || sd.organization || sd.articles || sd.breadcrumbs)) notes.push("Structured data needs full addresses: set `site` in astro.config (e.g. site: \"https://www.example.com\") to add it.");
|
|
232
|
+
for (const page of counted) {
|
|
233
|
+
const local = sitePath(page.path, base);
|
|
234
|
+
const tags = [];
|
|
235
|
+
const has = (/** @type {RegExp} */ type) => page.jsonldTypes.some((name) => type.test(name));
|
|
236
|
+
|
|
237
|
+
if (hasTwin(page)) tags.push(`<link rel="alternate" type="text/markdown" href="${xml(twinPath(page.path, base))}">`);
|
|
238
|
+
if (origin) {
|
|
239
|
+
if (pathKey(local) === "/") {
|
|
240
|
+
const website = sd.website && !has(/^WebSite$/) ? websiteLd({ name: siteName, url: rootUrl, subPath }) : null;
|
|
241
|
+
const org = sd.organization && !has(/Organization$|^Corporation$|LocalBusiness|^Store$|^Restaurant$/)
|
|
242
|
+
? organizationLd({ name: sd.organization.name || siteName, url: rootUrl, logo, sameAs: sd.organization.sameAs, email: sd.organization.email, telephone: sd.organization.telephone })
|
|
243
|
+
: null;
|
|
244
|
+
|
|
245
|
+
if (website) tags.push(jsonLdTag(website));
|
|
246
|
+
if (org) tags.push(jsonLdTag(org));
|
|
247
|
+
}
|
|
248
|
+
const scope = scopes(local, page);
|
|
249
|
+
|
|
250
|
+
if (scope && !has(/^(Article|BlogPosting|NewsArticle|TechArticle|Report|ScholarlyArticle)$/)) {
|
|
251
|
+
const article = articleLd(page, { type: scope, siteImage: home && home !== page ? home.image : "" });
|
|
252
|
+
|
|
253
|
+
if (article) tags.push(jsonLdTag(article));
|
|
254
|
+
}
|
|
255
|
+
const segments = local.split("/").filter(Boolean);
|
|
256
|
+
|
|
257
|
+
if (sd.breadcrumbs && segments.length >= 2 && !has(/^BreadcrumbList$/)) {
|
|
258
|
+
// From the home page (named for the site) down to the page itself, through every level that is a page.
|
|
259
|
+
const homePage = byKey.get(pathKey(`${base}/`));
|
|
260
|
+
/** @type {{ name: string; url: string }[]} */
|
|
261
|
+
const trail = homePage ? [{ name: oneLine(siteName), url: homePage.canonical ?? homePage.url }] : [];
|
|
262
|
+
|
|
263
|
+
for (let depth = 1; depth < segments.length; depth += 1) {
|
|
264
|
+
const parent = byKey.get(pathKey(`${base}/${segments.slice(0, depth).join("/")}/`));
|
|
265
|
+
|
|
266
|
+
if (parent) trail.push({ name: oneLine(parent.name), url: parent.canonical ?? parent.url });
|
|
267
|
+
}
|
|
268
|
+
trail.push({ name: oneLine(page.name), url: page.canonical ?? page.url });
|
|
269
|
+
const crumbs = breadcrumbLd(trail);
|
|
270
|
+
|
|
271
|
+
if (crumbs) tags.push(jsonLdTag(crumbs));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
if (tags.length) {
|
|
275
|
+
head.set(page.path, tags.join(""));
|
|
276
|
+
if (tags.length > (hasTwin(page) ? 1 : 0)) structured += 1;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// ── llms.txt and llms-full.txt ──────────────────────────────────────
|
|
281
|
+
const entries = (agent.markdownTwins ? twinned.filter(hasTwin) : counted).filter((page) => !agent.exclude.some((glob) => matchGlob(sitePath(page.path, base), glob)));
|
|
282
|
+
const linkFor = (/** @type {PageFacts} */ page) => (hasTwin(page) ? abs(twinPath(page.path, base)) : page.canonical ?? page.url);
|
|
283
|
+
const sections = groupPages(entries, base, byKey, (page) => agent.optional.some((glob) => matchGlob(sitePath(page.path, base), glob)));
|
|
284
|
+
let llmsLinks = 0;
|
|
285
|
+
let fullBytes = 0;
|
|
286
|
+
let fullTruncated = false;
|
|
287
|
+
const writeLlms = agent.llmsTxt && !own.llmsTxt;
|
|
288
|
+
const writeFull = agent.llmsFullTxt && !own.llmsFullTxt;
|
|
289
|
+
const writeAgent = agent.agentPage && !own.agentPage && !files["agent.md"];
|
|
290
|
+
|
|
291
|
+
if (own.llmsTxt && agent.llmsTxt) notes.push("llms.txt: the site publishes its own; left as it is.");
|
|
292
|
+
if (writeLlms) {
|
|
293
|
+
const lines = [`# ${oneLine(siteName)}`, ""];
|
|
294
|
+
|
|
295
|
+
if (summary) lines.push(`> ${summary}`, "");
|
|
296
|
+
const intro = [
|
|
297
|
+
agent.markdownTwins ? `Each page below is linked to its markdown version: the page's own text, with no scripts or layout.` : "",
|
|
298
|
+
writeFull ? `Everything in one file: ${abs(`${base}/llms-full.txt`)}.` : "",
|
|
299
|
+
writeAgent ? `How to use and cite this site: ${abs(`${base}/agent.md`)}.` : "",
|
|
300
|
+
].filter(Boolean);
|
|
301
|
+
|
|
302
|
+
if (intro.length) lines.push(intro.join(" "), "");
|
|
303
|
+
let remaining = MAX_LLMS_LINKS;
|
|
304
|
+
let left = 0;
|
|
305
|
+
|
|
306
|
+
for (const section of sections) {
|
|
307
|
+
const shown = section.pages.slice(0, Math.max(0, remaining));
|
|
308
|
+
|
|
309
|
+
left += section.pages.length - shown.length;
|
|
310
|
+
remaining -= shown.length;
|
|
311
|
+
if (!shown.length) continue;
|
|
312
|
+
lines.push(`## ${section.title}`, "");
|
|
313
|
+
for (const page of shown) lines.push(`- [${linkText(page.name || page.path)}](${linkFor(page)})${page.description ? `: ${oneLine(page.description)}` : ""}`);
|
|
314
|
+
lines.push("");
|
|
315
|
+
llmsLinks += shown.length;
|
|
316
|
+
}
|
|
317
|
+
if (left > 0) lines.push(`${left} more pages are listed in the sitemap: ${abs(`${base}/sitemap.xml`)}.`, "");
|
|
318
|
+
files["llms.txt"] = `${lines.join("\n").replace(/\n+$/, "")}\n`;
|
|
319
|
+
types["llms.txt"] = "text/plain; charset=utf-8";
|
|
320
|
+
}
|
|
321
|
+
if (own.llmsFullTxt && agent.llmsFullTxt) notes.push("llms-full.txt: the site publishes its own; left as it is.");
|
|
322
|
+
if (writeFull) {
|
|
323
|
+
const encoder = new TextEncoder();
|
|
324
|
+
const headText = `# ${oneLine(siteName)}\n\n${summary ? `> ${summary}\n\n` : ""}Every page of ${rootUrl}${agent.markdownTwins ? " as markdown" : ""}, one after another. The list of pages is ${abs(`${base}/llms.txt`)}.\n`;
|
|
325
|
+
const parts = [headText];
|
|
326
|
+
let size = encoder.encode(headText).length;
|
|
327
|
+
const ordered = sections.flatMap((section) => section.pages);
|
|
328
|
+
let index = 0;
|
|
329
|
+
|
|
330
|
+
for (; index < ordered.length; index += 1) {
|
|
331
|
+
const page = /** @type {PageFacts} */ (ordered[index]);
|
|
332
|
+
const body = `\n---\n\nSource: ${page.canonical ?? page.url}\n\n${pageBody(page)}\n`;
|
|
333
|
+
const bytes = encoder.encode(body).length;
|
|
334
|
+
|
|
335
|
+
if (size + bytes > agent.fullMaxBytes - 400) break;
|
|
336
|
+
parts.push(body);
|
|
337
|
+
size += bytes;
|
|
338
|
+
}
|
|
339
|
+
if (index < ordered.length) {
|
|
340
|
+
fullTruncated = true;
|
|
341
|
+
const left = ordered.length - index;
|
|
342
|
+
|
|
343
|
+
parts.push(`\n---\n\nThis file stops here: it reached its size limit of ${agent.fullMaxBytes.toLocaleString("en-US")} bytes. ${left} more ${left === 1 ? "page is" : "pages are"} listed in ${abs(`${base}/llms.txt`)}, each with its own markdown version.\n`);
|
|
344
|
+
}
|
|
345
|
+
files["llms-full.txt"] = parts.join("");
|
|
346
|
+
types["llms-full.txt"] = "text/plain; charset=utf-8";
|
|
347
|
+
fullBytes = encoder.encode(files["llms-full.txt"]).length;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// ── sitemap.xml ─────────────────────────────────────────────────────
|
|
351
|
+
const sitemapPages = settings.sitemap.enabled ? counted.filter((page) => !settings.sitemap.exclude.some((glob) => matchGlob(sitePath(page.path, base), glob))) : [];
|
|
352
|
+
const writeSitemap = settings.sitemap.enabled && !own.sitemap && Boolean(origin);
|
|
353
|
+
|
|
354
|
+
if (settings.sitemap.enabled && own.sitemap) notes.push(`${own.sitemap}: the site writes its own sitemap; left as it is.`);
|
|
355
|
+
if (settings.sitemap.enabled && !own.sitemap && !origin) notes.push("sitemap.xml needs full addresses: set `site` in astro.config to have one written.");
|
|
356
|
+
if (writeSitemap) {
|
|
357
|
+
const url = (/** @type {PageFacts} */ page) => {
|
|
358
|
+
const lastmod = settings.sitemap.lastmod === "content" ? dateOnly(page.modified || page.published) : "";
|
|
359
|
+
|
|
360
|
+
return ` <url><loc>${xml(page.canonical ?? page.url)}</loc>${lastmod ? `<lastmod>${lastmod}</lastmod>` : ""}</url>`;
|
|
361
|
+
};
|
|
362
|
+
const urlset = (/** @type {PageFacts[]} */ list) => ['<?xml version="1.0" encoding="UTF-8"?>', '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">', ...list.map(url), "</urlset>", ""].join("\n");
|
|
363
|
+
|
|
364
|
+
if (sitemapPages.length <= MAX_SITEMAP_URLS) files["sitemap.xml"] = urlset(sitemapPages);
|
|
365
|
+
else {
|
|
366
|
+
const names = [];
|
|
367
|
+
|
|
368
|
+
for (let start = 0, part = 1; start < sitemapPages.length; start += MAX_SITEMAP_URLS, part += 1) {
|
|
369
|
+
const name = `sitemap-${part}.xml`;
|
|
370
|
+
|
|
371
|
+
files[name] = urlset(sitemapPages.slice(start, start + MAX_SITEMAP_URLS));
|
|
372
|
+
types[name] = "application/xml; charset=utf-8";
|
|
373
|
+
names.push(name);
|
|
374
|
+
}
|
|
375
|
+
files["sitemap.xml"] = ['<?xml version="1.0" encoding="UTF-8"?>', '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">', ...names.map((name) => ` <sitemap><loc>${xml(abs(`${base}/${name}`))}</loc></sitemap>`), "</sitemapindex>", ""].join("\n");
|
|
376
|
+
}
|
|
377
|
+
types["sitemap.xml"] = "application/xml; charset=utf-8";
|
|
378
|
+
}
|
|
379
|
+
const sitemapUrl = own.sitemap ? abs(`${base}/${own.sitemap}`) : writeSitemap ? abs(`${base}/sitemap.xml`) : "";
|
|
380
|
+
|
|
381
|
+
// ── robots.txt ──────────────────────────────────────────────────────
|
|
382
|
+
if (settings.robots.enabled && own.robots) {
|
|
383
|
+
notes.push(`robots.txt: the site writes its own (${own.robots}); left as it is.${Object.keys(settings.crawlers).length ? " The crawler choices in the visibility file are not applied: remove the site's own robots.txt to let the kit write them." : ""}`);
|
|
384
|
+
}
|
|
385
|
+
if (settings.robots.enabled && !own.robots) {
|
|
386
|
+
files["robots.txt"] = robotsText({ settings, base, sitemap: origin ? sitemapUrl : "" });
|
|
387
|
+
types["robots.txt"] = "text/plain; charset=utf-8";
|
|
388
|
+
if (base) notes.push(`robots.txt is written for ${base}/, but crawlers only read the one at the root of the host; copy its rules there if this site is served under a sub-path.`);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// ── agent.md ────────────────────────────────────────────────────────
|
|
392
|
+
if (agent.agentPage && (own.agentPage || files["agent.md"] !== undefined)) notes.push("agent.md: the site has a page of its own at that address; left as it is.");
|
|
393
|
+
if (writeAgent) {
|
|
394
|
+
files["agent.md"] = agentText({ siteName, summary, rootUrl, base, abs, home, settings, has: { llms: writeLlms || own.llmsTxt, full: writeFull || own.llmsFullTxt, twins: twinOf.size > 0, robots: Boolean(files["robots.txt"] || own.robots), sitemap: sitemapUrl }, contactPage: byKey.get(pathKey(`${base}/contact/`)), example: twinned.find((page) => hasTwin(page) && pathKey(sitePath(page.path, base)) !== "/" && page.path.endsWith("/")) });
|
|
395
|
+
types["agent.md"] = "text/markdown; charset=utf-8";
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
return {
|
|
399
|
+
head,
|
|
400
|
+
files,
|
|
401
|
+
types,
|
|
402
|
+
notes,
|
|
403
|
+
counts: { pages: input.pages.length, listed: counted.length, twins: twinOf.size, structured, sitemap: writeSitemap ? sitemapPages.length : 0, llmsLinks, fullBytes, fullTruncated },
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/** The twin's body without its front matter: the page's heading first. */
|
|
408
|
+
function pageBody(/** @type {PageFacts} */ page) {
|
|
409
|
+
return page.hasH1 || !page.name ? page.markdown : `# ${page.name}\n\n${page.markdown}`;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/** A page's markdown twin: front matter, then its content. */
|
|
413
|
+
export function twinText(/** @type {PageFacts} */ page, /** @type {string} */ canonical) {
|
|
414
|
+
const front = [`title: ${yaml(page.name || page.title)}`];
|
|
415
|
+
|
|
416
|
+
if (page.description) front.push(`description: ${yaml(page.description)}`);
|
|
417
|
+
front.push(`canonical: ${yaml(canonical)}`);
|
|
418
|
+
if (page.lang) front.push(`language: ${yaml(page.lang)}`);
|
|
419
|
+
if (page.published && Number.isFinite(Date.parse(page.published))) front.push(`published: ${yaml(page.published)}`);
|
|
420
|
+
if (page.modified && Number.isFinite(Date.parse(page.modified))) front.push(`last_modified: ${yaml(page.modified)}`);
|
|
421
|
+
return `---\n${front.join("\n")}\n---\n\n${pageBody(page)}\n`;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Pages in llms.txt sections: "Pages" (the home page and pages one level
|
|
426
|
+
* deep that have nothing under them), one section per first segment with
|
|
427
|
+
* more than one page (its index page first, then newest first), and
|
|
428
|
+
* "Optional" for what the settings mark secondary.
|
|
429
|
+
*
|
|
430
|
+
* @param {PageFacts[]} pages
|
|
431
|
+
* @param {string} base
|
|
432
|
+
* @param {Map<string, PageFacts>} byKey
|
|
433
|
+
* @param {(page: PageFacts) => boolean} optional
|
|
434
|
+
* @returns {{ title: string; pages: PageFacts[] }[]}
|
|
435
|
+
*/
|
|
436
|
+
function groupPages(pages, base, byKey, optional) {
|
|
437
|
+
/** @type {Map<string, PageFacts[]>} */
|
|
438
|
+
const groups = new Map();
|
|
439
|
+
const secondary = [];
|
|
440
|
+
|
|
441
|
+
for (const page of pages) {
|
|
442
|
+
if (optional(page)) {
|
|
443
|
+
secondary.push(page);
|
|
444
|
+
continue;
|
|
445
|
+
}
|
|
446
|
+
const segment = sitePath(page.path, base).split("/").filter(Boolean)[0] ?? "";
|
|
447
|
+
|
|
448
|
+
(groups.get(segment) ?? groups.set(segment, []).get(segment) ?? []).push(page);
|
|
449
|
+
}
|
|
450
|
+
const main = /** @type {PageFacts[]} */ ([]);
|
|
451
|
+
/** @type {{ title: string; pages: PageFacts[] }[]} */
|
|
452
|
+
const sections = [];
|
|
453
|
+
const newest = (/** @type {PageFacts} */ a, /** @type {PageFacts} */ b) => {
|
|
454
|
+
const da = Date.parse(a.published) || 0;
|
|
455
|
+
const db = Date.parse(b.published) || 0;
|
|
456
|
+
|
|
457
|
+
return db - da || (a.path < b.path ? -1 : a.path > b.path ? 1 : 0);
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
for (const [segment, list] of [...groups.entries()].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))) {
|
|
461
|
+
if (segment === "" || list.length === 1) {
|
|
462
|
+
main.push(...list);
|
|
463
|
+
continue;
|
|
464
|
+
}
|
|
465
|
+
const indexKey = pathKey(`${base}/${segment}/`);
|
|
466
|
+
const index = list.filter((page) => pathKey(page.path) === indexKey);
|
|
467
|
+
const rest = list.filter((page) => pathKey(page.path) !== indexKey).sort(newest);
|
|
468
|
+
|
|
469
|
+
sections.push({ title: oneLine(byKey.get(indexKey)?.name || humanize(segment)), pages: [...index, ...rest] });
|
|
470
|
+
}
|
|
471
|
+
main.sort((a, b) => (pathKey(sitePath(a.path, base)) === "/" ? -1 : pathKey(sitePath(b.path, base)) === "/" ? 1 : a.path < b.path ? -1 : 1));
|
|
472
|
+
return [...(main.length ? [{ title: "Pages", pages: main }] : []), ...sections, ...(secondary.length ? [{ title: "Optional", pages: secondary }] : [])];
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Which pages are articles, and of what type: the named collections (by
|
|
477
|
+
* their address pattern) or address globs; "auto" means pages that say they
|
|
478
|
+
* are articles (og:type "article").
|
|
479
|
+
*
|
|
480
|
+
* @param {"auto" | false | string[]} articles
|
|
481
|
+
* @param {Record<string, string>} patterns
|
|
482
|
+
* @returns {(path: string, page: PageFacts) => "Article" | "BlogPosting" | null}
|
|
483
|
+
*/
|
|
484
|
+
function articleScopes(articles, patterns) {
|
|
485
|
+
/** @type {(name: string) => "Article" | "BlogPosting"} */
|
|
486
|
+
const typeFor = (name) => (/(^|\/)(blog|posts?|journal)(\/|$|\*)/i.test(name) ? "BlogPosting" : "Article");
|
|
487
|
+
|
|
488
|
+
if (articles === false) return () => null;
|
|
489
|
+
if (articles === "auto") return (path, page) => (page.type === "article" ? typeFor(path.split("/").filter(Boolean)[0] ?? "") : null);
|
|
490
|
+
const globs = articles.map((item) => (item.startsWith("/") ? { glob: item, type: typeFor(item) } : { glob: patternGlob(patterns[item] ?? `/${item}/{slug}/`), type: typeFor(item) }));
|
|
491
|
+
|
|
492
|
+
return (path) => globs.find((entry) => matchGlob(path, entry.glob))?.type ?? null;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/** The logo's full address, when its file is really there. */
|
|
496
|
+
function resolveLogo(/** @type {string} */ logo, /** @type {string} */ base, /** @type {string} */ origin, /** @type {((path: string) => boolean) | undefined} */ exists, /** @type {string[]} */ notes) {
|
|
497
|
+
if (/^https?:\/\//i.test(logo)) return logo;
|
|
498
|
+
if (!origin) return "";
|
|
499
|
+
if (exists && !exists(logo)) {
|
|
500
|
+
notes.push(`structuredData.organization.logo: ${logo} isn't among the site's files, so the logo was left out.`);
|
|
501
|
+
return "";
|
|
502
|
+
}
|
|
503
|
+
return `${origin}${base}${logo}`;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* robots.txt from the settings: the site-wide rules for every crawler, then
|
|
508
|
+
* one group per AI crawler the settings name. A crawler with a group of its
|
|
509
|
+
* own ignores the `*` group (RFC 9309), so an allowed crawler's group
|
|
510
|
+
* repeats the site-wide rules rather than lifting them.
|
|
511
|
+
*
|
|
512
|
+
* @param {{ settings: VisibilitySettings; base: string; sitemap: string }} input
|
|
513
|
+
*/
|
|
514
|
+
export function robotsText({ settings, base, sitemap }) {
|
|
515
|
+
const rules = [...settings.robots.disallow.map((path) => `Disallow: ${base}${path}`), ...settings.robots.allow.map((path) => `Allow: ${base}${path}`)];
|
|
516
|
+
const siteWide = rules.length ? rules : ["Allow: /"];
|
|
517
|
+
const lines = ["User-agent: *", ...siteWide, ""];
|
|
518
|
+
const known = AI_CRAWLERS.map((crawler) => crawler.token).filter((token) => Object.keys(settings.crawlers).some((key) => key.toLowerCase() === token.toLowerCase()));
|
|
519
|
+
const others = Object.keys(settings.crawlers)
|
|
520
|
+
.filter((key) => !aiCrawler(key))
|
|
521
|
+
.sort((a, b) => a.localeCompare(b));
|
|
522
|
+
const choiceOf = (/** @type {string} */ token) => settings.crawlers[Object.keys(settings.crawlers).find((key) => key.toLowerCase() === token.toLowerCase()) ?? token];
|
|
523
|
+
|
|
524
|
+
for (const token of [...known, ...others]) {
|
|
525
|
+
const crawler = aiCrawler(token);
|
|
526
|
+
const choice = choiceOf(token);
|
|
527
|
+
|
|
528
|
+
const note = crawler ? PURPOSE_NOTES[crawler.crawls ? crawler.purpose : "control"] : "";
|
|
529
|
+
|
|
530
|
+
lines.push(`# ${crawler ? `${crawler.label} (${note})` : "Another crawler named in the visibility settings"}: ${choice === "block" ? "blocked" : "allowed"}`);
|
|
531
|
+
lines.push(`User-agent: ${token}`, ...(choice === "block" ? ["Disallow: /"] : siteWide), "");
|
|
532
|
+
}
|
|
533
|
+
if (sitemap) lines.push(`Sitemap: ${sitemap}`, "");
|
|
534
|
+
return `${lines.join("\n").replace(/\n+$/, "")}\n`;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* The agent entry page: what the site is, where everything is, how to cite
|
|
539
|
+
* it and how to reach its owner. Plain markdown, no scripts.
|
|
540
|
+
*
|
|
541
|
+
* @param {object} input
|
|
542
|
+
* @param {string} input.siteName
|
|
543
|
+
* @param {string} input.summary
|
|
544
|
+
* @param {string} input.rootUrl
|
|
545
|
+
* @param {string} input.base
|
|
546
|
+
* @param {(path: string) => string} input.abs
|
|
547
|
+
* @param {PageFacts | undefined} input.home
|
|
548
|
+
* @param {VisibilitySettings} input.settings
|
|
549
|
+
* @param {{ llms: boolean; full: boolean; twins: boolean; robots: boolean; sitemap: string }} input.has
|
|
550
|
+
* @param {PageFacts | undefined} input.contactPage
|
|
551
|
+
* @param {PageFacts | undefined} input.example A page to show the twin address with.
|
|
552
|
+
*/
|
|
553
|
+
function agentText({ siteName, summary, rootUrl, base, abs, home, settings, has, contactPage, example }) {
|
|
554
|
+
const lines = [`# ${oneLine(siteName)}: a guide for AI agents`, ""];
|
|
555
|
+
|
|
556
|
+
if (summary) lines.push(`> ${summary}`, "");
|
|
557
|
+
lines.push(`This page is for AI agents and assistants reading ${rootUrl}. It says where the site's content is in plain text and how to cite it.`, "", "## Where things are", "");
|
|
558
|
+
if (has.llms) lines.push(`- Every page, with a one-line description: ${abs(`${base}/llms.txt`)}`);
|
|
559
|
+
if (has.full) lines.push(`- The whole site in one file: ${abs(`${base}/llms-full.txt`)}`);
|
|
560
|
+
if (has.twins) {
|
|
561
|
+
const shown = example ? `: ${abs(example.path)} has ${abs(twinPath(example.path, base))}, and the home page has ${abs(`${base}/index.md`)}` : `; the home page's is ${abs(`${base}/index.md`)}`;
|
|
562
|
+
|
|
563
|
+
lines.push(`- The markdown version of a page is at its address with \`.md\` in place of the last slash${shown}. Each page also names its own in \`<link rel="alternate" type="text/markdown">\`.`);
|
|
564
|
+
}
|
|
565
|
+
if (has.sitemap) lines.push(`- Every address, for crawlers: ${has.sitemap}`);
|
|
566
|
+
for (const feed of home?.feeds ?? []) lines.push(`- ${feed.title ? `${oneLine(feed.title)} (feed)` : "Feed"}: ${feed.href}`);
|
|
567
|
+
if (has.robots) lines.push(`- What crawlers may visit: ${abs(`${base}/robots.txt`)}`);
|
|
568
|
+
lines.push(
|
|
569
|
+
"",
|
|
570
|
+
"## How to cite this site",
|
|
571
|
+
"",
|
|
572
|
+
`Name the page and ${oneLine(siteName)}, and link to the page's own address (the \`canonical\` line at the top of each markdown version), not to the markdown copy. Quote the words as they are; dates and figures are as stated on the page.`,
|
|
573
|
+
"",
|
|
574
|
+
);
|
|
575
|
+
const contact = settings.agentReadable.contact || home?.emails[0] || "";
|
|
576
|
+
const contactLines = [];
|
|
577
|
+
|
|
578
|
+
if (contact) contactLines.push(/^https?:\/\//i.test(contact) ? `- ${contact}` : contact.includes("@") ? `- Email: ${contact}` : `- ${contact}`);
|
|
579
|
+
if (contactPage && contactPage.url !== contact) contactLines.push(`- Contact page: ${contactPage.canonical ?? contactPage.url}`);
|
|
580
|
+
if (contactLines.length) lines.push("## Contact", "", ...contactLines, "");
|
|
581
|
+
lines.push("## About this file", "", "It is written from the site's published pages each time the site is built. It holds no scripts and changes only when the site does.", "");
|
|
582
|
+
return lines.join("\n").replace(/\n+$/, "\n");
|
|
583
|
+
}
|