> For the complete documentation index, see [llms.txt](https://docs.exile.watch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exile.watch/projects/nucleus/contributing-scripts/scripts-definition.md).

# Scripts definition

<figure><img src="/files/phOqyIiKbklQTpQi6Q8A" alt="" width="200"><figcaption><p>exile.watch logo</p></figcaption></figure>

Every script is taking a part of auto-generating data content on the website.

There are 3 rules:

1. `extract-*-tokens.js` scripts always goes first.
2. Order of other scripts when they fire don't matter after that step.
3. `clean-invalid-data-files.js` always goes last.

| script                        | description                                                                          |
| ----------------------------- | ------------------------------------------------------------------------------------ |
| `extract-*-tokens.js`         | Converts `.yml` token files to `.json` format                                        |
| `build-indexed-search.js`     | Refines extracted data to retain only what is necessary for the `search input`       |
| `build-paths.js`              | Refines extracted data to retain only what is necessary for the `sidebar navigation` |
| `clean-invalid-data-files.js` | Removes files that have had their `file name` updated                                |
