Skip to content

Commit

Permalink
docs: removed cientos and improve Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Mar 28, 2023
1 parent 07848d4 commit fd64b9a
Show file tree
Hide file tree
Showing 30 changed files with 40 additions and 979 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ coverage
*.njsproj
*.sln
*.sw?
.vitepress/dist
.vitepress/cache
47 changes: 37 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,59 @@

Tres (Spanish word for "three", pronounced `/tres/` ) is a way of creating ThreeJS scenes with Vue components in a declarative fashion. Think of it as a [React-three-fiber](https://docs.pmnd.rs/react-three-fiber) or [Lunchbox](https://github.com/breakfast-studio/lunchboxjs) but without the need of a [custom Vue3 Renderer](https://vuejs.org/api/custom-renderer.html).

## Setup
## Docs

Checkout the [docs](https://tresjs.org)

## Demos

- [Stackblitz Collection](https://stackblitz.com/@alvarosabu/collections/tresjs)

## Contribution

We are open to contributions, please read the [contributing guide](/CONTRIBUTING.md) to get started.


### Setup

```
pnpm install --shamefully-hoist
```

## Dev
### Playground

To run the small playground without Histoire use
To run the small playground

```
pnpm run dev
pnpm run playground
```

## Histoire
### Build lib

All local demos will be inside [Histoire](https://histoire.dev/) stories.
To build the core as library mode just use

```
pnpm run story:dev
pnpm run build
```

## Build lib
### Docs

To build the core as library mode just use
To run de docs in dev mode

```bash
pnpm run docs:dev
```
pnpm run build

To build them

```bash
pnpm run docs:build
```

## License

[MIT](/LICENSE)

## Sponsors

Be the first to support this project [here](https://github.com/sponsors/alvarosabu) ☺️
56 changes: 1 addition & 55 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,61 +60,6 @@ export default defineConfig({
},
],
},
{
text: 'Cientos 💛',
collapsible: true,
items: [
{ text: 'Introduction', link: '/cientos/' },
{
text: 'Abstractions',
items: [
{ text: 'Text3D', link: '/cientos/abstractions/text-3d' },
{ text: 'useAnimations', link: '/cientos/abstractions/use-animations' },
{ text: 'Environment', link: '/cientos/abstractions/environment' },
{ text: 'useEnvironment', link: '/cientos/abstractions/use-environment' },
{ text: 'usePamMouse', link: '/cientos/abstractions/pam-camera-mouse' },
],
},
{
text: 'Controls',
items: [
{ text: 'OrbitControls', link: '/cientos/controls/orbit-controls' },
{ text: 'TransformControls', link: '/cientos/controls/transform-controls' },
],
},
{
text: 'Loaders',
items: [
{ text: 'useGLTF', link: '/cientos/loaders/use-gltf' },
{ text: 'GLTFModel', link: '/cientos/loaders/gltf-model' },
{ text: 'useFBX', link: '/cientos/loaders/use-fbx' },
{ text: 'FBXModel', link: '/cientos/loaders/fbx-model' },
],
},
{
text: 'Shapes',
items: [
{ text: 'Box', link: '/cientos/shapes/box' },
{ text: 'Circle', link: '/cientos/shapes/circle' },
{ text: 'Cone', link: '/cientos/shapes/cone' },
{ text: 'Dodecahedron', link: '/cientos/shapes/dodecahedron' },
{ text: 'Icosahedron', link: '/cientos/shapes/icosahedron' },
{ text: 'Octahedron', link: '/cientos/shapes/octahedron' },
{ text: 'Plane', link: '/cientos/shapes/plane' },
{ text: 'Ring', link: '/cientos/shapes/ring' },
{ text: 'Sphere', link: '/cientos/shapes/sphere' },
{ text: 'Tetrahedron', link: '/cientos/shapes/tetrahedron' },
{ text: 'Torus', link: '/cientos/shapes/torus' },
{ text: 'TorusKnot', link: '/cientos/shapes/torus-knot' },
{ text: 'Tube', link: '/cientos/shapes/tube' },
],
},
{
text: 'Misc',
items: [{ text: 'useTweakpane', link: '/cientos/misc/use-tweakpane' }],
},
],
},
],
nav: [
{ text: 'Guide', link: '/guide/' },
Expand Down Expand Up @@ -149,6 +94,7 @@ export default defineConfig({
socialLinks: [
/* { icon: 'github', link: 'https://github.com/tresjs/tres' }, */
{ icon: 'twitter', link: 'https://twitter.com/alvarosabu' },
{ icon: 'discord', link: 'https://discord.gg/wXx63MwW'}
],
},
vite: {
Expand Down
67 changes: 0 additions & 67 deletions docs/cientos/abstractions/environment.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/cientos/abstractions/pam-camera-mouse.md

This file was deleted.

52 changes: 0 additions & 52 deletions docs/cientos/abstractions/text-3d.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/cientos/abstractions/use-animations.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/cientos/abstractions/use-environment.md

This file was deleted.

30 changes: 0 additions & 30 deletions docs/cientos/controls/orbit-controls.md

This file was deleted.

Loading

0 comments on commit fd64b9a

Please sign in to comment.