Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
contents: read
pages: write
id-token: write

jobs:
lint:
name: Lint
Expand All @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
cache: 'pnpm'

- name: 'Install dependencies'
Expand All @@ -43,13 +43,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile

Expand All @@ -68,25 +68,28 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- run: pnpm build
- run: pnpm i -f # re-sync injected deps

- name: Run Tests
run: pnpm --filter docs build


- name: Copy 404 page
run: cp ./docs/404.html ./docs/dist/404.html

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -102,4 +105,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
Expand Down
40 changes: 40 additions & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Basic Dropdown</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script takes the current url and converts the path and query
// string into just a query string, and then redirects the browser
// to the new url with only a query string and hash fragment,
// e.g. https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
// https://www.foo.tld/?/one/two&a=b~and~c=d#qwe
// Note: this 404.html file must be at least 512 bytes for it to work
// with Internet Explorer (it is currently > 512 bytes)

// If you're creating a Project Pages site and NOT using a custom domain,
// then set pathSegmentsToKeep to 1 (enterprise users may need to set it to > 1).
// This way the code will only replace the route part of the path, and not
// the real directory in which the app resides, for example:
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.
var pathSegmentsToKeep = 0;

var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);

</script>
</head>
<body>
</body>
</html>
92 changes: 0 additions & 92 deletions docs/config/ember-try.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs/ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
'use strict';

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

module.exports = function (defaults) {
const app = new EmberApp(defaults, {
'ember-cli-babel': { enableTypeScriptTransform: true },
snippetPaths: ['app/components/snippets'],
prember: {
urls: crawl,
},
autoImport: {
watchDependencies: ['ember-basic-dropdown'],
},
Expand Down
8 changes: 1 addition & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
"lint:types": "glint",
"start": "ember serve",
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\" --prefixColors auto",
"test:ember": "ember test",
"test:ember-try": "ember try:one",
"test:ember-compatibility": "ember try:each"
"test:ember": "ember test"
},
"dependenciesMeta": {
"ember-basic-dropdown": {
Expand Down Expand Up @@ -62,7 +60,6 @@
"ember-cli-clean-css": "^3.0.0",
"ember-cli-dependency-checker": "^3.3.3",
"ember-cli-deprecation-workflow": "^3.4.0",
"ember-cli-fastboot": "^4.1.5",
"ember-cli-htmlbars": "^6.3.0",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sass": "^11.0.1",
Expand All @@ -80,16 +77,13 @@
"ember-template-imports": "^4.3.0",
"ember-template-lint": "^7.9.3",
"ember-truth-helpers": "^5.0.0",
"ember-try": "^4.0.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-ember": "^12.7.4",
"eslint-plugin-n": "^17.23.1",
"eslint-plugin-qunit": "^8.2.5",
"globals": "^16.5.0",
"loader.js": "^4.7.0",
"prember": "~2.1.0",
"prember-crawler": "^1.0.0",
"prettier": "^3.6.2",
"prettier-plugin-ember-template-tag": "^2.1.0",
"qunit": "^2.24.2",
Expand Down
Loading