This guide will help you enable GitHub Pages for your Mycelium User Guide documentation.
-
Push your changes to GitHub:
git add . git commit -m "Add GitHub Pages documentation" git push origin main
-
Enable GitHub Pages:
- Go to your repository on GitHub
- Click on Settings (top right)
- Scroll down to Pages in the left sidebar
- Under Source:
- Select branch:
main - Select folder:
/docs
- Select branch:
- Click Save
-
Wait for deployment:
- GitHub will automatically build and deploy your site
- This usually takes 1-2 minutes
- You'll see a green checkmark when it's ready
-
Visit your site:
- Your documentation will be available at:
https://threefoldtech.github.io/www_myceliumguide/
The repository includes a GitHub Actions workflow (.github/workflows/pages.yml) that automatically deploys your documentation.
To use it:
-
Enable GitHub Actions for Pages:
- Go to Settings > Pages
- Under Source, select:
GitHub Actions
-
Push your changes:
git add . git commit -m "Add GitHub Pages documentation with Actions" git push origin main
-
Monitor deployment:
- Go to the Actions tab in your repository
- Watch the deployment progress
- Once complete, your site will be live
To preview the documentation locally before pushing:
-
Install Jekyll:
# macOS gem install bundler jekyll # Ubuntu/Debian sudo apt-get install ruby-full build-essential gem install bundler jekyll
-
Install dependencies:
cd docs bundle install -
Serve locally:
bundle exec jekyll serve -
View in browser:
- Open
http://localhost:4000/www_myceliumguide/
- Open
Edit docs/_config.yml and change the theme line:
theme: jekyll-theme-minimal # or any other supported themeSupported themes:
jekyll-theme-cayman(current)jekyll-theme-minimaljekyll-theme-slatejekyll-theme-architectjekyll-theme-hackerjekyll-theme-leap-dayjekyll-theme-merlotjekyll-theme-midnightjekyll-theme-modernistjekyll-theme-tactilejekyll-theme-time-machine
If your repository name is different, update docs/_config.yml:
baseurl: "/your-repo-name"
url: "https://your-username.github.io"-
Create a file
docs/CNAMEwith your domain:docs.mycelium.example.com -
Configure DNS:
- Add a CNAME record pointing to
threefoldtech.github.io
- Add a CNAME record pointing to
-
Enable HTTPS in repository settings
- Check that GitHub Pages is enabled in Settings > Pages
- Verify the branch and folder are correct (
mainand/docs) - Wait a few minutes for the initial build
- Ensure
baseurlin_config.ymlmatches your repository name - Links should use relative paths without
.mdextension
# Install missing dependencies
cd docs
bundle install
# Clear cache and rebuild
bundle exec jekyll clean
bundle exec jekyll serveAfter setup:
- ✅ Verify all pages load correctly
- ✅ Test navigation between pages
- ✅ Check mobile responsiveness
- ✅ Share the documentation URL with users
- ✅ Keep content updated as Mycelium evolves
For issues with:
- GitHub Pages setup: Check GitHub Pages documentation
- Jekyll: See Jekyll documentation
- Content: Open an issue in this repository