Skip to content

Commit

Permalink
refactor: rename scripts to reflect what they're used for
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Dec 10, 2024
1 parent 031fb90 commit 0fc15d2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions scripts/shoelace.js → scripts/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
limitations under the License.
*/

import '../node_modules/@shoelace-style/shoelace/dist/components/details/details.js';
import '../node_modules/@shoelace-style/shoelace/dist/components/tree/tree.js';
import '../node_modules/@shoelace-style/shoelace/dist/components/tree-item/tree-item.js';
import '@shoelace-style/shoelace/dist/components/details/details.js';
import '@shoelace-style/shoelace/dist/components/tree/tree.js';
import '@shoelace-style/shoelace/dist/components/tree-item/tree-item.js';

import { setDefaultAnimation } from '../node_modules/@shoelace-style/shoelace/dist/utilities/animation-registry.js';
import { setDefaultAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';

const HIDE_UNTIL_READY = ['sl-details', 'sl-tree'];

Expand Down
1 change: 1 addition & 0 deletions static/scripts/navbar.js

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

1 change: 0 additions & 1 deletion static/scripts/scrollanchor.js

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions views/layouts/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@

{%- block body_scripts %}
{#- TODO: fix up path relative to current output directory -#}
<script src="scripts/scrollanchor.js"></script>
<script src="scripts/shoelace.js"></script>
<script src="scripts/navbar.js"></script>
<script src="scripts/toc.js"></script>
{% endblock -%}
</body>
{% endblock -%}
Expand Down

0 comments on commit 0fc15d2

Please sign in to comment.