Conversation
|
|
✔️ Deploy Preview for kit-demo canceled. 🔨 Explore the source changes: c315589 🔍 Inspect the deploy log: https://app.netlify.com/sites/kit-demo/deploys/62040293f2beaf0007d66fab |
|
the deploy is working now, i fooked up the prerendering |
It's a bug in Kit itself — opened #3770 |
|
Am wondering how integrating with this off-site will work. Currently the api is used by the svelte discord bot to add search functionality inside of the discord. Will the bot be able to use the kit endpoints or need to implement it's own scraping and parsing of the data whether that's from repo or site |
|
@ghostdevv at present the content that powers the search box is available at /content.json. The table of doc contents is at /docs.json, and individual sections (with content) are at /docs/introduction.json etc. The bot might need some rejiggering but I think everything it needs should be available. Having said that those URLs might change if this switches over to use shadow endpoints — /docs/introduction/__data.json etc. |
|
@Rich-Harris thanks! We can work with that for sure |
Step 6 of #3696.
Preview deployment: https://kit-svelte-dev-git-flexsearch-svelte.vercel.app/
WIP. Adds a search bar powered by https://github.com/nextapps-de/flexsearch. Needs lots of design work and debugging (and @geoffrich, if you get a chance, I'd be very grateful for any a11y pointers), but as a proof of concept it does the trick.
Once it's in better shape, we can move to multi-page docs (and move migrating/FAQ into the docs — they don't need to be separate links, I don't think).
One known issue: I haven't figured out how to make a 'clean'
markedinstance — oncemarked.use(...)gets called, the options are used everywhere, which means that theplaintextstuff in this PR affects the generation of the docs themselves (which should only affect local development, but is annoying nonetheless).content.jsonhas been generatedTasks specific to multi-page redesign:
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpx changesetand following the prompts. All changesets should bepatchuntil SvelteKit 1.0