mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
examples: fixup URLs for project subfolder
This commit is contained in:
parent
56da4e81d8
commit
58f8e259d1
4 changed files with 20 additions and 12 deletions
|
@ -180,7 +180,7 @@ sub handle_example_dir {
|
||||||
|
|
||||||
my $other_examples_html = "<ul>";
|
my $other_examples_html = "<ul>";
|
||||||
foreach my $example (get_examples_for_category($category)) {
|
foreach my $example (get_examples_for_category($category)) {
|
||||||
$other_examples_html .= "<li><a href='/$category/$example'>$category/$example</a></li>";
|
$other_examples_html .= "<li><a href='/$project/$category/$example'>$category/$example</a></li>";
|
||||||
}
|
}
|
||||||
$other_examples_html .= "</ul>";
|
$other_examples_html .= "</ul>";
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ sub handle_category_dir {
|
||||||
# !!! FIXME: image
|
# !!! FIXME: image
|
||||||
my $example_image_url = "https://placehold.co/600x400/png";
|
my $example_image_url = "https://placehold.co/600x400/png";
|
||||||
$examples_list_html .= "
|
$examples_list_html .= "
|
||||||
<a href='/$category/$example'>
|
<a href='/$project/$category/$example'>
|
||||||
<div>
|
<div>
|
||||||
<img src='$example_image_url' />
|
<img src='$example_image_url' />
|
||||||
<div>$category/$example</div>
|
<div>$category/$example</div>
|
||||||
|
@ -297,7 +297,7 @@ foreach my $category (get_categories()) {
|
||||||
# !!! FIXME: image
|
# !!! FIXME: image
|
||||||
my $example_image_url = "https://placehold.co/600x400/png";
|
my $example_image_url = "https://placehold.co/600x400/png";
|
||||||
$homepage_list_html .= "
|
$homepage_list_html .= "
|
||||||
<a href='/$category/$example'>
|
<a href='/$project/$category/$example'>
|
||||||
<div>
|
<div>
|
||||||
<img src='$example_image_url' />
|
<img src='$example_image_url' />
|
||||||
<div>$category/$example</div>
|
<div>$category/$example</div>
|
||||||
|
|
|
@ -5,7 +5,11 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>@project_name@ Examples: @category_name@</title>
|
<title>@project_name@ Examples: @category_name@</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/examples.css" />
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
href="/@project_name@/examples.css"
|
||||||
|
/>
|
||||||
<style>
|
<style>
|
||||||
main > h1 {
|
main > h1 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@ -19,8 +23,8 @@
|
||||||
<main>
|
<main>
|
||||||
<nav class="breadcrumb">
|
<nav class="breadcrumb">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">@project_name@</a></li>
|
<li><a href="/@project_name@/">@project_name@</a></li>
|
||||||
<li><a href="/@category_name@">@category_name@</a></li>
|
<li><a href="/@project_name@/@category_name@">@category_name@</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<h1>@project_name@ examples: @category_name@</h1>
|
<h1>@project_name@ examples: @category_name@</h1>
|
||||||
|
|
|
@ -5,7 +5,11 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>@project_name@ Examples</title>
|
<title>@project_name@ Examples</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/examples.css" />
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
href="/@project_name@/examples.css"
|
||||||
|
/>
|
||||||
<style>
|
<style>
|
||||||
main > h1 {
|
main > h1 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@ -19,7 +23,7 @@
|
||||||
<main>
|
<main>
|
||||||
<nav class="breadcrumb">
|
<nav class="breadcrumb">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">@project_name@</a></li>
|
<li><a href="/@project_name@">@project_name@</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<h1>@project_name@ examples</h1>
|
<h1>@project_name@ examples</h1>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>@project_name@ Example: @category_name@/@example_name@</title>
|
<title>@project_name@ Example: @category_name@/@example_name@</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/examples.css" />
|
<link rel="stylesheet" type="text/css" href="/@project_name@/examples.css" />
|
||||||
<style>
|
<style>
|
||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -182,9 +182,9 @@
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<nav class="breadcrumb">
|
<nav class="breadcrumb">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">@project_name@</a></li>
|
<li><a href="/@project_name@">@project_name@</a></li>
|
||||||
<li><a href="/@category_name@">@category_name@</a></li>
|
<li><a href="/@project_name@/@category_name@">@category_name@</a></li>
|
||||||
<li><a href="/@category_name@/@example_name@">@example_name@</a></li>
|
<li><a href="/@project_name@/@category_name@/@example_name@">@example_name@</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<h1>@project_name@ example: @category_name@/@example_name@</h1>
|
<h1>@project_name@ example: @category_name@/@example_name@</h1>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue