Commit graph

4 commits

Author SHA1 Message Date
f708088ef7 Re-organise cli.ts into functions and sub-commands
Add the necessary boilerplate for cli.ts to provide more than one
command, with the resource gathering step split out from the build
step in order for it to be re-usable.
2025-02-01 16:25:45 +01:00
cf3229423b Fix create folder logic in cli.js
The paths changed in d003ea01 to start with a forward slash, this broke
the create folder detection logic as now it matched the first slash of
the path instead of sub-folder in the path.  Fix by ignoring the first
character in the path.
2025-01-25 08:41:25 +01:00
d003ea01d0 Use absolute refs transformed to relative
Write all links as absolute refs from the virtual root of the website's
path namespace and then transform these into relative links with the
resolveRefs utility function.
2025-01-22 09:03:37 +01:00
fed46dbb4a Port cli.js to TypeScript 2025-01-22 07:16:01 +01:00
Renamed from cli.js (Browse further)