Skip to content

Commit 4b49e75

Browse files
committed
how-to
1 parent 302c5d0 commit 4b49e75

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

README.md

+13-16
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,16 @@
5252
3. Run the dev script with `pnpm run dev` and visit the localhost address for development and tests
5353
4. Run the build script with `pnpm run build` and have the `dist` folder ready to upload to your static file web hosting.
5454

55-
### How to host it at your Github pages (with custom domain)
56-
57-
1. Read the [GitHub pages documentation](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages)
58-
2. Fork the repo
59-
3. Change the line 4 in the `deploy.sh` file according to your repository address
60-
61-
```
62-
git remote add origin git@github.com:YourGitHubAccount/touchme.git
63-
```
64-
65-
4. Change the contents of `public/CNAME` file to match the subdomain you want the app to be accessible at
66-
5. Run `pnpm run build` to build the app to `dist/` folder
67-
6. Run the `pnpm run deploy` to upload the built site to the `gh-pages` branch of your repo
68-
7. Go to your repository settings and configure the GitHub pages.
69-
8. Add a CNAME DNS record for your subdomain to `<user>.github.io`
70-
9. Enjoy your self-hosted version of the experience.
55+
### How to add scenes
56+
57+
1. Fork the repo
58+
2. Create a Vue 3 component inside the `src/scenes/` folder
59+
3. The template should contain valid SVG code to be embedded into the main scene
60+
4. Import and use all the interfaces for MIDI, synth, colors and more from `'~/use/'` folder
61+
5. Use present scenes as examples
62+
6. You may use `pug` and `windicss` or prefer plain `html` templates and `css` styles
63+
7. Add a line to the `app.vue` with Iconify icon and the scene file name like this
64+
`icon-ri-donut-chart-fill(v-if="scene.name == 'donut'")`
65+
8. Push you component to your GitHub repo
66+
9. Create a Pull Request with the changes to this repo to share it
67+
10. We will check your code and, if everything is fine, the updated version of the experience will be deployed to the main site.

how-to-host.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### How to host it at your Github pages
2+
3+
1. Read the [GitHub pages documentation](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages)
4+
2. Add a CNAME record `<user>.github.io` with your subdomain to your domain DNS
5+
3. Fork the repo
6+
4. Change the line 4 in the `deploy.sh` file according to your repository address
7+
8+
```
9+
git remote add origin git@github.com:YourGitHubAccount/touchme.git
10+
```
11+
12+
4. Change the contents of `public/CNAME` file to match the subdomain you want the app to be accessible at
13+
5. Run `pnpm run build` to build the app to `dist/` folder
14+
6. Run `pnpm run deploy` to upload the built site to the `gh-pages` branch of your repo
15+
7. Go to your repository settings and configure the GitHub pages.
16+
8. Enjoy your self-hosted version of the interactive playground.

0 commit comments

Comments
 (0)