

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Copy Static
incomplete
2: Generate Page
incomplete
3: More Pages
incomplete
4: Generate Pages Recursively
incomplete
5: Deploy to the Internet
incomplete
6: Submit Your Repository!
incomplete
This lesson's interactive features are locked, please to keep using them
We're so close! We have one last step: to publish our site to the world wide web. (Yes, on a public domain and server)
GitHub Pages is a free service from GitHub that allows you to host static websites directly from a GitHub repository. Conveniently, you now have a static site generator!
That said, there are two limitations we're going to need to work around:
https://USERNAME.github.io/REPO_NAME/, which means that the "root" of our site will actually be at a subdirectory. We'll have to enhance our generator to handle that.Make sure your repo is public, or you'll need a paid plan to use GitHub pages!
python3 src/main.py "/REPO_NAME/" (replace REPO_NAME with your actual GitHub repo name)main.py is also used for local testing, so it will still need the default / baseurlmain branch and the docs directory./docs directory on your main branch will auto deploy to your GitHub Pages URL once something is in it.)Configure the Boot.dev CLI to use your new GitHub Pages URL for the tests:
bootdev config base_url https://USERNAME.github.io/REPO_NAME/
Run and submit the CLI tests from the root of the project.
You can then reset the base URL: bootdev config base_url --reset