Repository navigation
Pages from a sitemap, and start the dev server automatically - #6
Merged
Merged
Conversation
- `sitemap`: a sitemap or sitemap index; keeps each address's path so a dev server's production-host sitemap still loads from baseUrl; include / exclude path patterns (* and **), limit; `pages` optional with a sitemap - `server`: runs a command, waits until its address answers (any status below 500), reuses a server already running, stops the whole process tree afterwards (taskkill /T on Windows, process group elsewhere), also on Ctrl+C; early exit and timeout show the command's last output - CLI and Action both run the scan inside withSite - CI self-test now starts its test page through `server`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sitemap
"sitemap": "/sitemap.xml"for short)baseUrlinclude/excludepath patterns (*within one segment,**across), thenlimitpagesis optional when there's a sitemap; listed pages come first, duplicates are droppedStarting your site
baseUrlby default) answers, scans, then stops itreuseExisting, default true)taskkill /Ton Windows, the process group on macOS and Linux, also on Ctrl+C or a crashtimeoutgives an error with the command's last 30 lines of outputnpm start &and a curl wait loopChecked
update+checkthat start a server, read its sitemap and stop itserverand checks the port is closed afterwards/blog/**gives 72, a 10-page check at 2 widths took about 10 seconds. An.mjsconfig reused the running site instead of starting its command