Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Check out the relaunch of our general collection, with classic designs and new ones by our very own Pissog!
Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Before Gen 9 this method used to work
Maybe now I have to change some file to point out from where is the data being pulled from? But I cant seem to find that
Ah I did some digging and I think I found the issue: you're sending me a link to the HTML template.
Basically, the template is the skeleton of the calculator that you fill in with the data contained within src/js/data/sets when you run node build view. This will produce the dist directory with the HTML files fleshed in with all of the data.
I personally am not familiar with CI/CD or GitHub Pages to tell you explicitly how to fix it (if I were, I would be able to better help you with that), but it seems as though you should try and target dist/index.html.
Additionally, based on how Jekyll is configured, going to your main page will just bring up the README.md. At some point down the road, I think you'll want to make the default index.html to be the aforementioned dist/index.html.
Ooo node
THANKS a lot for mate!!!
Also thanks a ton for taking the time to check the issues with the repo
Yeah mostly editing it for adding new Pokemon
Well sorry to trouble you again
I ran node build view, it copied files to dist/ and I tried running the new link but its still not loading up
I saw that none of the files from the calc folder were copied so I manually copied them but it didn't help so I reverted it again
Seems like there has to be a calc/dist file which isnt there
Copying `calc/dist` to `dist/calc`
node:internal/fs/utils:347
throw err;
^
Error: ENOENT: no such file or directory, scandir 'calc/dist'
at Object.readdirSync (node:fs:1452:3)
at cpdir (C:\Users\dell\Documents\GitHub\damage-calc\build:38:24)
at Object.<anonymous> (C:\Users\dell\Documents\GitHub\damage-calc\build:59:1)
Maybe now I have to change some file to point out from where is the data being pulled from? But I cant seem to find that
So can you tell me how set up the forked copy