diff --git a/docs/guides/building-a-minecraft-demo.md b/docs/guides/building-a-minecraft-demo.md index bc2f8422ca1..221e4c6a189 100644 --- a/docs/guides/building-a-minecraft-demo.md +++ b/docs/guides/building-a-minecraft-demo.md @@ -6,11 +6,11 @@ parent_section: guides order: 10 examples: - title: Aincraft - src: https://github.com/aframevr/aframe/tree/master/examples/showcase/aincraft/ + src: https://github.com/aframevr/aframe/tree/master/examples/docs/aincraft/ --- -[source-code]: https://github.com/aframevr/aframe/tree/master/examples/showcase/aincraft/ -[live-demo]: https://aframe.io/examples/showcase/aincraft/ +[source-code]: https://github.com/aframevr/aframe/tree/master/examples/docs/aincraft/ +[live-demo]: https://aframe.io/examples/docs/aincraft/ > View the [source code][source-code], or try out [the demo][live-demo] @@ -53,7 +53,7 @@ our assets, and create a thin cylinder entity pointing to that texture: ``` -See a live version [here](https://aframe.io/examples/showcase/aincraft/step1.html) +See a live version [here](https://aframe.io/examples/docs/aincraft/step1.html) ### Preloading Assets @@ -84,7 +84,7 @@ Let's move our ground texture to `` to be preloaded using an ``` -See a live version [here](https://aframe.io/examples/showcase/aincraft/step2.html) +See a live version [here](https://aframe.io/examples/docs/aincraft/step2.html) ## Adding a Background @@ -123,7 +123,7 @@ to match the ground: ``` -See a live version [here](https://aframe.io/examples/showcase/aincraft/step3.html) +See a live version [here](https://aframe.io/examples/docs/aincraft/step3.html) ## Adding Voxels @@ -255,7 +255,7 @@ and include it before the scene: ``` -See a live version [here](https://aframe.io/examples/showcase/aincraft/step4.html) +See a live version [here](https://aframe.io/examples/docs/aincraft/step4.html) Components can be plugged into any entity without having to create or extend a class like we'd have to in traditional inheritance. If we wanted to attach it @@ -277,7 +277,7 @@ modular and reusable! ### Snap Component -[snap]: https://github.com/aframevr/aframe/tree/master/examples/showcase/aincraft/components/snap.js +[snap]: https://github.com/aframevr/aframe/tree/master/examples/docs/aincraft/components/snap.js We'll have a `snap` component to snap our boxes to a grid so they aren't overlapping. We won't get into the details of how this component is @@ -345,7 +345,7 @@ And we've added voxels using that mixin: ``` -See a live version [here](https://aframe.io/examples/showcase/aincraft/step5.html) +See a live version [here](https://aframe.io/examples/docs/aincraft/step5.html) Next, we'll be creating voxels dynamically through interaction using tracked controllers. Let's start adding our hands to the application. @@ -470,7 +470,7 @@ document.querySelector('#blockHand').addEventListener(`click`, function (evt) { }); ``` -[intersection-spawn]: https://github.com/aframevr/aframe/tree/master/examples/showcase/aincraft/components/intersection-spawn.js +[intersection-spawn]: https://github.com/aframevr/aframe/tree/master/examples/docs/aincraft/components/intersection-spawn.js To generalize creating entities from an intersection event, we've created an `intersection-spawn` component that can be configured with any event and list diff --git a/docs/introduction/entity-component-system.md b/docs/introduction/entity-component-system.md index 9bef7e687d2..47f427d0bcd 100644 --- a/docs/introduction/entity-component-system.md +++ b/docs/introduction/entity-component-system.md @@ -451,27 +451,37 @@ Now we can include it into our HTML: ``` +### Using jsdelivr for CDN + +[jsdelivr]: https://www.jsdelivr.com/ + +[JSDELIVR][jsdelivr] is an alternative CDN to unpkg. One benefit of JSDELIVR is that it can download files from GitHub as well as NPM. + +You can convert unpkg URLs to JSDELIVR URLs using this link: https://www.jsdelivr.com/unpkg + +You can convert GitHub URLs to JSDELIVR URLs using this link: https://www.jsdelivr.com/github + ### Example -[glitch]: http://glitch.com/~aframe-registry +[community-example]: https://aframe.io/examples/docs/community-components -![Registry Example](https://cloud.githubusercontent.com/assets/674727/25502318/0f76ceec-2b4b-11e7-9829-cb3784b20dc1.gif) +![Community Components Example](https://cloud.githubusercontent.com/assets/674727/25502318/0f76ceec-2b4b-11e7-9829-cb3784b20dc1.gif) Below is a complete example of using various community components from the -Registry and using the unpkg CDN. We can [remix or check out this example on -Glitch][glitch]. +Registry and using the JSDELIVR CDN. This example can also be viewed in the [A-Frame Examples][community-example]. ```html - - - - - + Community Components Example + + + + + - + - - - + + + diff --git a/examples/docs/community-components/index.html b/examples/docs/community-components/index.html new file mode 100644 index 00000000000..b99bc2d64d2 --- /dev/null +++ b/examples/docs/community-components/index.html @@ -0,0 +1,33 @@ + + + + Community Components Example + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/index.html b/examples/index.html index fcf00870ebc..85819d48d9f 100644 --- a/examples/index.html +++ b/examples/index.html @@ -136,7 +136,7 @@

Examples