You can run a local copy of this website on your computer, this way you see the changes you make to the code or content of the website documents in real time, after reloading the local website. This is very helpful for translations or generic working on the website, as your can directly verify your changes before submitting them to the upstream/original git repository of this website.
gem install jekyll bundlercd eosdacio-website/bundler installjekyll serveSteps 1.-3. are setup commands and are usually not needed, only for the first time you run the website (or if the dependencies changed). Normally, it is enough to run jekyll s inside the website’s root directory.
After the compilation (generation of the HTML/CSS code) finished successfuly, you will see an output similar to this and will be able to access your local copy of the website at http://localhost:4000. After you changed a file, Jekyll will automatically re-generate the latest code and you can refresh your browser (using the F5 key), to see your latest changes.
done in 10.603 seconds.
Auto-regeneration: enabled for '/home/user/eos/eosdacio-website'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
If you are trying to run the site locally and get the below encoding error on windows
Liquid exception : incompatible character encodings : UTF - 8 ad IMB437
Run chcp 65001 before running jekyll serve
Follow the detailed guide on the link below to learn how to run Jekyll on Windows. https://jekyllrb.com/docs/installation/windows/
Deploying the website is usually done manually by one of the webmasters (@lukestokes, @MichaelY, @RobAllen in Discord), as they have the access rights to the web-server where eosdac.io is hosted. In the future the website might be hosted on IPFS, using an automatic process.
Building the website is very similar to running it locally, you need to execute the same setup steps from above (e.g. gem install jekyll bundler and bundler install), but then execute jekyll build to generate the static website.
To deploy the website:
upstream git repository
git fetch upstreamdeploy branch
git checkout deploy
git merge upstream/deployjekyll build_site/ folder
git add _site/
git commit -m "Re-build websitegit push upstream deploy_site/ folder inside the upstream/deploy branch to the web-server, e.g. via a git pull command