|
2 | 2 |
|
3 | 3 | The framework agnostic static site generator. |
4 | 4 |
|
5 | | -Every language has its own static site generator, and every static site generator is made obsolete by the next static site generator that comes along to replace it every few years. Staticalize lets you hop off that hamster wheel. |
| 5 | +Every language has its own static site generator, and every static site |
| 6 | +generator is made obsolete by the next static site generator that comes along to |
| 7 | +replace it every few years. Staticalize lets you hop off that hamster wheel. |
6 | 8 |
|
7 | | -It does this by providing a _general_ mechanism to convert any dynamically generated website into a static one. It doesn't care _what_ framework you use to generate your content so long as it is served over HTTP and has a [sitemap][sitemap]. It will analyze your sitemap and generate a static website for it in the output directory of your choice. All you need to provide is url of the server you want to staticalize and the base url of your production server. |
8 | | - |
9 | | -For example, if you have the sourcecode of the frontside.com website running on port `8000`, you can build a static version of the website fit to serve on `frontside.com` into the `dist/` directory with the following command: |
| 9 | +It does this by providing a _general_ mechanism to convert any dynamically |
| 10 | +generated website into a static one. It doesn't care _what_ framework you use to |
| 11 | +generate your content so long as it is served over HTTP and has a |
| 12 | +[sitemap][sitemap]. It will analyze your sitemap and generate a static website |
| 13 | +for it in the output directory of your choice. All you need to provide is url of |
| 14 | +the server you want to staticalize and the base url of your production server. |
10 | 15 |
|
| 16 | +For example, if you have the sourcecode of the frontside.com website running on |
| 17 | +port `8000`, you can build a static version of the website fit to serve on |
| 18 | +`frontside.com` into the `dist/` directory with the following command: |
11 | 19 |
|
12 | 20 | ```ts |
13 | 21 | $ staticalize --site https://localhost:8000 --base-url http://frontside.com --outdir dist |
14 | 22 | ``` |
15 | 23 |
|
16 | | -This will read `https://localhost:800/sitemap.xml` and download the entire website to the `dist/` directory in a format that can be served from a simple file server running at `frontside.com`. |
17 | | - |
| 24 | +This will read `https://localhost:800/sitemap.xml` and download the entire |
| 25 | +website to the `dist/` directory in a format that can be served from a simple |
| 26 | +file server running at `frontside.com`. |
18 | 27 |
|
19 | 28 | ### CLI |
20 | 29 |
|
|
0 commit comments