Skip to content

Commit e9575b2

Browse files
committed
change demo location for GH pages
1 parent 90742c9 commit e9575b2

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

agents.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ dist/ — Generated output (not in git)
1616
keepTrack.min.js.map — Sourcemap for minified build
1717
keepTrack.d.ts — TypeScript definitions
1818
tests/ — Vitest test suite (happy-dom)
19-
docs/ — Demo/test page (GitHub Pages)
19+
index.html — Demo page (GitHub Pages, served from root)
20+
styles.css — Demo page styles
2021
eslint.config.mjs — ESLint 9 flat config
2122
vitest.config.mjs — Vitest config
2223
CHANGELOG.md — Release changelog
@@ -98,5 +99,5 @@ Returns an instance with: `init(options?)`, `destroy()`, `recalculate()`, `obser
9899
- Always edit `src/keepTrack.js`, never `dist/` files directly.
99100
- Run `npm run build` after changes to regenerate dist/.
100101
- If you change the public API (options, methods, return types), update the `dts` string in `build.js` to keep type definitions in sync.
101-
- Test changes using `docs/index.html` which covers all features interactively.
102-
- The demo page loads `../src/keepTrack.js` directly (not the built version).
102+
- Test changes using `index.html` which covers all features interactively.
103+
- The demo page loads `src/keepTrack.js` directly (not the built version).

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import js from '@eslint/js';
33
export default [
44
js.configs.recommended,
55
{
6-
ignores: ['dist/**', 'node_modules/**', 'docs/**']
6+
ignores: ['dist/**', 'node_modules/**']
77
},
88
{
99
files: ['src/**/*.js'],

docs/index.html renamed to index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ <h2 id="anchor-epsilon">Epsilon</h2>
295295

296296
</main>
297297

298-
<script src="../src/keepTrack.js"></script>
298+
<script src="src/keepTrack.js"></script>
299299
<script>
300300
// ==============================
301301
// Initialize KeepTrack
File renamed without changes.

0 commit comments

Comments
 (0)