Skip to content

Commit 1b4a441

Browse files
committed
Adjust to new name, repo and URL (hopefully final!)
1 parent f941311 commit 1b4a441

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ SPDX-License-Identifier: Apache-2.0
1111
https://img.shields.io/badge/License-Apache--2.0-blue.svg)](
1212
LICENSE.txt)
1313
[![REUSE status](
14-
https://api.reuse.software/badge/github.com/git-forge-html-preview/git-forge-html-preview)](
15-
https://api.reuse.software/info/github.com/git-forge-html-preview/git-forge-html-preview)
14+
https://api.reuse.software/badge/github.com/html-preview/html-preview.github.io)](
15+
https://api.reuse.software/info/github.com/html-preview/html-preview.github.io)
1616

1717
Allows to render HTML files on git forges (like GitHub) in your browser,
1818
without cloning or downloading.
@@ -45,11 +45,11 @@ so they cannot be interpreted in their native form by the browser.
4545

4646
In order to use it,
4747
just prepend this fragment to the URL of any HTML file:
48-
**[https://htmlpreview.github.io/?](https://htmlpreview.github.io/?)**
48+
**[https://html-preview.github.io/?](https://html-preview.github.io/?)**
4949
e.g.:
5050

51-
- <https://htmlpreview.github.io/?https://github.com/twbs/bootstrap/gh-pages/2.3.2/index.html>
52-
- <https://htmlpreview.github.io/?https://github.com/documentcloud/backbone/blob/master/examples/todos/index.html>
51+
- <https://html-preview.github.io/?https://github.com/twbs/bootstrap/gh-pages/2.3.2/index.html>
52+
- <https://html-preview.github.io/?https://github.com/documentcloud/backbone/blob/master/examples/todos/index.html>
5353

5454
What it does:
5555

htmlpreview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-FileCopyrightText: 2012 - 2021 Jerzy Głowacki <[email protected]>
2+
// SPDX-FileCopyrightText: 2024 Robin Vobruba <[email protected]>
23
//
34
// SPDX-License-Identifier: Apache-2.0
45

@@ -142,8 +143,7 @@
142143
return loc.origin + loc.pathname;
143144
}
144145
// Fallback value
145-
// eslint-disable-next-line @stylistic/js/max-len
146-
return 'https://git-forge-html-preview.github.io/git-forge-html-preview/?';
146+
return 'https://html-preview.github.io/?';
147147
};
148148

149149
/**

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<!--
33
SPDX-FileCopyrightText: 2012 - 2021 Jerzy Głowacki <[email protected]>
4+
SPDX-FileCopyrightText: 2024 Robin Vobruba <[email protected]>
45
56
SPDX-License-Identifier: Apache-2.0
67
-->
@@ -46,10 +47,10 @@ <h1>Git-Forge HTML Preview</h1>
4647
</p>
4748
<p>
4849
or prepend to the URL:
49-
<code><strong id="service_base">https://git-forge-html-preview.github.io/git-forge-html-preview/?</strong>https://github.com/twbs/bootstrap/blob/gh-pages/2.3.2/index.html</code>
50+
<code><strong id="service_base">https://html-preview.github.io/?</strong>https://github.com/twbs/bootstrap/blob/gh-pages/2.3.2/index.html</code>
5051
</p>
5152
<p>
52-
Contribute on <a href="https://github.com/git-forge-html-preview/git-forge-html-preview">GitHub</a>
53+
Contribute on <a href="https://github.com/html-preview/html-preview.github.io">GitHub</a>
5354
</p>
5455
</form>
5556
<script src="htmlpreview.js"></script>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "git-forge-html-preview",
2+
"name": "html-preview",
33
"version": "0.1.0",
44
"description": "A hosted instance of this tool allows to render HTML files which are hosted on git forges (like GitHub) in browsers, versus just showing them as plain-text.",
55
"main": "htmlpreview.js",
@@ -28,7 +28,7 @@
2828
},
2929
"repository": {
3030
"type": "git",
31-
"url": "https://github.com/osegermany/git-forge-html-preview.git"
31+
"url": "https://github.com/html-preview/html-preview.github.io.git"
3232
},
3333
"keywords": [
3434
"scm",

0 commit comments

Comments
 (0)