Welcome


./makestaticsite.sh -i mssweb
Welcome to MakeStaticSite version 0.22
Starting at phase 0: Initialisation.
Ending at phase 9: Deploy.
Reading custom configuration data from config/mssweb.cfg …
Starting the static site generation …
Will capture snapshot from https://mss.localweb using wget.
WP-CLI is installed and will be run locally
Found WordPress site at /var/webs/mss.localweb …
Running Wget with options: –mirror –convert-links –adjust-extension …
Creating a mirror of https://mss.localweb in
mirror/mssweb20230214_122515/mss.localweb …
Searching for additional URLs to retrieve with wget …
Running wget on these additional URLs with options: …
Carrying out post-wget processing …
Copying additional files (for distribution) …
Updating canonical URLs in document headers …
Running HTML Tidy on html files …
Created a sitemap file at /home/paul/scripts/makestaticsite/mirror/mssweb20230214_122515/mss.localweb/sitemap.xml
Creating a ZIP archive …
Deploying on Netlify …
– Hashing files…
 Finished hashing
– CDN diffing files…
 CDN requesting 3 files
– Uploading 3 files
 Finished uploading 3 assets
– Waiting for deploy to go live…
 Deploy is live!
Website URL:       https://makestaticsite.sh
Completed in 37 seconds.
All done!

Hello! MakeStaticSite is a command-line tool for generating and deploying refined static versions of existing websites, which are typically dynamic, i.e. depend on server-side scripting and databases.

Current version 0.29

See the examples to see how it is used.

Such static (or flat) websites are coded in plain HTML, CSS and JavaScript, along with supporting assets such as multimedia files. The web output contains no server-side scripting and no databases are involved, making it considerably more secure and faster than the original source. If you are currently using a content management system (CMS) like WordPress for your website, especially one that is information-oriented, then MakeStaticSite will probably be able to flatten most, if not all, of it.

The main technical prerequisite is to have Bash installed on your computer (see requirements for more details). To use the tool requires just a basic acquaintance with a terminal and command line, as illustrated in the animation above, which replicates many of the lines echoed during the generation of this site. If you are unfamiliar with this environment, then you may like to consult a basic introduction (for Macs). Once you have set up your project, you only have to run one command — makestaticsite.sh, the same one as this site’s domain name!

The code comprises a series of Bash shell scripts (simply explained in another tutorial), with the functionality built around Wget. The scripts are made available under the terms of the GNU AGPL license, which means that you are free to download, use, modify and redistribute. Please note that whilst we hope that it’s useful, the software is considered a prototype, provided as-is, with no guarantees and no formal offer of support.

Interested to know more? To find out what the software is capable of, please continue to explore its features.

This page was published on 30 October 2022 and last updated on 29 February 2024.