[docs] Follow-up on docs generation #1826
Labels
component: data grid
This is the name of the generic UI component, not the React module!
docs
Improvements or additions to the documentation
#1529 is a major step forward toward exhaustive documentation of the API. These are opportunities I have seen that we could tackle next:
GridColDef
seems hard to find. In the h2 Column definitions, we could have a h3 about the GridColDef API.copy.mp4
6. The apiRef blocks pattern can be used in many other parts: density, edit row, csv export, and in the core too.
7. We have a JSON docs generator in the core repository for React components (not interfaces). We should be able to use it for
DataGrid
,XGrid
,GridToolbarContainer
,GridToolbarExport
, etc.8. Once we have this JSON generated. We can move to the next step, read it to render the API page. We have a page component to read it in the core repository, we should be able to use it too.
9. The documentation of the interface in the core repository needs to be improved. A couple of examples: 1, 2, 3. It's not great, having no documentation for the headless component, it does not work. We have started to build a tool to solve this pain in this repository. We need the same one in the core repository. For instance:
10. We have two opportunities to better link GridExportCsvOptions that we don't leverage:
https://deploy-preview-2102--material-ui-x.netlify.app/api/data-grid/grid-api/
11. In some cases, it might feel overkill to create a dedicated page for small interfaces. Or maybe we should have the two but when it's simple enough, also embed in the docs page, as @m4theushw did for the apiRef.
applyFilter
is listed twice https://material-ui.com/components/data-grid/filtering/#apiref12. We miss more details about the apiRef, we could:
/components/data-grid/events/
/components/data-grid/advanced/
URL, under a h2 (not a h1 as currently)For instance, it could look like this:
Feedback on it here: [docs] Follow-up on docs generation #1826 (comment)
cc @m4theushw
The text was updated successfully, but these errors were encountered: