Improve default app README.mdex (#4893)

This commit is contained in:
Hariom Balhara
2022-10-07 07:29:09 +00:00
committed by GitHub
parent 0098591a56
commit 44fd1b9fef
5 changed files with 12 additions and 13 deletions
+5 -5
View File
@@ -119,11 +119,11 @@ const BaseAppFork = {
fs.writeFileSync(`${appDirPath}/config.json`, JSON.stringify(config, null, 2));
fs.writeFileSync(
`${appDirPath}/README.mdx`,
fs.readFileSync(`${appDirPath}/README.mdx`).toString().replace("_DESCRIPTION_", appDescription)
);
fs.writeFileSync(
`${appDirPath}/README.mdx`,
fs.readFileSync(`${appDirPath}/README.mdx`).toString().replace("_DESCRIPTION_", appDescription)
fs
.readFileSync(`${appDirPath}/README.mdx`)
.toString()
.replace(/_DESCRIPTION_/g, appDescription)
.replace(/_APP_DIR_/g, slug)
);
message = !editMode ? "Forked base app" : "Updated app";
yield message;
+7 -8
View File
@@ -1,13 +1,12 @@
---
description: _DESCRIPTION_
items:
- /api/app-store/_APP_DIR_/1.jpg
- /api/app-store/_APP_DIR_/2.jpg
- /api/app-store/_APP_DIR_/3.jpg
---
{/* Feel free to edit description or add other frontmatter. Frontmatter would be available in the components here as variables by same name */}
<div>
<Slider items={items} />
{description}
</div>
<hr />
<div style={{color:"gray", fontStyle:"italic"}} >
<div>Edit README.mdx file to update the content.</div>
<div>Edit config.json to update logo </div>
</div>
Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB