Skip to content

Commit 9cc9238

Browse files
committed
flatten newtab directory to accommodate demo site deployment workflow
1 parent 8533989 commit 9cc9238

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/deploy-demo-site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525

2626
- name: Copy shared assets
2727
run: node scripts/copy-shared.js
2828

2929
- name: Copy newtab to demo
3030
run: |
3131
mkdir -p demo
32-
cp packages/newtab/src/newtab.html demo/index.html
32+
cp packages/newtab/newtab.html demo/index.html
3333
cp packages/newtab/styles.css demo/
3434
cp packages/newtab/script.js demo/
3535
cp packages/newtab/preload.js demo/
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/configure-pages@v5
4040

4141
- name: Upload artifact
42-
uses: actions/upload-pages-artifact@v3
42+
uses: actions/upload-pages-artifact@v4
4343
with:
4444
path: "demo"
4545

packages/newtab/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
}
3535
},
3636
"chrome_url_overrides": {
37-
"newtab": "src/newtab.html"
37+
"newtab": "newtab.html"
3838
}
3939
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
<title>NoteKeeper</title>
88
<meta name="description"
99
content="NoteKeeper is a Firefox extension that transforms the New Tab into a minimalist, auto-saving text editor.">
10-
<link rel="icon" type="image/svg+xml" href="../icon.svg" />
11-
<link rel="stylesheet" href="../styles.css" />
12-
<script src="../preload.js"></script>
10+
<link rel="icon" type="image/svg+xml" href="icon.svg" />
11+
<link rel="stylesheet" href="styles.css" />
12+
<script src="preload.js"></script>
1313
</head>
1414

1515
<body>
1616
<header>
1717
<div style="display: flex; align-items: center; gap: 0.25rem;">
18-
<img src="../icon.svg" alt="NoteKeeper Logo" width="24" height="24" />
18+
<img src="icon.svg" alt="NoteKeeper Logo" width="24" height="24" />
1919
<span class="brand">NoteKeeper</span>
2020
</div>
2121

@@ -81,7 +81,7 @@
8181
</div>
8282
</footer>
8383

84-
<script type="text/javascript" src="../script.js"></script>
84+
<script type="text/javascript" src="script.js"></script>
8585
</body>
8686

8787
</html>

0 commit comments

Comments
 (0)