mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
examples: Fixed HTML output with multi-paragraph READMEs.
This commit is contained in:
parent
8c4e048a68
commit
bab4bb3817
2 changed files with 7 additions and 1 deletions
|
|
@ -187,6 +187,11 @@ sub handle_example_dir {
|
|||
$description =~ s/\s+\Z//;
|
||||
}
|
||||
|
||||
my $short_description = "$description";
|
||||
$short_description =~ s/\<br\/\>\n.*//gms;
|
||||
$short_description =~ s/\A\s+//;
|
||||
$short_description =~ s/\s+\Z//;
|
||||
|
||||
do_mkdir($dst);
|
||||
do_copy($jssrc, $jsdst);
|
||||
do_copy($wasmsrc, $wasmdst);
|
||||
|
|
@ -238,6 +243,7 @@ sub handle_example_dir {
|
|||
s/\@example_name\@/$example/g;
|
||||
s/\@javascript_file\@/$jsfname/g;
|
||||
s/\@htmlified_source_code\@/$htmlified_source_code/g;
|
||||
s/\@short_description\@/$short_description/g;
|
||||
s/\@description\@/$description/g;
|
||||
s/\@preview_image\@/$preview_image/g;
|
||||
s/\@other_examples_html\@/$other_examples_html/g;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="@project_name@ Example: @category_name@/@example_name@">
|
||||
<meta property="og:description" content="@description@">
|
||||
<meta property="og:description" content="@short_description@">
|
||||
<meta property="og:image" content="@preview_image@" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/@project_name@/examples.css" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue