Skip to content

Commit 9c61125

Browse files
committed
gh-pages: use relative paths for styles and links
This ensures the pages still work as intended when served from a subdirectory (such as https://username.github.io/PHP_CodeSniffer/).
1 parent 7815e6e commit 9c61125

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/phars.html.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<head>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<link rel="stylesheet" href="/styles.css" />
7+
<link rel="stylesheet" href="../styles.css" />
88
<title>PHP_CodeSniffer PHAR - All PHAR files</title>
99
</head>
1010

1111
<body>
1212
<main class="container">
1313
<h1 class="heading">All PHAR files</h1>
14-
<a href="/index.html" class="link">See latest PHAR files</a>
14+
<a href="../index.html" class="link">See latest PHAR files</a>
1515
<!-- {{ PHARS }} -->
1616
</main>
1717
</body>

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<link rel="stylesheet" href="/styles.css" />
7+
<link rel="stylesheet" href="./styles.css" />
88
<title>PHP_CodeSniffer PHAR - Latest PHAR files</title>
99
</head>
1010

@@ -45,7 +45,7 @@ <h2 class="download-box__title">PHPCBF</h2>
4545
</article>
4646
</div>
4747
<aside class="additional-info">
48-
<a href="/phars/index.html">
48+
<a href="./phars/index.html">
4949
See all PHAR files
5050
</a>
5151

0 commit comments

Comments
 (0)