Skip to content

Commit a666c4b

Browse files
authored
Merge pull request #215 from AFASSoftware/migrate-to-maquette-js-org
Migrate website from maquettejs.org to maquette.js.org
2 parents 335fd3c + 61f86b7 commit a666c4b

File tree

13 files changed

+80
-15
lines changed

13 files changed

+80
-15
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Deploy website to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v6
22+
23+
- name: Use Node.js 20.x
24+
uses: actions/setup-node@v6
25+
with:
26+
node-version: 20.x
27+
cache: npm
28+
29+
- name: Install root dependencies
30+
run: npm ci
31+
32+
- name: Build library (needed for typedoc)
33+
run: npm run dist
34+
35+
- name: Install website dependencies
36+
working-directory: website
37+
run: npm install --no-optional --force
38+
39+
- name: Build website
40+
working-directory: website
41+
run: npm run build
42+
43+
- name: Upload Pages artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: website/build/website
47+
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Compared to other virtual DOM implementations, maquette has the following advant
1111

1212
* It is very lightweight (3.7Kb gzipped)
1313
* It allows changes to be animated
14-
* It makes your frontend [easy to unit-test](https://maquettejs.org/docs/unit-testing.html)
14+
* It makes your frontend [easy to unit-test](https://maquette.js.org/docs/unit-testing.html)
1515

16-
Visit the [website](https://maquettejs.org) for more information.
16+
Visit the [website](https://maquette.js.org) for more information.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "maquette",
33
"main": "dist/maquette.js",
44
"version": "2.5.4",
5-
"homepage": "http://maquettejs.org/",
5+
"homepage": "https://maquette.js.org/",
66
"authors": [
77
"Johan Gorter <johan@johangorter.com>"
88
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"workspaces": [
77
"browser-tests"
88
],
9-
"homepage": "https://maquettejs.org/",
9+
"homepage": "https://maquette.js.org/",
1010
"keywords": [
1111
"virtual",
1212
"dom",

src/h.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let appendChildren = (parentSelector: string, insertions: VNodeChild[], main: VN
4040
*
4141
* @returns A VNode object, used to render a real DOM later.
4242
*
43-
* NOTE: There are {@link http://maquettejs.org/docs/rules.html two basic rules} you should be aware of when updating the virtual DOM.
43+
* NOTE: There are {@link https://maquette.js.org/docs/rules.html two basic rules} you should be aware of when updating the virtual DOM.
4444
*/
4545
export function h(
4646
selector: string,
@@ -60,7 +60,7 @@ export function h(
6060
*
6161
* @returns A VNode object, used to render a real DOM later.
6262
*
63-
* NOTE: There are {@link http://maquettejs.org/docs/rules.html two basic rules} you should be aware of when updating the virtual DOM.
63+
* NOTE: There are {@link https://maquette.js.org/docs/rules.html two basic rules} you should be aware of when updating the virtual DOM.
6464
*/
6565
export function h(selector: string, children: VNodeChild[]): VNode;
6666

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* interactive web applications. To get started, use {@link createProjector} to create a projector
77
* that manages the rendering lifecycle, and use the {@link h} function to create virtual DOM nodes.
88
*
9-
* {@link https://maquettejs.org/ | ← Back to the maquette homepage}
9+
* {@link https://maquette.js.org/ | ← Back to the maquette homepage}
1010
* @module
1111
*/
1212
export { createCache } from "./cache";

src/interfaces.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export interface VNode {
103103
export interface VNodeProperties {
104104
/**
105105
* The animation to perform when this node is added to an already existing parent.
106-
* {@link http://maquettejs.org/docs/animations.html More about animations}.
106+
* {@link https://maquette.js.org/docs/animations.html More about animations}.
107107
* @param element - Element that was just added to the DOM.
108108
* @param properties - The properties object that was supplied to the {@link h} method
109109
*/
@@ -120,7 +120,7 @@ export interface VNodeProperties {
120120
/**
121121
* The animation to perform when the properties of this node change.
122122
* This also includes attributes, styles, css classes. This callback is also invoked when node contains only text and that text changes.
123-
* {@link http://maquettejs.org/docs/animations.html More about animations}.
123+
* {@link https://maquette.js.org/docs/animations.html More about animations}.
124124
* @param element - Element that was modified in the DOM.
125125
* @param properties - The last properties object that was supplied to the {@link h} method
126126
* @param previousProperties - The previous properties object that was supplied to the {@link h} method
@@ -166,7 +166,7 @@ export interface VNodeProperties {
166166
/**
167167
* Callback that is called when a node has been removed from the tree.
168168
* The callback is called during idle state or after a timeout (fallback).
169-
* {@link https://maquettejs.org/docs/dom-node-removal.html More info}
169+
* {@link https://maquette.js.org/docs/dom-node-removal.html More info}
170170
* @param element - The element that has been removed from the DOM.
171171
*/
172172
afterRemoved?(element: Element): void;
@@ -402,7 +402,7 @@ export interface ProjectionOptions extends ProjectorOptions {
402402

403403
/**
404404
* Keeps an array of result objects synchronized with an array of source objects.
405-
* See {@link http://maquettejs.org/docs/arrays.html Working with arrays}.
405+
* See {@link https://maquette.js.org/docs/arrays.html Working with arrays}.
406406
*
407407
* Mapping provides a {@link map} function that updates its {@link results}.
408408
* The {@link map} function can be called multiple times and the results will get created, removed and updated accordingly.

src/mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Mapping } from "./interfaces";
22

33
/**
44
* Creates a {@link Mapping} instance that keeps an array of result objects synchronized with an array of source objects.
5-
* See {@link http://maquettejs.org/docs/arrays.html Working with arrays}.
5+
* See {@link https://maquette.js.org/docs/arrays.html Working with arrays}.
66
*
77
* @param <Source> The type of source items. A database-record for instance.
88
* @param <Target> The type of target items. A {@link MaquetteComponent} for instance.

website/firebase.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
"firebase.json",
66
"**/.*",
77
"**/node_modules/**"
8+
],
9+
"redirects": [
10+
{
11+
"source": "/:path*",
12+
"destination": "https://maquette.js.org/:path",
13+
"type": 301
14+
}
815
]
916
}
1017
}

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "maquette-website",
33
"description": "Website for maquette",
4-
"homepage": "https://maquettejs.org/",
4+
"homepage": "https://maquette.js.org/",
55
"version": "1.0.0",
66
"author": "Johan Gorter <johan@johangorter.com>",
77
"repository": {

0 commit comments

Comments
 (0)