Skip to content

Commit d5ea034

Browse files
authoredMar 4, 2025··
Merge pull request #583 from pixijs/docs-to-subdomain
Docs to subdomain
2 parents d61711a + 3308e0b commit d5ea034

File tree

14 files changed

+14
-13
lines changed

14 files changed

+14
-13
lines changed
 

‎docs/static/CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
react.pixijs.io

‎docs/versioned_docs/version-7.x/about.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { BlurFilter, TextStyle } from 'pixi.js';
44

55
export default function App() {
66
const blurFilter = useMemo(() => new BlurFilter(2), []);
7-
const bunnyUrl = 'https://pixijs.io/pixi-react/img/bunny.png';
7+
const bunnyUrl = 'https://react.pixijs.io/img/bunny.png';
88
return (
99
<Stage width={800} height={600} options={{ background: 0x1099bb }}>
1010
<Sprite image={bunnyUrl} x={300} y={150} />

‎docs/versioned_docs/version-7.x/about.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import { Stage, Container, Sprite, Text } from '@pixi/react';
6969

7070
const App = () => {
7171
const blurFilter = useMemo(() => new BlurFilter(2), []);
72-
const bunnyUrl = 'https://pixijs.io/pixi-react/v7/img/bunny.png';
72+
const bunnyUrl = 'https://react.pixijs.io/v7/img/bunny.png';
7373
return (
7474
<Stage width={800} height={600} options={{ background: 0x1099bb }}>
7575
<Sprite image={bunnyUrl} x={300} y={150} />

‎docs/versioned_docs/version-7.x/components/BitmapText.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function App() {
1111
<Stage width={500} height={300} options={{ backgroundColor: 0xffffff }}>
1212
<ExampleAssetLoader
1313
name='desyrel'
14-
url='https://pixijs.io/pixi-react/font/desyrel.xml'
14+
url='https://react.pixijs.io/font/desyrel.xml'
1515
loader={<Text {...position} text='⌛ Loading font...' style={{ fontFamily: 'Arial', fontSize: 15 }} />}
1616
>
1717
<BitmapText {...position} text='Hello World!' style={{ fontName: 'Desyrel', fontSize: 50 }} />

‎docs/versioned_docs/version-7.x/components/Container.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Container, Stage, Sprite } from '@pixi/react';
22

33
export default function App() {
4-
const url = 'https://pixijs.io/pixi-react/img/bunny.png';
4+
const url = 'https://react.pixijs.io/img/bunny.png';
55
return (
66
<Stage width={300} height={300} options={{ backgroundColor: 0xeef1f5 }}>
77
<Container position={[150, 150]}>

‎docs/versioned_docs/version-7.x/components/NineSlicePlane.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function NineSlicePlaneExample() {
1414
height={300}
1515
x={250}
1616
y={120}
17-
image='https://pixijs.io/pixi-react/img/speech-bubble.png'
17+
image='https://react.pixijs.io/img/speech-bubble.png'
1818
/>
1919
</Stage>
2020
);

‎docs/versioned_docs/version-7.x/components/ParticleContainer.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ExampleAssetLoader from './ExampleAssetLoader';
33

44
export default function ParticleContainerExample() {
55
return (
6-
<ExampleAssetLoader name='bunny' url='https://pixijs.io/pixi-react/img/bunny.png'>
6+
<ExampleAssetLoader name='bunny' url='https://react.pixijs.io/img/bunny.png'>
77
<Stage width={300} height={300} options={{ backgroundColor: 0xffffff }}>
88
<ParticleContainer position={[150, 150]} properties={{ position: true }}>
99
<Sprite anchor={0.5} x={-75} y={-75} image='bunny' />

‎docs/versioned_docs/version-7.x/components/SimpleMesh/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function SimpleMeshExample() {
88
return (
99
<Stage width={500} height={300} options={{ backgroundColor: 0xeef1f5 }}>
1010
<SimpleMesh
11-
image='https://pixijs.io/pixi-react/img/mesh-placeholder.png'
11+
image='https://react.pixijs.io/img/mesh-placeholder.png'
1212
uvs={uvs}
1313
vertices={vertices}
1414
indices={indices}

‎docs/versioned_docs/version-7.x/components/SimpleRope.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function SimpleRopeExample() {
1212
new Point(200, 100),
1313
new Point(400, 150),
1414
]}
15-
image={'https://pixijs.io/pixi-react/img/snake.png'}
15+
image={'https://react.pixijs.io/img/snake.png'}
1616
/>
1717
</Stage>
1818
);

‎docs/versioned_docs/version-7.x/components/Sprite.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function SpriteExample() {
44
return (
55
<Stage width={300} height={300} options={{ backgroundColor: 0xeef1f5 }}>
66
<Sprite
7-
image='https://pixijs.io/pixi-react/img/coin.png'
7+
image='https://react.pixijs.io/img/coin.png'
88
scale={{ x: 0.5, y: 0.5 }}
99
anchor={0.5}
1010
x={150}

‎docs/versioned_docs/version-7.x/components/TilingSprite.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function TilingSpriteExample() {
44
return (
55
<Stage width={500} height={300}>
66
<TilingSprite
7-
image={'https://pixijs.io/pixi-react/img/tile.jpeg'}
7+
image={'https://react.pixijs.io/img/tile.jpeg'}
88
width={500}
99
height={300}
1010
tilePosition={{ x: 100, y: 150 }}

‎docs/versioned_docs/version-7.x/stage/Stage.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function StageExample() {
1919
{lodash.times(count, (i) => (
2020
<Sprite
2121
key={i}
22-
image='https://pixijs.io/pixi-react/img/coin.png'
22+
image='https://react.pixijs.io/img/coin.png'
2323
scale={(360 / count) * 0.004}
2424
anchor={0.5}
2525
rotation={i * (360 / count) * (Math.PI / 180)}

‎docs/versioned_docs/version-7.x/stage/raf.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function RAFExample() {
3939
anchor={[-(2 + Math.sin(i / 5) * 2), 0.5]}
4040
position={150}
4141
rotation={(Math.PI / 180) * 90 + -i}
42-
image='https://pixijs.io/pixi-react/img/bunny.png'
42+
image='https://react.pixijs.io/img/bunny.png'
4343
/>
4444
</Stage>
4545
);

‎docs/versioned_docs/version-7.x/stage/raf2.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function RAFExample() {
4242
anchor={0.5}
4343
position={[150 + Math.cos(i) * 50, 150]}
4444
rotation={i}
45-
image='https://pixijs.io/pixi-react/img/bunny.png'
45+
image='https://react.pixijs.io/img/bunny.png'
4646
/>
4747
</Stage>
4848
<button style={{ margin: '20px auto 0 0' }} onClick={() => app.renderer.render(app.stage)}>

0 commit comments

Comments
 (0)
Please sign in to comment.