Skip to content

Commit

Permalink
Remove unused JS
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Jul 10, 2024
1 parent 830500f commit fed919a
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 9,549 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

33 changes: 0 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
"@docsearch/js": "^3.3.3",
"alpinejs": "^3.7.1",
"autoprefixer": "^10.4.14",
"babel-plugin-prismjs": "^2.0.1",
"clipboard": "^2.0.10",
"laravel-vite-plugin": "^0.7.6",
"postcss": "^8.4.21",
"postcss-import": "^14.0.0",
"prismjs": "^1.22.0",
"tailwindcss": "^3.3.0",
"vite": "^4.3.9"
}
Expand Down
1 change: 0 additions & 1 deletion public/build/assets/app-409e9bd3.css

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/app-416e1687.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions public/build/assets/docs-80215298.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/docs-991ecd01.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resources/css/app.css": {
"file": "assets/app-409e9bd3.css",
"file": "assets/app-416e1687.css",
"isEntry": true,
"src": "resources/css/app.css"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"resources/js/docs.js",
"resources/js/components/accessibility.js"
],
"file": "assets/app-2c9b9d45.js",
"file": "assets/app-9f9e3ea7.js",
"isEntry": true,
"src": "resources/js/app.js"
},
Expand All @@ -51,10 +51,7 @@
"src": "resources/js/components/accessibility.js"
},
"resources/js/docs.js": {
"file": "assets/docs-80215298.js",
"imports": [
"resources/js/app.js"
],
"file": "assets/docs-991ecd01.js",
"isDynamicEntry": true,
"src": "resources/js/docs.js"
}
Expand Down
10 changes: 0 additions & 10 deletions resources/js/docs.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
import Prism from 'prismjs';
Prism.manual = true;

// highlightCode();
wrapHeadingsInAnchors();
setupNavCurrentLinkHandling();
replaceBlockquotesWithCalloutsInDocs();
highlightSupportPolicyTable();

function highlightCode() {
[...document.querySelectorAll('pre code')].forEach(el => {
Prism.highlightElement(el);
});
}

function wrapHeadingsInAnchors() {
[...document.querySelector('.docs_main').querySelectorAll('a[name]')].forEach(anchor => {
const heading = anchor.parentNode.nextElementSibling;
Expand Down
Loading

0 comments on commit fed919a

Please sign in to comment.