Skip to content

Commit 0225a49

Browse files
authored
Docs: Remove fastboot, ember-try & prember (#1018)
* Remove fastboot, ember-try & prember * Update node-version in ci docs scripts
1 parent 1cec2d7 commit 0225a49

7 files changed

Lines changed: 65 additions & 680 deletions

File tree

.github/workflows/docs.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
contents: read
1313
pages: write
1414
id-token: write
15-
15+
1616
jobs:
1717
lint:
1818
name: Lint
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 18.x
26+
node-version: 20.x
2727
cache: 'pnpm'
2828

2929
- name: 'Install dependencies'
@@ -43,13 +43,13 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v4
4545
- uses: pnpm/action-setup@v4
46-
46+
4747
- name: Install Node
4848
uses: actions/setup-node@v4
4949
with:
50-
node-version: 18.x
50+
node-version: 20.x
5151
cache: pnpm
52-
52+
5353
- name: Install Dependencies
5454
run: pnpm install --frozen-lockfile
5555

@@ -68,25 +68,28 @@ jobs:
6868
steps:
6969
- uses: actions/checkout@v4
7070
- uses: pnpm/action-setup@v4
71-
71+
7272
- name: Install Node
7373
uses: actions/setup-node@v4
7474
with:
75-
node-version: 18.x
75+
node-version: 20.x
7676
cache: pnpm
77-
77+
7878
- name: Install Dependencies
7979
run: pnpm install --frozen-lockfile
8080

8181
- run: pnpm build
8282
- run: pnpm i -f # re-sync injected deps
83-
83+
8484
- name: Run Tests
8585
run: pnpm --filter docs build
86-
86+
87+
- name: Copy 404 page
88+
run: cp ./docs/404.html ./docs/dist/404.html
89+
8790
- name: Setup Pages
8891
uses: actions/configure-pages@v5
89-
92+
9093
- name: Upload artifact
9194
uses: actions/upload-pages-artifact@v3
9295
with:
@@ -102,4 +105,4 @@ jobs:
102105
steps:
103106
- name: Deploy to GitHub Pages
104107
id: deployment
105-
uses: actions/deploy-pages@v4
108+
uses: actions/deploy-pages@v4

.github/workflows/push-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- uses: actions/setup-node@v4
2727
with:
28-
node-version: 18
28+
node-version: 20
2929
cache: 'pnpm'
3030
- name: Install Dependencies
3131
run: pnpm install --frozen-lockfile

docs/404.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Ember Basic Dropdown</title>
6+
<script type="text/javascript">
7+
// Single Page Apps for GitHub Pages
8+
// MIT License
9+
// https://github.com/rafgraph/spa-github-pages
10+
// This script takes the current url and converts the path and query
11+
// string into just a query string, and then redirects the browser
12+
// to the new url with only a query string and hash fragment,
13+
// e.g. https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
14+
// https://www.foo.tld/?/one/two&a=b~and~c=d#qwe
15+
// Note: this 404.html file must be at least 512 bytes for it to work
16+
// with Internet Explorer (it is currently > 512 bytes)
17+
18+
// If you're creating a Project Pages site and NOT using a custom domain,
19+
// then set pathSegmentsToKeep to 1 (enterprise users may need to set it to > 1).
20+
// This way the code will only replace the route part of the path, and not
21+
// the real directory in which the app resides, for example:
22+
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
23+
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
24+
// Otherwise, leave pathSegmentsToKeep as 0.
25+
var pathSegmentsToKeep = 0;
26+
27+
var l = window.location;
28+
l.replace(
29+
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
30+
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
31+
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
32+
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
33+
l.hash
34+
);
35+
36+
</script>
37+
</head>
38+
<body>
39+
</body>
40+
</html>

docs/config/ember-try.js

Lines changed: 0 additions & 92 deletions
This file was deleted.

docs/ember-cli-build.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
'use strict';
22

33
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
4-
const crawl = require('prember-crawler');
54

65
module.exports = function (defaults) {
76
const app = new EmberApp(defaults, {
87
'ember-cli-babel': { enableTypeScriptTransform: true },
98
snippetPaths: ['app/components/snippets'],
10-
prember: {
11-
urls: crawl,
12-
},
139
autoImport: {
1410
watchDependencies: ['ember-basic-dropdown'],
1511
},

docs/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
"lint:types": "glint",
2626
"start": "ember serve",
2727
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\" --prefixColors auto",
28-
"test:ember": "ember test",
29-
"test:ember-try": "ember try:one",
30-
"test:ember-compatibility": "ember try:each"
28+
"test:ember": "ember test"
3129
},
3230
"dependenciesMeta": {
3331
"ember-basic-dropdown": {
@@ -62,7 +60,6 @@
6260
"ember-cli-clean-css": "^3.0.0",
6361
"ember-cli-dependency-checker": "^3.3.3",
6462
"ember-cli-deprecation-workflow": "^3.4.0",
65-
"ember-cli-fastboot": "^4.1.5",
6663
"ember-cli-htmlbars": "^6.3.0",
6764
"ember-cli-inject-live-reload": "^2.1.0",
6865
"ember-cli-sass": "^11.0.1",
@@ -80,16 +77,13 @@
8077
"ember-template-imports": "^4.3.0",
8178
"ember-template-lint": "^7.9.3",
8279
"ember-truth-helpers": "^5.0.0",
83-
"ember-try": "^4.0.0",
8480
"eslint": "^9.39.1",
8581
"eslint-config-prettier": "^10.1.8",
8682
"eslint-plugin-ember": "^12.7.4",
8783
"eslint-plugin-n": "^17.23.1",
8884
"eslint-plugin-qunit": "^8.2.5",
8985
"globals": "^16.5.0",
9086
"loader.js": "^4.7.0",
91-
"prember": "~2.1.0",
92-
"prember-crawler": "^1.0.0",
9387
"prettier": "^3.6.2",
9488
"prettier-plugin-ember-template-tag": "^2.1.0",
9589
"qunit": "^2.24.2",

0 commit comments

Comments
 (0)