feat: restore snare respond (lost when main moved) - #34
Merged
Conversation
The site was one 67KB scroll with an eight-item nav and no mobile navigation at all. It is now nine pages built from fragments in docs/src/ by docs/build.sh, sharing one stylesheet and one script. Nav is six items instead of eight, plus a version pill that links to the changelog. Old anchors are forwarded — /#infected, /#install, /#detect, /#commands and /#security are already published in the dev.to write-up, the X thread and the notices filed on nine repositories, so they redirect to their new pages rather than dropping people at the top of the home page. Three layout bugs, two of which predate this change: - No mobile navigation. Under 720px every link was display:none, so a phone had the logo and a button. There is now a real drawer; Escape closes it and focus returns to the toggle. - Content touched the screen edge. .hero used the padding shorthand, which reset the horizontal padding it inherits from .wrap to zero. Block-only padding now, with a 16px floor on the gutter. - ol.chain descriptions collapsed into the 32px counter column. The <span> had no grid-column, so it auto-placed onto the next row in column one. This hit the mechanism steps and the bug-report list. New pages: docs.html gathers the documentation and closes two gaps — authentication and extending detection were in the README but nowhere on the site. changelog.html is built from CHANGELOG.md with false-clean defects listed first. community.html carries the discussion links and a giscus thread backed by GitHub Discussions. giscus is the only third-party code here and it loads on community.html alone, never on a page carrying a command someone might paste into a shell. It needs the giscus app installed on the repository; until then the page shows a link to Discussions instead. Also adds sitemap.xml and robots.txt, per-page titles, descriptions and canonical URLs, a sticky section bar on the reference pages, and a theme toggle. set-links.sh now edits docs/src/index.html.
snare respond was merged as #33, then main was moved back to 56df09b before the multi-page site branch was merged on top, so the commit is no longer an ancestor of main and lib/respond.sh disappeared from the tree. This restores 8641f7e unchanged. It touches only bin/snare and lib/respond.sh and does not go near docs/, so the new multi-page site is untouched. Verified against the current main: shellcheck clean, selftest 10/10, the non-interactive guard still refuses, and the help-completeness check passes with respond included.
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.
snare respondmerged as #33, then main was moved back to56df09bbefore the multi-page site branch was merged on top.9fbe2cd's parents are56df09b+6b2af83— neither is8641f7e— so the commit is no longer an ancestor of main andlib/respond.shvanished from the tree.This restores
8641f7eunchanged. Touches onlybin/snareandlib/respond.sh— nothing underdocs/, so the new multi-page site is untouched.Verified against current main: shellcheck 0 warnings, selftest 10/10, non-interactive guard still refuses with exit 2, help-completeness check passes with
respondincluded.