This tool converts the Golden Nail Roofing HTML file into a complete, production-ready webstack with proper file structure, external CSS/JS, and all image URLs properly integrated.
- Extracts inline CSS and JavaScript to external files
- Creates proper file hierarchy with assets directory
- Fixes navigation links to work across multiple pages
- Integrates all provided image URLs from builtbyward.store
- Creates additional pages (shingles.html, gallery.html, team.html)
- Generates supporting files (robots.txt, sitemap.xml, .htaccess, 404.html)
- Packages everything into a zip file
- Python 3.6 or higher
- BeautifulSoup4
- lxml
- Install Python from https://www.python.org/
- Install required packages:
pip install -r requirements_webstack.txt
- Make sure the HTML file is at:
E:\Users\Admin\OneDrive\Desktop\GOLDEN NAILNEW.html - Run the batch file:
Or run the Python script directly:
run_html_to_webstack.batpython html_to_webstack.py
The script creates:
webstack_output/directory with the complete website structurewebstack_[timestamp].zipfile containing the entire webstack
webstack_output/
├── index.html
├── shingles.html
├── gallery.html
├── team.html
├── assets/
│ ├── css/
│ │ └── main.css
│ ├── js/
│ │ └── main.js
│ └── images/
├── robots.txt
├── sitemap.xml
├── .htaccess
└── 404.html
All images are hosted externally on builtbyward.store and are integrated directly into the HTML/CSS. No images are downloaded locally.
- Hero background: Golden hour aerial photograph
- About section: Luxury home in Highland Park
- Mission section: Roofing crew photo
- Customer reviews: Individual customer photos
- Hero: Brown shingle backdrop
- Product cards: Various shingle textures and colors
- Hero: Historic neighborhood shot
- Project thumbnails: Various completed projects
- Hero: Full crew photo
- Team member photos: Individual professional shots
To change image URLs or add new ones, edit the image_urls dictionary in html_to_webstack.py.
- Upload the contents of
webstack_output/to your web server - Ensure your server supports .htaccess files (Apache)
- Update the domain in sitemap.xml to match your actual domain
- Test all pages and navigation links
The generated site includes:
- Proper meta tags structure
- Sitemap for search engines
- Clean URL structure (removes .html extensions)
- Optimized image loading
- Consider using a CDN for the external images
- Enable gzip compression on your server
- Implement lazy loading for images
- Minify CSS and JS files for production
For issues or questions, please check:
- That the HTML file path is correct
- Python and required packages are installed
- You have write permissions in the current directory