diff --git a/_config.yml b/_config.yml
index f09b7c8b5..22b377846 100644
--- a/_config.yml
+++ b/_config.yml
@@ -9,7 +9,7 @@ language: en
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
-url: https://konvajs.github.io
+url: https://konvajs.org
root: /
permalink: news/:year/:month/:day/:title/
tag_dir: tags
@@ -78,7 +78,7 @@ disqus_shortname: konvajs
## Themes: https://github.com/tommy351/hexo/wiki/Themes
theme: hexo3
exclude_generator:
-- home
+ - home
# Deployment
## Docs: http://hexo.io/docs/deployment.html
diff --git a/jsdoc.json b/jsdoc.json
index 09b491422..22de9e862 100644
--- a/jsdoc.json
+++ b/jsdoc.json
@@ -27,7 +27,7 @@
"highlightTutorialCode": true,
"analytics": {
"ua": "UA-54202824-2",
- "domain": "https://konvajs.github.io"
+ "domain": "https://konvajs.org"
},
"outputSourceFiles": false
},
diff --git a/react-demos/images/src/index.js b/react-demos/images/src/index.js
index 654bb56b5..c2b032633 100755
--- a/react-demos/images/src/index.js
+++ b/react-demos/images/src/index.js
@@ -3,9 +3,9 @@ import { render } from 'react-dom';
import { Stage, Layer, Image } from 'react-konva';
import useImage from 'use-image';
-// the first very simple and recomended way:
+// the first very simple and recommended way:
const LionImage = () => {
- const [image] = useImage('https://konvajs.github.io/assets/lion.png');
+ const [image] = useImage('https://konvajs.org/assets/lion.png');
return ;
};
@@ -65,7 +65,7 @@ class App extends Component {
return (
-
+
diff --git a/source/docs/animations/Create_an_Animation.md b/source/docs/animations/Create_an_Animation.md
index 4edd12e4f..f7b53d90a 100644
--- a/source/docs/animations/Create_an_Animation.md
+++ b/source/docs/animations/Create_an_Animation.md
@@ -16,7 +16,7 @@ The update function should only contain logic that updates Node properties,
such as `position`, `rotation`, `scale`, `width`, `height`, `radius`, `colors`, etc.
Once the animation has been created, we can start it at anytime with the `start()` method.
-For a full list of attributes and methods, check out the [Konva.Animation documentation](https://konvajs.github.io/api/Konva.Animation.html).
+For a full list of attributes and methods, check out the [Konva.Animation documentation](/api/Konva.Animation.html).
## HTML5 Canvas Konva Animation Template
diff --git a/source/docs/animations/Moving.md b/source/docs/animations/Moving.md
index 46d1ac926..1cf4342e6 100644
--- a/source/docs/animations/Moving.md
+++ b/source/docs/animations/Moving.md
@@ -4,7 +4,7 @@ title: HTML5 Canvas Animate Position Tutorial
To animate a shape's position with Konva, we can create a new animation with `Konva.Animation`
which modifies the shape's position with each animation frame.
-For a full list of attributes and methods, check out the [Konva.Animation documentation](https://konvajs.github.io/api/Konva.Animation.html).
+For a full list of attributes and methods, check out the [Konva.Animation documentation](/api/Konva.Animation.html).
{% iframe /downloads/code/animations/Moving.html %}
diff --git a/source/docs/animations/Rotation.md b/source/docs/animations/Rotation.md
index d0ee29c7a..a1be1664b 100644
--- a/source/docs/animations/Rotation.md
+++ b/source/docs/animations/Rotation.md
@@ -7,7 +7,7 @@ To animate a shape's rotation with Konva, we can create a new animation with
In this tutorial, we'll rotate a blue rectangle about the top left corner,
a yellow rectangle about its center, and a red rectangle about an outside point.
-For a full list of attributes and methods, check out the [Konva.Animation documentation](https://konvajs.github.io/api/Konva.Animation.html).
+For a full list of attributes and methods, check out the [Konva.Animation documentation]/api/Konva.Animation.html).
{% iframe /downloads/code/animations/Rotation.html %}
diff --git a/source/docs/animations/Scaling.md b/source/docs/animations/Scaling.md
index 6217e9770..1178fb718 100644
--- a/source/docs/animations/Scaling.md
+++ b/source/docs/animations/Scaling.md
@@ -9,7 +9,7 @@ of a yellow hexagon, and the x component of a red hexagon about an axis position
Instructions: drag and drop the hexagons as they animate
-For a full list of attributes and methods, check out the [Konva.Animation documentation](https://konvajs.github.io/api/Konva.Animation.html).
+For a full list of attributes and methods, check out the [Konva.Animation documentation](/api/Konva.Animation.html).
{% iframe /downloads/code/animations/Scaling.html %}
diff --git a/source/docs/animations/Stop_Animation.md b/source/docs/animations/Stop_Animation.md
index 9a9412c2d..8f04c67ef 100644
--- a/source/docs/animations/Stop_Animation.md
+++ b/source/docs/animations/Stop_Animation.md
@@ -6,7 +6,7 @@ To restart the animation, we can again call the `start()`.
Instructions: Click on "Start" to start the animation and "Stop" to stop the animation.
-For a full list of attributes and methods, check out the [Konva.Animation documentation](https://konvajs.github.io/api/Konva.Animation.html).
+For a full list of attributes and methods, check out the [Konva.Animation documentation](/api/Konva.Animation.html).
{% iframe /downloads/code/animations/Stop_Animation.html %}
diff --git a/source/docs/clipping/Clipping_Regions.md b/source/docs/clipping/Clipping_Regions.md
index 600776ad6..2e545d34a 100644
--- a/source/docs/clipping/Clipping_Regions.md
+++ b/source/docs/clipping/Clipping_Regions.md
@@ -6,7 +6,7 @@ property of a group or a layer.
Clipping regions are defined by an `x`, `y`, `width`, and `height`. In this tutorial,
we'll draw blobs inside of a rectangular clipping region applied to a group.
-For more complex cases take a look into clipping function. [Clipping Function](https://konvajs.github.io/docs/clipping/Clipping_Function.html)
+For more complex cases take a look into clipping function. [Clipping Function](/docs/clipping/Clipping_Function.html)
{% iframe /downloads/code/clipping/Clipping_Regions.html %}
diff --git a/source/docs/filters/Blur.md b/source/docs/filters/Blur.md
index 9a9349733..3ba17e65c 100644
--- a/source/docs/filters/Blur.md
+++ b/source/docs/filters/Blur.md
@@ -9,7 +9,7 @@ and set the blur amount with the `blurRadius` property.
Instructions: Slide the control to adjust the blur radius.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Blur.html %}
diff --git a/source/docs/filters/Brighten.md b/source/docs/filters/Brighten.md
index 95dce4013..3a2391c5a 100644
--- a/source/docs/filters/Brighten.md
+++ b/source/docs/filters/Brighten.md
@@ -11,7 +11,7 @@ Negative values darken the image, and positive values brighten the image.
Instructions: Slide the control to adjust the brightness
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Brighten.html %}
diff --git a/source/docs/filters/Contrast.md b/source/docs/filters/Contrast.md
index 69c0ba27e..b89786f9b 100644
--- a/source/docs/filters/Contrast.md
+++ b/source/docs/filters/Contrast.md
@@ -8,7 +8,7 @@ To change contrast of an image with Konva, we can use the `Konva.Filters.Contras
Instructions: Slide the control to change contrast value.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Contrast.html %}
diff --git a/source/docs/filters/Custom_Filter.md b/source/docs/filters/Custom_Filter.md
index 4f6a2f94a..cd62d3072 100644
--- a/source/docs/filters/Custom_Filter.md
+++ b/source/docs/filters/Custom_Filter.md
@@ -19,7 +19,7 @@ In this demo we will create custom filter that will draw solid border around ima
Since following contour is a complex thing we will use a hack. So we will use blurred shadow as a border foundation.
We will replace transparent/blurred pixels with our solid color that we want for border.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Custom_Filter.html %}
diff --git a/source/docs/filters/Emboss.md b/source/docs/filters/Emboss.md
index f147641bb..7e8cf2cc7 100644
--- a/source/docs/filters/Emboss.md
+++ b/source/docs/filters/Emboss.md
@@ -6,7 +6,7 @@ function. Then apply filter with `filter()` function.
Instructions: Slide the controls to change emboss values.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Emboss.html %}
diff --git a/source/docs/filters/Enhance.md b/source/docs/filters/Enhance.md
index eff3d39c2..b1a1d7a8c 100644
--- a/source/docs/filters/Enhance.md
+++ b/source/docs/filters/Enhance.md
@@ -9,7 +9,7 @@ and set the enhance amount with the `enhance` property.
Instructions: Slide the control to adjust the enhance value.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Enhance.html %}
diff --git a/source/docs/filters/Grayscale.md b/source/docs/filters/Grayscale.md
index dd2295ae9..c28ecba52 100644
--- a/source/docs/filters/Grayscale.md
+++ b/source/docs/filters/Grayscale.md
@@ -6,7 +6,7 @@ To apply filter to an `Konva.Image`, we have to cache it first with `cache()` fu
To invert the colors of an image with Konva, we can use the
`Konva.Filters.Grayscale` filter.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Grayscale.html %}
diff --git a/source/docs/filters/HSL.md b/source/docs/filters/HSL.md
index 0c7e85d54..41e8159a6 100644
--- a/source/docs/filters/HSL.md
+++ b/source/docs/filters/HSL.md
@@ -7,7 +7,7 @@ To change hue, saturation and luminance components of an image with Konva, we ca
Instructions: Slide the controls to change hsl values.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/HSL.html %}
diff --git a/source/docs/filters/HSV.md b/source/docs/filters/HSV.md
index 915f6302a..19a508cad 100644
--- a/source/docs/filters/HSV.md
+++ b/source/docs/filters/HSV.md
@@ -7,7 +7,7 @@ To change hue, saturation and value components of an image with Konva, we can us
Instructions: Slide the controls to change hsv values.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/HSV.html %}
diff --git a/source/docs/filters/Invert.md b/source/docs/filters/Invert.md
index 9eb6085f8..c118978b3 100644
--- a/source/docs/filters/Invert.md
+++ b/source/docs/filters/Invert.md
@@ -6,7 +6,7 @@ To apply filter to an `Konva.Image`, we have to cache it first with `cache()` fu
To invert the colors of an image with Konva, we can use the
`Konva.Filters.Invert` filter.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Invert.html %}
diff --git a/source/docs/filters/Kaleidoscope.md b/source/docs/filters/Kaleidoscope.md
index 89ad755ee..7caf86685 100644
--- a/source/docs/filters/Kaleidoscope.md
+++ b/source/docs/filters/Kaleidoscope.md
@@ -9,7 +9,7 @@ filter and set the `kaleidoscopePower` and `kaleidoscopeAngle` properties.
Instructions: Slide the control to adjust the kaleidoscope angle.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Kaleidoscope.html %}
diff --git a/source/docs/filters/Mask.md b/source/docs/filters/Mask.md
index fa4eeed1e..3001dead2 100644
--- a/source/docs/filters/Mask.md
+++ b/source/docs/filters/Mask.md
@@ -6,7 +6,7 @@ To apply filter to an `Konva.Image`, we have to cache it first with `cache()` fu
To mark the colors of an image with Konva, we can use the
`Konva.Filters.Mask` filter.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Mask.html %}
diff --git a/source/docs/filters/Multiple_Filters.md b/source/docs/filters/Multiple_Filters.md
index 15bc759b3..7a507b8a2 100644
--- a/source/docs/filters/Multiple_Filters.md
+++ b/source/docs/filters/Multiple_Filters.md
@@ -4,7 +4,7 @@ title: HTML5 Canvas Multiple Filters Tutorial
To apply multiple filters to an `Konva.Image`, we have to cache it first with `cache()`
function. Then apply filters with `filter()` function.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Multiple_Filters.html %}
diff --git a/source/docs/filters/Noise.md b/source/docs/filters/Noise.md
index 701afaed8..f505aca57 100644
--- a/source/docs/filters/Noise.md
+++ b/source/docs/filters/Noise.md
@@ -8,7 +8,7 @@ To change noise of an image with Konva, we can use the `Konva.Filters.Noise`.
Instructions: Slide the control to change noise value.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Noise.html %}
diff --git a/source/docs/filters/Pixelate.md b/source/docs/filters/Pixelate.md
index a0eb733e9..846476f2d 100644
--- a/source/docs/filters/Pixelate.md
+++ b/source/docs/filters/Pixelate.md
@@ -8,7 +8,7 @@ To change pixelate effect of an image with Konva, we can use the `Konva.Filters.
Instructions: Slide the control to change pixel size value.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/Pixelate.html %}
diff --git a/source/docs/filters/RGB.md b/source/docs/filters/RGB.md
index 86a9f4606..3c6308d27 100644
--- a/source/docs/filters/RGB.md
+++ b/source/docs/filters/RGB.md
@@ -8,7 +8,7 @@ To change rgb components of an image with Konva, we can use the `Konva.Filters.R
Instructions: Slide the controls to change rgb values.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/RGB.html %}
diff --git a/source/docs/filters/RGBA.md b/source/docs/filters/RGBA.md
index 43c549e8c..39788764e 100644
--- a/source/docs/filters/RGBA.md
+++ b/source/docs/filters/RGBA.md
@@ -8,7 +8,7 @@ To change rgba components of an image with Konva, we can use the `Konva.Filters.
Instructions: Slide the controls to change rgba values.
-For all available filters go to [Filters Documentation](https://konvajs.github.io/api/Konva.Filters.html).
+For all available filters go to [Filters Documentation](/api/Konva.Filters.html).
{% iframe /downloads/code/filters/RGBA.html %}
diff --git a/source/docs/groups_and_layers/Groups.md b/source/docs/groups_and_layers/Groups.md
index 7409c471b..0f3640817 100644
--- a/source/docs/groups_and_layers/Groups.md
+++ b/source/docs/groups_and_layers/Groups.md
@@ -6,7 +6,7 @@ a `Konva.Group()` object and then add shapes to it with the `add()` method.
Grouping shapes together is really handy when we want to transform multiple
shapes together, e.g. if we want to move, rotate, or scale multiple shapes
at once. Groups can also be added to other groups to create more complex
-Node trees. For a full list of attributes and methods, check out the [Konva.Group documentation](https://konvajs.github.io/api/Konva.Group.html).
+Node trees. For a full list of attributes and methods, check out the [Konva.Group documentation](/api/Konva.Group.html).
{% iframe /downloads/code/groups_and_layers/Groups.html %}
diff --git a/source/docs/overview.md b/source/docs/overview.md
index fa3b50c6f..78f4f9136 100644
--- a/source/docs/overview.md
+++ b/source/docs/overview.md
@@ -152,12 +152,12 @@ circle.on('dragend', function() {
console.log('drag stopped');
});
```
-See [working example](https://konvajs.github.io/docs/events/Binding_Events.html).
+See [working example](/docs/events/Binding_Events.html).
## DRAG AND DROP
`Konva` has builtin drag support. For the current moment there is no `drop` events (`drop`, `dragenter`, `dragleave`, `dragover`)
-but it is very easy to implement them [via framework](https://konvajs.github.io/docs/drag_and_drop/Drop_Events.html).
+but it is very easy to implement them [via framework](/docs/drag_and_drop/Drop_Events.html).
To enable drag&drop just set property draggable = true.
@@ -165,11 +165,11 @@ To enable drag&drop just set property draggable = true.
shape.draggable('true');
```
-Then you can subscribe to drag&drop events and setup [moving limits](https://konvajs.github.io/docs/drag_and_drop/Complex_Drag_and_Drop.html).
+Then you can subscribe to drag&drop events and setup [moving limits](/docs/drag_and_drop/Complex_Drag_and_Drop.html).
## Filters
-`Konva` has several filters: blur, invert, noise etc. For all available filters see [Filters API](https://konvajs.github.io/api/Konva.Filters.html).
+`Konva` has several filters: blur, invert, noise etc. For all available filters see [Filters API](/api/Konva.Filters.html).
Example:
![Filter](/assets/overview-filter.png)
@@ -178,7 +178,7 @@ Example:
You can create animations in two ways:
-1. via `Konva.Animation` [Demo](https://konvajs.github.io/docs/animations/Moving.html):
+1. via `Konva.Animation` [Demo](/docs/animations/Moving.html):
```
var anim = new Konva.Animation(function(frame) {
var time = frame.time,
@@ -189,7 +189,7 @@ var anim = new Konva.Animation(function(frame) {
anim.start();
```
-2. via `Konva.Tween` [Demo](https://konvajs.github.io/docs/tweens/Linear_Easing.html):
+2. via `Konva.Tween` [Demo](/docs/tweens/Linear_Easing.html):
```
var tween = new Konva.Tween({
node: rect,
@@ -254,11 +254,11 @@ var stage = Konva.Node.create(json, 'container');
```
shape.cache();
```
-[Demo](https://konvajs.github.io/docs/performance/Shape_Caching.html)
+[Demo](/docs/performance/Shape_Caching.html)
2. Layering. As framework supports several `