Skip to content

icehawk/static-page-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b620492 · Jan 28, 2020

History

43 Commits
Jan 3, 2018
Jan 28, 2020
Jan 28, 2020
Jan 28, 2020
Jan 28, 2020
Aug 13, 2016
Jan 28, 2020
Jan 28, 2020
Jan 28, 2020
Jan 3, 2018
Jan 3, 2018
Aug 13, 2016
Jan 28, 2020

Repository files navigation

Build Status

IceHawk\StaticPageGenerator

Installation

Download the PHAR file from latest release.

Available commands

Please run any command with -h to get detailed description.

Generate pages

generate:pages [-b <baseUrl>|--baseUrl=<baseUrl>] /path/to/Project.json

Generate XML sitemap

generate:sitemap [-b <baseUrl>|--baseUrl=<baseUrl>] /path/to/Project.json

Generate search index JSON file

generate:search-index [-b <baseUrl>|--baseUrl=<baseUrl>] /path/to/Project.json

Check links

check:links [-g|--generate] [-t|--timeout=<sec>] [-b <baseUrl>|--baseUrl=<baseUrl>] /path/to/Project.json

Note:

  • If the [-g|--generate] option is set, all commands from the generate: namespace will be executed prior to the link checks.
  • All external links (not on configured base URL) are skipped.
  • All links starting with javascript: or mailto: are skipped.
  • relative URLs will be converted to full URLs with configured base URL and will be checked.
  • Anchor links will be converted to full URLs with configured base URL and will be checked.
  • Use switch -v to see all skipped links in output.