docs: restructure docs api into three sections
I think splitting API into three separate sections makes it easier to access information.
But I can't come up with text for /api/index, so I just deleted it :S
Deploy Preview for vitest-dev ready!
Built without sensitive environment variables
| Name | Link |
|---|---|
| Latest commit | 5305dfefa86c81f30e7560ae9a6ab1a894f7205c |
| Latest deploy log | https://app.netlify.com/sites/vitest-dev/deploys/62a77a4179e76800091bed1f |
| Deploy Preview | https://deploy-preview-1478--vitest-dev.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
We are having the same issue in the Vite docs. The problem is that when you separate the API or Config section then the users can no longer see the full surface in a single page (to search with Cmd+f for example, even if there is algolia available). For Vite, we decided that the index would be the same as Vue: https://vuejs.org/api/
This is great because it gives users a complete list of the API + it gives you something to put in the index.
About the partition, should the Mock instance methods and properties also be split?
Not sure if this solution will work nicely with the count of expect's API methods 🤔
Why? Check out the vue page, there are tons of methods there and look ok to me 🤔
Why? Check out the vue page, there are tons of methods there and look ok to me 🤔
They are nicecly divided in Vue, but currently expect methods are just a list of 55 methods 👀
Maybe the expect methods could be categorized a bit, at least for this API reference. For example:
not toBe toBeCloseTo toBeDefined toBeUndefined toBeTruthy toBeFalsy toBeNull toBeNaN toBeTypeOf toBeInstanceOf
toBeGreaterThan toBeGreaterThanOrEqual toBeLessThan toBeLessThanOrEqual toEqual toStrictEqual
toContain toContainEqual toHaveLength toHaveProperty
toMatch toMatchObject toMatchSnapshot toMatchInlineSnapshot
toThrowError toThrowErrorMatchingSnapshot toThrowErrorMatchingInlineSnapshot
toHaveBeenCalled toHaveBeenCalledTimes toHaveBeenCalledWith toHaveBeenLastCalledWith toHaveBeenNthCalledWith toHaveReturned toHaveReturnedTimes toHaveReturnedWith toHaveLastReturnedWith toHaveNthReturnedWith
toSatisfy resolves rejects expect.assertions expect.hasAssertions expect.addSnapshotSerializer expect.extend
The /api/index should be a simple index of those three sections. Other than that I am good for it
Close due to conflicts but I agree to do so. Next time when we want to do this, we could directly push to main branch to avoid conflicts.