A template to easily host Interactive CYOAs on GitHub.
Features:
- Hyperlinks enabled
- IntCyoaEnhancer's Download Progress Indicator included
- Optional CSS code in the
index.html
to:- Make your backgrounds static
- Change the colour of your Point Bar icons
- Override the background image in the
project.json
- Dynamic Background support
- To learn more, see here
- Automatic GitHub workflow to republish your site on any change
View the text instructions below or watch the video tutorial.
- First, create an account on GitHub
- Press the bright green Use this template button at the top of this repo
- Press Create a new repository
- Give your repository a name, this will be the folder that will be used to access your CYOA
- Press Create repository
- Go into Settings → Pages and where it says Build and deployment look for the Source dropdown menu. Select GitHub Actions
- Press the Add file dropdown → Upload files
- Upload your
project.json
(andimages/
if appropriate)
That should be all! After a short time (usually ~12s) it should now
automatically begin hosting at https://YOURUSERNAME.github.io/REPONAME
.
Feel free to remove this file and LICENSE
to clean up the code even more.
Press the thumbnail below to open the video. You may need to open in a new tab so as to not replace this window.
- Press the settings gear to the right of the About section title and below the Star button.
- Tick Use your GitHub Pages website
Your URL should now display!
If you want to republish without adding or modifying files, simply go into the Actions tab → select Deploy static content to Pages on the left side → Run workflow → and Run workflow again.
To do the CSS stuff mentioned in the Features above, edit your index.html
and
find the <style>
section. There will be comments that describe each style.
If you want to manually do this, check out the GitHub section of the ICCT: https://icctutorial.pages.dev/publishing/github/
- Thanks to
u/LOLLOL12344
for the simpler CSS code regarding Point Bar icon colouring - Thanks to
3deas_27816
on Discord for the background image code