Skip to content

Commit 301c049

Browse files
committed
Fix broken and incorrect links in the docs
1 parent 7d77e0c commit 301c049

14 files changed

+38
-37
lines changed

docs/components/animation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Accessed as `el.components.animation.<MEMBER>`.
114114

115115
### Controlling Animations using setAttribute
116116

117-
Like any A-Frame component, the animation component can be configured from JavaScript by calling [setAttribute()]( https://aframe.io/docs/1.7.1/introduction/javascript-events-dom-apis.html#updating-a-component-with-setattribute) on an element.
117+
Like any A-Frame component, the animation component can be configured from JavaScript by calling [setAttribute()](../introduction/javascript-events-dom-apis.md#updating-a-component-with-setattribute) on an element.
118118

119119
By default, the animation will begin playing immediately (autoplay is true by default).
120120

@@ -149,13 +149,13 @@ We can use the `startEvents` property to animate upon events:
149149

150150
[Remix the Animating on Events Glitch][eventsglitch].
151151

152-
To start an animation by explicitly [emitting a custom event](https://aframe.io/docs/1.7.1/introduction/javascript-events-dom-apis.html#emitting-an-event-with-emit), you can do the following:
152+
To start an animation by explicitly [emitting a custom event](../introduction/javascript-events-dom-apis.md#emitting-an-event-with-emit), you can do the following:
153153

154154
```
155155
el.emit(`triggeranimation`, null, false);
156156
```
157157

158-
The [third parameter of emit](https://aframe.io/docs/1.7.1/core/entity.html#emit-name-detail-bubbles) set to "false" parameter ensures the event won't bubble up to parents, so that you can target the animation at just one particular element.
158+
The [third parameter of emit](../core/entity.md#emit-name-detail-bubbles) set to "false" parameter ensures the event won't bubble up to parents, so that you can target the animation at just one particular element.
159159

160160
This assumes that an animation has already been configured to respond to that custom start event, for example like this:
161161

docs/components/background.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: background
33
type: components
44
layout: docs
55
parent_section: components
6-
source_code: src/components/background.js
6+
source_code: src/components/scene/background.js
77
examples: []
88
---
99

docs/components/logitech-mx-ink-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: logiteck-mx-ink-controls
33
type: components
44
layout: docs
55
parent_section: components
6-
source_code: src/components/logiteck-mx-ink-controls.js
6+
source_code: src/components/logitech-mx-ink-controls.js
77
examples: []
88
---
99

docs/components/reflection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: reflection
33
type: components
44
layout: docs
55
parent_section: components
6-
source_code: src/components/reflection.js
6+
source_code: src/components/scene/reflection.js
77
examples: []
88
---
99

docs/components/visible.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ contain an entire group of entities that you can flip on an off with `visible`.
3030

3131
## Updating Visibility
3232

33-
[update]: ../introduction/javascript-events-and-dom-apis.md#updating-a-component-with-setattribute
33+
[update]: ../introduction/javascript-events-dom-apis.md#updating-a-component-with-setattribute
3434

3535
It is slightly faster to update visibility at the three.js level versus [via
3636
`.setAttribute`][update].

docs/core/entity.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -448,20 +448,20 @@ entity.is('selected'); // >> false
448448

449449
## Events
450450

451-
| Event Name | Description |
452-
|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
453-
| child-attached | A child entity was attached to the entity. |
454-
| child-detached | A child entity was detached from the entity. |
455-
| componentchanged | One of the entity's components was modified. This event is throttled. Do not use this for reading position and rotation changes, rather [use a tick handler](../camera.md#reading-position-or-rotation-of-the-camera). |
456-
| componentinitialized | One of the entity's components was initialized. |
457-
| componentremoved | One of the entity's components was removed. |
458-
| loaded | The entity has attached and initialized its components. |
459-
| object3dset | `THREE.Object3D` was set on entity using `setObject3D(name)`. Event detail will contain `name` used to set on the `object3DMap`. |
460-
| pause | The entity is now inactive and paused in terms of dynamic behavior. |
461-
| play | The entity is now active and playing in terms of dynamic behavior. |
462-
| stateadded | The entity received a new state. |
463-
| stateremoved | The entity no longer has a certain state. |
464-
| schemachanged | The schema of a component was changed. |
451+
| Event Name | Description |
452+
|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
453+
| child-attached | A child entity was attached to the entity. |
454+
| child-detached | A child entity was detached from the entity. |
455+
| componentchanged | One of the entity's components was modified. This event is throttled. Do not use this for reading position and rotation changes, rather [use a tick handler](../components/camera.md#reading-position-or-rotation-of-the-camera). |
456+
| componentinitialized | One of the entity's components was initialized. |
457+
| componentremoved | One of the entity's components was removed. |
458+
| loaded | The entity has attached and initialized its components. |
459+
| object3dset | `THREE.Object3D` was set on entity using `setObject3D(name)`. Event detail will contain `name` used to set on the `object3DMap`. |
460+
| pause | The entity is now inactive and paused in terms of dynamic behavior. |
461+
| play | The entity is now active and playing in terms of dynamic behavior. |
462+
| stateadded | The entity received a new state. |
463+
| stateremoved | The entity no longer has a certain state. |
464+
| schemachanged | The schema of a component was changed. |
465465

466466
### Event Detail
467467

docs/core/systems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: core
44
layout: docs
55
parent_section: core
66
order: 4
7-
source_code: src/core/systems.js
7+
source_code: src/core/system.js
88
examples:
99
- title: System providing envMaps
1010
src: https://glitch.com/~aframe-refraction-system

docs/guides/building-a-basic-scene.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ We can specify a preset (e.g., `forest`) with along many other parameters
243243

244244
## Applying an Image Texture
245245

246-
> Make sure you're [serving your HTML using a local server](../introduction/getting-started.md#using-a-local-server)
246+
> Make sure you're [serving your HTML using a local server](../introduction/installation.md#use-a-local-server)
247247
> for textures to load properly.
248248
> Due to an [issue with imgur.com](https://stackoverflow.com/questions/43895390/imgur-images-returning-403), view the page using http://localhost, rather than http://127.0.0.1
249249

docs/guides/building-a-minecraft-demo.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ See a live version [here](https://aframe.io/aframe/examples/docs/aincraft/step1.
5757

5858
### Preloading Assets
5959

60-
[assets]: https://aframe.io/docs/1.7.1/core/asset-management-system.html
60+
[assets]: ../core/asset-management-system.md
6161

6262
Specifying a URL via the `src` attribute will load the texture at runtime.
6363
Since network requests can negatively impact render performance, we can
@@ -88,7 +88,7 @@ See a live version [here](https://aframe.io/aframe/examples/docs/aincraft/step2.
8888

8989
## Adding a Background
9090

91-
[a-sky]: https://aframe.io/docs/1.7.1/primitives/a-sky.html
91+
[a-sky]: ../primitives/a-sky.md
9292
[flickr]: https://www.flickr.com/groups/equirectangular/
9393

9494
[gradient]: https://github.com/mrxz/fern-aframe-components/tree/main/sky-background
@@ -139,15 +139,15 @@ from scratch.
139139

140140
### Entity-Component Pattern
141141

142-
[entity]: https://aframe.io/docs/1.7.1/core/entity.html
142+
[entity]: ../core/entity.md
143143

144144
Every single object in an A-Frame scene is [`<a-entity>`][entity], which by itself
145145
doesn't do anything, like an empty `<div>`. We plug in components (**not to be
146146
confused with Web or React Components**) to that entity to provide with
147147
appearance, behavior , and logic.
148148

149-
[geometry]: https://aframe.io/docs/1.7.1/components/geometry.html
150-
[material]: https://aframe.io/docs/1.7.1/components/material.html
149+
[geometry]: ../components/geometry.md
150+
[material]: ../components/material.md
151151

152152
For a box, we attach and configure A-Frame's basic [geometry] and [material]
153153
components. Components are represented as HTML attributes, and component
@@ -189,7 +189,7 @@ AFRAME.registerComponent('random-color', {
189189
});
190190
```
191191

192-
[js]: https://aframe.io/docs/1.7.1/introduction/javascript-events-dom-apis.html
192+
[js]: ../introduction/javascript-events-dom-apis.md
193193

194194
For the random color component, we want to set a random color on the entity
195195
that this component is attached to. Components have a reference to the entity
@@ -301,7 +301,7 @@ to describe all the voxels in our scene.
301301

302302
### Mixins
303303

304-
[mixin]: https://aframe.io/docs/1.7.1/core/mixins.html
304+
[mixin]: ../core/mixins.md
305305

306306
We can create [a mixin][mixin] to define a reusable bundle of components.
307307
Instead of `<a-entity>`, which adds an object to the scene, we'll describe it

docs/introduction/javascript-events-dom-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ this.el.addEventListener('physicscollided', (event) => {
521521

522522
2. By defining your event listener within the events object of the component (this will also handling adding and removing the listener automatically)
523523

524-
See the explanation [here](../core/component.html#events).
524+
See the explanation [here](../core/component.md#events).
525525

526526

527527
3. By creating another function, which is the bound version of the function.

0 commit comments

Comments
 (0)