Welcome


./makestaticsite.sh -i mssweb
Welcome to MakeStaticSite version 0.29.7
Starting at phase 0: Initialisation.
Ending at phase 9: Deploy.
Reading custom configuration data from config/mssweb.cfg …
Starting the static site generation …
WP-CLI is installed and will be run locally
Found WordPress site at /var/webs/mss.localweb …
Running Wget with options: –recursive –timestamping –level=inf …
Creating a mirror of https://mss.localweb in
mirror/mssweb20240522_104156/mss.localweb …
Generating a list of extra asset URLs for Wget …
Carrying out site postprocessing …
Copying additional files (for distribution) …
Updating canonical URLs in document headers …
Running HTML Tidy on html files …
Created a sitemap file …
Creating a ZIP archive …
Updating internal anchors to conform with canonical URLs  …
Deploying on Netlify …
– Hashing files…
 Finished hashing
– CDN diffing files…
 CDN requesting 6 files
– Uploading 6 files
 Finished uploading 6 assets
– Waiting for deploy to go live…
 Deploy is live!
Website URL:       https://makestaticsite.sh
Completed in 35 seconds.
All done!

Current version 0.30.12

See the examples to see how it is used.

Hello! MakeStaticSite is a command-line tool for generating and deploying refined static versions of both existing websites — typically dynamic, i.e. depend on server-side scripting and databases — and sites archived by the Wayback Machine.

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 20 November 2024.