Skip to content

Commit 9521ec6

Browse files
Revert short description (#733)
1 parent d3cd594 commit 9521ec6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

__tests__/post-build/exampleShortHeaders.json.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('exampleShortHeaders.json post build checks', () => {
3333
name: 'Platformer',
3434
authorIds: ['R0F5QGNCzgOY5w2cxGeKJOq2UaD2'],
3535
shortDescription:
36-
'An example of a basic platformer (Mario-like) game. Jump around and collect as many coins as you can!\n\nCheck out [the YouTube video](https://www.youtube.com/watch?v=eU0kkLSdw0Y&list=PL3YlZTdKiS898Wio0tvKjQM0x3zo4V0Mb) explaining how this example was made.',
36+
'An example of a basic platformer (Mario-like) game. Jump around and collect as many coins as you can!',
3737
license: 'MIT',
3838
previewImageUrls: [
3939
'https://resources.gdevelop-app.com/examples/platformer/preview.png',

scripts/generate-database.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,11 @@ const extractExamples = async (
379379
);
380380
const exampleName = formatExampleName(slug);
381381

382-
// Descriptions are short enough to be completely in the short description, avoiding to split them.
383-
const shortDescription = readmeFileContent;
384-
const description = '';
382+
const shortDescription = readmeFileContent.split('\n\n')[0];
383+
const description = readmeFileContent
384+
.split('\n\n')
385+
.slice(1)
386+
.join('\n\n');
385387

386388
const tags = [
387389
...fileWithMetadata.tags,

0 commit comments

Comments
 (0)