-
-
Notifications
You must be signed in to change notification settings - Fork 190
Read docs from svelte and kit repos #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 Two remaining questions though:
- how do we do docs versioning? Right now there's nothing with regards to that. We can either have them versioned within the referenced repositories (e.g. in the Svelte repo we have
documentation/v4/..
,documentation/v5/..
etc), or we adjust the script to checkout specific branches into specific folders insiderepos
- how do we do the reference docs? Right now you left that part in for SvelteKit, and for Svelte it's removed but they still show up in the side-bar, but empty
I don't have a strong preference between those two options. Perhaps checking it out again could make more sense if you had a bug fix that needed a docs adjustment so that you can do those in a single PR, but those seem far and few between. Putting them in folders in Edit: though the question of generated reference docs makes it harder to check the docs into
Ah, thanks. I hadn't noticed they were missing since they still appear in the sidebar. I added them both back for now. It looks like the generated kit docs are currently checked into this repo, but we should probably generate them here instead. I think that would work better than checking them into the kit and svelte repos so that we can keep all the generation logic located here, which will make it easier to change that logic compared to if we have to link in How do you run the |
Once we get the reference docs generation working we can revert the changes I made to Simon had a |
I created #69 as an alternative, which I personally prefer over the "transient copy" approach |
I'll close this in favor of #69 |
My first attempt was to checkout the other repos as a sibling to this one. Then if you already have the svelte or kit repo checked out locally you wouldn't have to do anything and they'd automatically be used without needing to mess with symlinks or anything. However, that didn't work because it seems you can't create files outside the project root on vercel. The current approach is slightly more setup for devs if you want to use a local version of a docs repo as you need to create a symlink, but I suppose it allows for a bit more flexibility as well. I added some basic setup instructions in a new readme.
We will need to setup deploy hooks at some point to trigger deploys when the docs are updated in kit, svelte, etc. repos: https://vercel.com/docs/deployments/deploy-hooks. I filed #59 to track that