Skip to content

Commit 0bf34a3

Browse files
committed
Remove building the docs from the main 'build' script as python 2.7 is no longer supported by GitHub actions
1 parent f22e85e commit 0bf34a3

File tree

11 files changed

+18
-26
lines changed

11 files changed

+18
-26
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,11 @@ jobs:
77
- uses: actions/checkout@v2
88
- uses: actions/setup-node@v2
99
with:
10-
node-version: '14'
11-
- uses: actions/setup-python@v2
12-
with:
13-
python-version: '2.7.18' # Version range or exact version of a Python version to use, using SemVer's version range syntax
10+
node-version: '18'
1411

1512
- name: npm install
1613
run: npm install
1714

18-
- name: install jsduck
19-
run: gem install jsduck --user-install # Need user install because system dir is not accessible
20-
21-
- name: add jsduck to $PATH var
22-
run: echo "${HOME}/.gem/ruby/2.7.0/bin" >> ${GITHUB_PATH} # This is how to add to $PATH on GitHub's runners
23-
2415
- name: build
2516
run: npm run build
2617

dist/Autolinker.js

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

dist/Autolinker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Autolinker.min.js

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

dist/Autolinker.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/examples/live-example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"/><script src="https://code.jquery.com/jquery-1.12.0.min.js"></script><script defer="defer" src="live-example.512e1ae3be125fe93c0e.js"></script></head><body><div class="container"><h1><a class="title-link" href="https://github.com/gregjacobs/Autolinker.js" target="_top">Autolinker</a> <small>v<span id="version"></span> - Live Example</small></h1>Type text on the left and see the output on the right. For full match/options reference, see the <a href="http://gregjacobs.github.io/Autolinker.js/api/#!/api/Autolinker" target="_top">API Docs</a><div class="row pt10"><div class="col-lg-4 col-sm-6"><h4>Match Types:</h4><div id="option-urls-schemeMatches"></div><div id="option-urls-tldMatches"></div><div id="option-urls-ipV4Matches"></div><div id="option-email"></div><div id="option-phone"></div><div id="option-mention"></div><div id="option-hashtag"></div></div><div class="col-lg-4 col-sm-6"><h4>Other Options:</h4><div id="option-stripPrefix"></div><div id="option-stripTrailingSlash"></div><div id="option-decodePercentEncoding"></div><div id="option-newWindow"></div><br/><div id="option-truncate-length"></div><div id="option-truncate-location"></div><br/><div id="option-className"></div></div><div class="col-lg-4 col-sm-12"><h4>Code Sample:</h4><pre id="options-output" class="code-sample"></pre></div></div><div class="row pt10"><div class="col-xs-6"><textarea id="input" class="code-box">
1+
<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"/><script src="https://code.jquery.com/jquery-1.12.0.min.js"></script><script defer="defer" src="live-example.cb5afe9ec6210579c8a3.js"></script></head><body><div class="container"><h1><a class="title-link" href="https://github.com/gregjacobs/Autolinker.js" target="_top">Autolinker</a> <small>v<span id="version"></span> - Live Example</small></h1>Type text on the left and see the output on the right. For full match/options reference, see the <a href="http://gregjacobs.github.io/Autolinker.js/api/#!/api/Autolinker" target="_top">API Docs</a><div class="row pt10"><div class="col-lg-4 col-sm-6"><h4>Match Types:</h4><div id="option-urls-schemeMatches"></div><div id="option-urls-tldMatches"></div><div id="option-urls-ipV4Matches"></div><div id="option-email"></div><div id="option-phone"></div><div id="option-mention"></div><div id="option-hashtag"></div></div><div class="col-lg-4 col-sm-6"><h4>Other Options:</h4><div id="option-stripPrefix"></div><div id="option-stripTrailingSlash"></div><div id="option-decodePercentEncoding"></div><div id="option-newWindow"></div><br/><div id="option-truncate-length"></div><div id="option-truncate-location"></div><br/><div id="option-className"></div></div><div class="col-lg-4 col-sm-12"><h4>Code Sample:</h4><pre id="options-output" class="code-sample"></pre></div></div><div class="row pt10"><div class="col-xs-6"><textarea id="input" class="code-box">
22
http://google.com
33
google.com
44
192.168.0.1

docs/examples/live-example/live-example.512e1ae3be125fe93c0e.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/examples/live-example/live-example.cb5afe9ec6210579c8a3.js

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

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "autolinker",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "Utility to automatically link the URLs, email addresses, phone numbers, hashtags, and mentions (Twitter, Instagram) in a given block of text/HTML",
55
"main": "./dist/commonjs/index.js",
66
"typings": "./dist/commonjs/index.d.ts",
@@ -9,8 +9,9 @@
99
"dist"
1010
],
1111
"scripts": {
12-
"build": "npm-run-all clean update-tld-regex build:src build:docs build:live-example",
13-
"build:docs": "ts-node scripts/build-docs.ts",
12+
"build": "npm-run-all clean update-tld-regex build:src",
13+
"build:docs": "npm-run-all build:docs-site build:live-example",
14+
"build:docs-site": "ts-node scripts/build-docs.ts",
1415
"build:src": "ts-node scripts/build.ts",
1516
"build:live-example": "webpack",
1617
"clean": "rimraf dist",

src/parser/tld-regex.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)