svelteness / kit-docs

Documentation integration for SvelteKit.
https://kitdocs.vercel.app
MIT License
457 stars 32 forks source link

Using kit-docs as subpage inside a website #63

Open Leomonay opened 1 year ago

Leomonay commented 1 year ago

Hello! First of all, I searched for a community or forum to ask this, but I did not find one. So, please excuse me if this is not the right place where to ask.

I need to add a blog and documentation to my website. Using kit-docs for both of them. The main idea is to set the links in the navbar, next to the other website pages. I could set both documentation and blog in the same website using different sources. The problems I have now are:

Here I leave the link of the repository. Steps to check:

  1. Download this branch: https://gitlab.com/anagolay/blog/-/tree/1-build-blog-and-documentation-using-kitdocs
  2. pnpm install
  3. pnpm dev.
  4. Open the URL displayed at the console and click docs, then blog, and then back to docs.
  5. Go to home. Refresh. Click blog, then docs and then back to blog.

The question are:

baradhili commented 1 year ago

I've got a slightly different twist on a similar topic...

I'd like to use kitdocs as part of a svelte project to manage the docs alongside within the app - but it doesn't seem to be trivial to have kitdocs start at say "/docs" - unless I've missed something in the manual?

taimoor-shan commented 1 month ago

Anybody found solution?