From 185cbfdbd17df21e2c4fcdbee1f9a2078cab2e9c Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Tue, 10 Sep 2024 15:14:10 +0700 Subject: [PATCH] move contributing to faq --- docs/data/material/getting-started/faq/faq.md | 75 +++++++++++++++++++ .../getting-started/templates/templates.md | 71 ------------------ 2 files changed, 75 insertions(+), 71 deletions(-) diff --git a/docs/data/material/getting-started/faq/faq.md b/docs/data/material/getting-started/faq/faq.md index ccbdc6ebd8ff96..6638bd59961d68 100644 --- a/docs/data/material/getting-started/faq/faq.md +++ b/docs/data/material/getting-started/faq/faq.md @@ -261,6 +261,81 @@ return ( If you are getting the error: `TypeError: Cannot convert a Symbol value to a string`, take a look at the [styled()](/system/styled/#how-to-use-components-selector-api) docs page for instructions on how you can fix this. +## How can I contribute to the free templates? + +The templates are built using the shared theme. Below are the structure to create a new template: + +### Template page + +Create a new page in the `docs/pages/material-ui/getting-started/templates/.js` directory with the following code: + +```js +import * as React from 'react'; +import AppTheme from 'docs/src/modules/components/AppTheme'; +import TemplateFrame from 'docs/src/modules/components/TemplateFrame'; +import Template from 'docs/data/material/getting-started/templates//