Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Check the README's <a> links too, and drop a repeated setup paragraph

Claudeaed59efe2f5b
diff --git a/docs/self-hosting.md b/docs/self-hosting.md
index 4b81198..7af60f6 100644
--- a/docs/self-hosting.md
+++ b/docs/self-hosting.md
@@ -89,8 +89,6 @@ A deployment made with the button needs no environment variables. These are ther
The first time you open a new install it takes you to `/setup`. There you name your organization, give its support address, and create the first account, which becomes the administrator. After that the setup page is gone for good.
-The first time you open a new install it takes you to `/setup`. There you name your organization, give its support address, and create the first account, which becomes the administrator. After that the setup page is gone for good.
-
- **Support address.** Setup does not finish without one. It is the address signers and people with an account are told to write to, and where replies to the site's emails go. It is saved in your install's own settings and nowhere else; there is no SignuDoc address that it falls back to. The administrator can change it under Settings, Organization, but not remove it.
- **Who can sign up.** The install starts by letting people with an email address at the administrator's own domain create accounts (or nobody else, if the administrator used a public mailbox such as Gmail). The administrator can change this under Settings, Organization: people at listed domains, nobody, or anyone. People who are only sent a document to sign never need an account.
diff --git a/src/lib/deploy-button.test.ts b/src/lib/deploy-button.test.ts
index 560eba3..b771885 100644
--- a/src/lib/deploy-button.test.ts
+++ b/src/lib/deploy-button.test.ts
@@ -90,9 +90,10 @@ test("the button's demo card is complete and its picture is in the repository",
});
test("every picture and page the README and the guides link to is in the repository", () => {
- // Markdown pictures and links, and the <img> tags the README centres.
+ // Markdown pictures and links, and the <img> and <a> tags the README
+ // centres.
const localTarget =
- /!?\[[^\]]*\]\((?!https?:|#|mailto:)([^)\s#]+)[^)]*\)|<img[^>]*\ssrc="(?!https?:)([^"]+)"/g;
+ /!?\[[^\]]*\]\((?!https?:|#|mailto:)([^)\s#]+)[^)]*\)|<(?:img[^>]*\ssrc|a[^>]*\shref)="(?!https?:|#|mailto:)([^"#]+)[^"]*"/g;
for (const document of [
"README.md",