Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Buildo Baggins

πŸŒ‹ Forged in the fires of Mt. Python β€” fast, easy static sites for Hobbits who prefer second breakfast over setup wizards. πŸ§™β€β™‚οΈ

Quick Start

  1. Clone the repository:
git clone https://github.com/alexinslc/buildo-baggins.git
cd buildo-baggins
  1. Run the site locally:
./main.sh
python3 -m http.server 8888

Then open http://localhost:8888 in your browser.

Project Structure

.
β”œβ”€β”€ static/                # Static assets (images, CSS)
β”œβ”€β”€ content/               # Your markdown or text content
β”œβ”€β”€ template.html          # HTML template used for all pages
β”œβ”€β”€ src/                   # Python code for the generator
β”‚   └── main.py           # Main script that builds the site
β”œβ”€β”€ docs/                  # Output: final HTML/CSS lives here (for GitHub Pages)
β”‚
β”œβ”€β”€ [ Run Locally ]
β”‚   β”œβ”€β”€ $ ./main.sh
β”‚   └── $ python3 -m http.server 8888
β”‚
β”œβ”€β”€ [ Run Tests ]
β”‚   β”œβ”€β”€ $ ./test.sh
β”‚   └── $ python3 -m unittest discover -s src
β”‚
└── [ Deploy to GitHub Pages ]
    └── $ ./build.sh

Features

  • Fast: Built with Python, optimized for speed
  • Easy: Simple setup, no complex configurations
  • Flexible: Customize templates and styles to fit your needs
  • Markdown Support: Write content in Markdown for easy formatting
  • Static Assets: Manage images, CSS, and other static files effortlessly
  • Local Preview: Test your site locally before deploying
  • GitHub Pages: Easy deployment to GitHub Pages
  • Unit Testing: Ensure your code is robust with built-in tests

Deployment to GitHub Pages

  1. Make sure your repository is public and you have push access

  2. Build the site for GitHub Pages:

./build.sh
  1. Commit and push your changes:
git add .
git commit -m "Update site"
git push origin main
  1. Configure GitHub Pages:

    • Go to your repository's Settings
    • Navigate to Pages in the sidebar
    • Under "Source", select "Deploy from a branch"
    • Select "main" branch and "/docs" folder
    • Click Save
  2. Your site will be available at: https://alexinslc.github.io/buildo-baggins/

Development

Local Development

For local development, use:

./main.sh

This will:

  • Copy static files to the docs directory
  • Generate HTML pages from markdown content
  • Use "/" as the base path for local testing

Running Tests

Run the test suite with:

./test.sh

Or manually:

python3 -m unittest discover -s src

License

MIT License - See LICENSE for details.

Buildo Baggins Features

  • Fast: Built with Python, optimized for speed.
  • Easy: Simple setup, no complex configurations.
  • Flexible: Customize templates and styles to fit your needs.
  • Markdown Support: Write content in Markdown for easy formatting.
  • Static Assets: Manage images, CSS, and other static files effortlessly.
  • Local Preview: Test your site locally before deploying.
  • Unit Testing: Ensure your code is robust with built-in tests

TODO

  • Continue development to get to mvp.
  • Add more features like:
    • Support for custom themes
    • Integration with third-party services (e.g., analytics, SEO)
    • Deployment scripts for popular hosting platforms

About

πŸŒ‹Forged in the fires of Mt. Python β€” fast, easy static sites for Hobbits who prefer second breakfast over setup wizards. πŸ§™β€β™‚οΈ

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages