Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit b5fa4d1

Browse files
ncrucesmikesamuel
authored andcommitted
Remove RawGit dependency. (#573)
1 parent f20e152 commit b5fa4d1

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

CHANGES.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
## 29 March 2007
1515

16-
* Added [tests](https://rawgit.com/google/code-prettify/master/tests/prettify_test.html#PHP)
16+
* Added [tests](https://raw.githack.com/google/code-prettify/master/tests/prettify_test.html#php)
1717
for PHP support to address issue [#3](https://github.com/google/code-prettify/issues/3).
1818
* Fixed bug [#6](https://github.com/google/code-prettify/issues/6): `prettyPrintOne`
1919
was not halting. This was not reachable through the normal entry point.
2020
* Fixed bug [#4](https://github.com/google/code-prettify/issues/4): recursing into a
2121
script block or PHP tag that was not properly closed would not silently drop the content.
22-
([test](https://rawgit.com/google/code-prettify/master/tests/prettify_test.html#issue4))
22+
([test](https://raw.githack.com/google/code-prettify/master/tests/prettify_test.html#js_script))
2323
* Fixed bug [#8](https://github.com/google/code-prettify/issues/8): was eating tabs
24-
([test](https://rawgit.com/google/code-prettify/master/tests/prettify_test.html#issue8))
24+
([test](https://raw.githack.com/google/code-prettify/master/tests/prettify_test.html#issue8))
2525
* Fixed entity handling so that the caveat
2626

2727
> Caveats: please properly escape less-thans. `x&lt;y` instead of `x<y`,
@@ -51,7 +51,7 @@
5151
* Support for `nocode` spans to allow embedding of line numbers and code
5252
annotations which should not be styled or otherwise affect the tokenization
5353
of prettified code. See the issue [#22](https://github.com/google/code-prettify/issues/22)
54-
[testcase](https://rawgit.com/google/code-prettify/master/tests/prettify_test.html#issue22).
54+
[testcase](https://raw.githack.com/google/code-prettify/master/tests/prettify_test.html#issue22).
5555

5656
## 6 Jan 2009
5757

@@ -99,7 +99,7 @@
9999

100100
## 4 March 2011
101101

102-
* Added a [themes gallery](https://rawgit.com/google/code-prettify/master/styles/index.html)
102+
* Added a [themes gallery](https://raw.githack.com/google/code-prettify/master/styles/index.html)
103103
to showcase contributed styles.
104104
* Added support for XQuery courtesy *Patrick Wied*, Nemerle courtesy *Zimin A.V.*,
105105
and Latex support courtesy *Martin S*.
@@ -126,7 +126,7 @@
126126

127127
* Added a one script autoload&run mechanism and a way to embed hints in
128128
processing instructions/comments. See
129-
[example](https://rawgit.com/google/code-prettify/master/examples/quine.html).
129+
[example](https://raw.githack.com/google/code-prettify/master/examples/quine.html).
130130

131131
## 4 March 2013
132132

distrib/prettify-small.zip

6 Bytes
Binary file not shown.

docs/getting_started.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ code here
2929
</pre>
3030
```
3131

32-
[Larger example](https://rawgit.com/google/code-prettify/master/examples/quine.html)
32+
[Larger example](https://raw.githack.com/google/code-prettify/master/examples/quine.html)
3333

3434
## Auto-Loader
3535

3636
You can load the JavaScript and CSS for prettify via one URL:
3737

3838
```HTML
39-
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
39+
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
4040
```
4141

4242
This will load the entire system and schedule the prettifier to run on page
@@ -47,18 +47,18 @@ arguments) to configure the runner.
4747
| --------------------- | ------- | ------------------------------ |
4848
| autorun=(true, false) | true | run automatically on page load |
4949
| lang=... | none | Loads the language handler for the given language which is usually the file extension for source files for that language. See the [index of language handlers](../src). If specified multiple times (`?lang=css&lang=ml`) then all are loaded. |
50-
| skin=... | none | See the [skin gallery](https://cdn.rawgit.com/google/code-prettify/master/styles/index.html). If specified multiple times, the first one to successfully load is used. |
50+
| skin=... | none | See the [skin gallery](https://raw.githack.com/google/code-prettify/master/styles/index.html). If specified multiple times, the first one to successfully load is used. |
5151
| callback=js_ident | | `window.exports["js_ident"]` will be called when prettyprinting finishes. If specified multiple times, all are called. |
5252

5353
For example:
5454

5555
```HTML
56-
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?lang=css&amp;skin=sunburst"></script>
56+
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?lang=css&amp;skin=sunburst"></script>
5757
```
5858

5959
The above specifies the `lang` parameter to also load the CSS language
6060
extension and the `skin` parameter to load the
61-
[*sunburst*](https://cdn.rawgit.com/google/code-prettify/master/styles/index.html#sunburst)
61+
[*sunburst*](https://raw.githack.com/google/code-prettify/master/styles/index.html#sunburst)
6262
skin.
6363

6464
## Serving your own JS & CSS
@@ -87,7 +87,7 @@ so you can swap in a different stylesheet to change the way code is
8787
prettified.
8888

8989
The easiest way to create your own stylesheet is by starting with one from the
90-
[style gallery](https://cdn.rawgit.com/google/code-prettify/master/styles/index.html)
90+
[style gallery](https://raw.githack.com/google/code-prettify/master/styles/index.html)
9191
and tweaking it.
9292

9393
You can use CSS `@media` rules to specify styles that work well with printers

examples/quine.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Making Quines Prettier</title>
66
<!-- The defer attribute is not necessary for autoloading, but is necessary
77
for the script at the bottom to work as a Quine. -->
8-
<script src="https://rawgit.com/google/code-prettify/master/loader/run_prettify.js?autoload=true&amp;skin=sunburst&amp;lang=css" defer></script>
8+
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?autoload=true&amp;skin=sunburst&amp;lang=css" defer></script>
99
<style type="text/css">
1010
.operative { font-weight: bold; border: 1px solid yellow; }
1111
#quine { border: 4px solid #88c; }
@@ -26,7 +26,7 @@ <h1>Making Quines Prettier</h1>
2626
The line numbers to the left appear because the preceding comment
2727
<code>&lt;?prettify lang=html linenums=true?&gt;</code> turns on
2828
line-numbering and the
29-
<a href="https://rawgit.com/google/code-prettify/master/styles/index.html">stylesheet</a>
29+
<a href="https://raw.githack.com/google/code-prettify/master/styles/index.html">stylesheet</a>
3030
(see <code>skin=sunburst</code> in the <code>&lt;script src&gt;</code>)
3131
specifies that every fifth line should be numbered.
3232
</p>

js-modules/run_prettify.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* +------------------+---------------+------------------------------+--------+
3636
* | skin= | skin name | Loads the skin stylesheet | none. |
3737
* | | | named "<NAME>.css". | |
38-
* | | | https://cdn.rawgit.com/ | |
38+
* | | | https://raw.githack.com/ | |
3939
* | | | google/code-prettify/master/ | |
4040
* | | | styles/index.html | |
4141
* +------------------+---------------+------------------------------+--------+
@@ -56,7 +56,7 @@
5656
* 2. Loads the sunburst.css stylesheet instead of the default prettify.css
5757
* stylesheet.
5858
* A gallery of stylesheets is available at
59-
* https://cdn.rawgit.com/google/code-prettify/master/styles/index.html
59+
* https://raw.githack.com/google/code-prettify/master/styles/index.html
6060
* 3. Since autorun=false is not specified, calls prettyPrint() on page load.
6161
* </div>
6262
*/
@@ -180,7 +180,7 @@
180180
// This only works if this script is loaded via https : something
181181
// over which we exercise no control.
182182
var LOADER_BASE_URL =
183-
'https://cdn.rawgit.com/google/code-prettify/master/loader';
183+
'https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader';
184184

185185
for (var i = 0, n = langs.length; i < n; ++i) (function (lang) {
186186
var script = doc.createElement("script");

loader/run_prettify.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/run_prettify.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* +------------------+---------------+------------------------------+--------+
3636
* | skin= | skin name | Loads the skin stylesheet | none. |
3737
* | | | named "<NAME>.css". | |
38-
* | | | https://cdn.rawgit.com/ | |
38+
* | | | https://raw.githack.com/ | |
3939
* | | | google/code-prettify/master/ | |
4040
* | | | styles/index.html | |
4141
* +------------------+---------------+------------------------------+--------+
@@ -56,7 +56,7 @@
5656
* 2. Loads the sunburst.css stylesheet instead of the default prettify.css
5757
* stylesheet.
5858
* A gallery of stylesheets is available at
59-
* https://cdn.rawgit.com/google/code-prettify/master/styles/index.html
59+
* https://raw.githack.com/google/code-prettify/master/styles/index.html
6060
* 3. Since autorun=false is not specified, calls prettyPrint() on page load.
6161
* </div>
6262
*/
@@ -228,7 +228,7 @@ var IN_GLOBAL_SCOPE = false;
228228
// This only works if this script is loaded via https : something
229229
// over which we exercise no control.
230230
var LOADER_BASE_URL =
231-
'https://cdn.rawgit.com/google/code-prettify/master/loader';
231+
'https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader';
232232

233233
for (var i = 0, n = langs.length; i < n; ++i) (function (lang) {
234234
var script = doc.createElement("script");

0 commit comments

Comments
 (0)