Skip to content

Commit 0a3dc01

Browse files
authored
📜 Add directions on where to save custom js. (mintlify#270)
1 parent 59ac8bb commit 0a3dc01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎advanced/custom/js.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ description: 'Add JavaScript functionality globally'
99

1010
Custom JS allows you to add custom executable code globally. It is the equivalent of adding a `<script>` tag with JS code into every page.
1111

12-
## Adding script.js
12+
## Adding Custom JavaScript
1313

14-
For example, you can add the following `script.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.
14+
Any `.js` file inside the content directory of your docs will be included in every documentation page. For example, you can add the following `ga.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.
1515

1616
```js
1717
window.dataLayer = window.dataLayer || [];

0 commit comments

Comments
 (0)