added
This commit is contained in:
1 parent
38ae828d82
commit
6dda00181f
29 files changed
+1185
-339
No files matched your search
@@ -1,17 +1,17 @@
|
||||
1. Add contact form script.
|
||||
SMTP_HOST = "smtp.example.com"
|
||||
1. Add contact form script.
|
||||
SMTP_HOST = "smtp.postmarkapp.com"
|
||||
SMTP_PORT = 587
|
||||
SMTP_USER =
|
||||
SMTP =
|
||||
SMTP =
|
||||
authentication: TLS, CRAM-MD5, or Plain text
|
||||
Once script built. Set credentials through private environment configuration. We need to add fastapi and not sure what else - python if we use a py script. Map to the form already published via Hugo, which goes into the home page, or index.html.
|
||||
Once script built. I will add the credentials. We need to add fastapi and not sure what else - python if we use a py script. Map to the form already published via Hugo, which goes into the home page, or index.html.
|
||||
|
||||
Changed the injected contact form in sync_content_to_hugo.py to post to /api/contact.
|
||||
Added browser submit handling at contact-form.js.
|
||||
Added FastAPI contact handler at contact_app.py.
|
||||
Added VM/runtime notes at CONTACT_FORM_DEPLOYMENT.md.
|
||||
|
||||
Changed message home page to use form for contact, email subscribe or change email preferences.
|
||||
Changed message home page to use form for contact, email subscribe or change email preferences.
|
||||
|
||||
Updated the generated contact form injection in sync_content_to_hugo.py.
|
||||
Form now posts to /api/contact.
|
||||
@@ -24,7 +24,7 @@ Added FastAPI contact form backend:
|
||||
api/contact_app.py
|
||||
Endpoint: /api/contact
|
||||
Health check: /api/contact/healthz
|
||||
Uses SMTP provider via environment variables.
|
||||
Uses Postmark SMTP via environment variables.
|
||||
Added dependency file:
|
||||
requirements-contact-api.txt
|
||||
Added deployment notes:
|
||||
@@ -52,7 +52,7 @@ A systemd service, likely:
|
||||
which runs:
|
||||
|
||||
/path/to/structured-website-builder/.venv-contact/bin/uvicorn api.contact_app:app --host 0.0.0.0 --port 8091
|
||||
An env file for SMTP/SMTP provider credentials:
|
||||
An env file for SMTP/Postmark credentials:
|
||||
/etc/indx-contact.env
|
||||
A UFW rule allowing the Caddy router/LAN to reach the API on port 8091.
|
||||
|
||||
@@ -77,21 +77,21 @@ Updated Caddy routing for indx.earth so /api/contact* proxies to <contact-api-ho
|
||||
Verified:
|
||||
https://indx.earth/api/contact/healthz returns {"status":"ok"}.
|
||||
Public POST to https://indx.earth/api/contact returns {"ok":true}.
|
||||
Email send test succeeded through the configured SMTP provider.
|
||||
Email send test succeeded through Postmark.
|
||||
server file with smpt creds is /etc/indx-contact.env
|
||||
|
||||
2. Page fixes:
|
||||
2. Page fixes:
|
||||
- under C:\path\to\structured-website-builder\content\community-summaries\home-health, made minor text adjustments so repulish these pages
|
||||
- under C:\path\to\structured-website-builder\content\community-summaries\paddling, made minor text adjustments so repulish these pages
|
||||
- under C:\path\to\structured-website-builder\content, home.md page: added line breaks between sitemap links for better reading
|
||||
|
||||
DOne.
|
||||
DOne.
|
||||
|
||||
3. make summary pages with published pages in descending order, not ascending for data added: C:\path\to\structured-website-builder\public\community-summaries\home-health\index.html and C:\path\to\structured-website-builder\public\community-summaries\paddling\index.html
|
||||
|
||||
Added missing date: 2026-05-10 to the two May 10 summary pages so Hugo can sort them newest-first.
|
||||
|
||||
4. fix page template anchors co+ platform summaries to sitemap. This link at topof page: CO+ Platform Summaries - anchor should be to sitemap (https://indx.earth/#sitemap). This is an adjustment to the page template: C:\path\to\structured-website-builder\hugo-html-builder\layouts\_default\baseof.html THis adjustment was made manually by me. Now republish all pages with this correct template.
|
||||
4. fix page template anchors co+ platform summaries to sitemap. This link at topof page: CO+ Platform Summaries - anchor should be to sitemap (https://indx.earth/#sitemap). This is an adjustment to the page template: C:\path\to\structured-website-builder\hugo-html-builder\layouts\_default\baseof.html THis adjustment was made manually by me. Now republish all pages with this correct template.
|
||||
|
||||
Done
|
||||
|
||||
@@ -107,7 +107,7 @@ Done
|
||||
max-width: 860px;
|
||||
}
|
||||
|
||||
Which needs to be adjusted? Adjusted and then we will test.
|
||||
Which needs to be adjusted? Adjusted and then we will test.
|
||||
|
||||
Done
|
||||
|
||||
@@ -115,7 +115,7 @@ Done
|
||||
|
||||
added
|
||||
|
||||
7. Add google analytics tracking code to C:\path\to\structured-website-builder\hugo-html-builder\layouts\_default\baseof.html : G-4LGW2BYJDQ This is themeausrement ID. Is this the proper artifact to add, or is it stream ID?
|
||||
7. Add google analytics tracking code to C:\path\to\structured-website-builder\hugo-html-builder\layouts\_default\baseof.html : <google-analytics-measurement-id> This is themeausrement ID. Is this the proper artifact to add, or is it stream ID?
|
||||
|
||||
added
|
||||
|
||||
@@ -123,4 +123,4 @@ submitted to google and bing sitemap
|
||||
|
||||
Create new git release v0.2.0
|
||||
|
||||
Removed Cloudflare bots blocking. Created manage rules for blocking bots on subdomains.
|
||||
Removed Cloudflare bots blocking. Created manage rules for blocking bots on subdomains.
|
||||
@@ -0,0 +1,78 @@
|
||||
# iNDX reCAPTCHA v2 Prep - 2026-06-08
|
||||
|
||||
## Context
|
||||
|
||||
During the paddleNET launch, the contact form initially used the wrong reCAPTCHA key type. The visible checkbox widget requires a classic reCAPTCHA v2 checkbox key, not an Enterprise/score-style key.
|
||||
|
||||
The same correction was prepared for iNDX so the future iNDX contact form work can use the correct key type.
|
||||
|
||||
## Key Lesson
|
||||
|
||||
If the page uses this classic checkbox widget:
|
||||
|
||||
```html
|
||||
<div class="g-recaptcha" data-sitekey="..."></div>
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
```
|
||||
|
||||
then the Google key must be:
|
||||
|
||||
```text
|
||||
reCAPTCHA v2 checkbox
|
||||
```
|
||||
|
||||
Do not use a key whose integration instructions show:
|
||||
|
||||
```text
|
||||
grecaptcha.enterprise.execute(...)
|
||||
```
|
||||
|
||||
That is the Enterprise/action-score style flow and requires different frontend and backend verification code.
|
||||
|
||||
## Error Seen On paddleNET
|
||||
|
||||
```text
|
||||
ERROR for site owner: Invalid key type
|
||||
```
|
||||
|
||||
Root cause:
|
||||
|
||||
- Frontend widget expected v2 checkbox.
|
||||
- Site key was not v2 checkbox.
|
||||
|
||||
## iNDX Action Completed
|
||||
|
||||
A new v2 checkbox key was created for iNDX and the old v3-style key was removed/replaced in Google reCAPTCHA management.
|
||||
|
||||
Secrets should not be committed to this repo. Only the public site key belongs in HTML/source. The secret key belongs in the production server env file.
|
||||
|
||||
## Implementation Pattern For iNDX
|
||||
|
||||
Frontend source should use the public site key:
|
||||
|
||||
```html
|
||||
<div class="g-recaptcha" data-sitekey="<indx-v2-checkbox-site-key>"></div>
|
||||
```
|
||||
|
||||
Backend env should use the private secret:
|
||||
|
||||
```bash
|
||||
RECAPTCHA_SECRET_KEY=<indx-v2-checkbox-secret-key>
|
||||
```
|
||||
|
||||
Backend verification can use classic siteverify:
|
||||
|
||||
```text
|
||||
https://www.google.com/recaptcha/api/siteverify
|
||||
```
|
||||
|
||||
## Future Similar Task Checklist
|
||||
|
||||
1. Decide which reCAPTCHA integration the code uses.
|
||||
2. For visible checkbox, create/select reCAPTCHA v2 checkbox key.
|
||||
3. Add both root and www domains.
|
||||
4. Put public site key in HTML/source.
|
||||
5. Put secret key only in server env.
|
||||
6. Restart backend after changing secret.
|
||||
7. Hard refresh browser and test the widget.
|
||||
8. Submit a real form to confirm backend verification succeeds.
|
||||
@@ -0,0 +1,4 @@
|
||||
1. bottom footer horiz line change to black.
|
||||
2. Format the page width and text treatment and any other visual aspects exactly the same as what we did for paddlenet C:\projects\paddlenet\paddlenet-app\paddlenet-front-website\public\index.html. Take a look at C:\projects\paddlenet\paddlenet-app\paddlenet-front-website\hugo-html-builder\layouts\_default\baseof.html for reference
|
||||
3. publish new page: C:\path\to\structured-website-builder\content\community-summaries\indx-co-update-may-26-june-7-updates-paddlenet-findability-stack-improvements-ai-workflows.md and add to sitemap on home page
|
||||
4. add captcha to forms using credentials in C:\path\to\structured-website-builder\README.md
|
||||
@@ -0,0 +1,88 @@
|
||||
# Work Completed
|
||||
|
||||
Completed tranche 1 and tranche 2 local website updates, rebuilt the site locally, and verified the live pull/test cycle.
|
||||
|
||||
# Content And Page Updates
|
||||
|
||||
Published the new community summary page:
|
||||
indx-co-update-may-26-june-7-updates-paddlenet-findability-stack-improvements-ai-workflows.html
|
||||
Structured the new page with front matter, chunk markers, chunks.json, and qa.json.
|
||||
Added the page to homepage sitemap links and regenerated final discovery files.
|
||||
Fixed the missing image on the new page by replacing the placeholder with a real image reference:
|
||||
/assets/images/apple_old_pc.jpg
|
||||
Added the image to Hugo static assets so future clean builds preserve it.
|
||||
|
||||
# Layout And Formatting
|
||||
|
||||
Matched iNDX page width/text treatment to the paddleNET formatting pattern.
|
||||
Changed the footer horizontal line to black.
|
||||
Added reCAPTCHA loading and contact form integration.
|
||||
Fixed homepage heading hierarchy:
|
||||
one H1, major sections H2, subsections H3.
|
||||
Normalized homepage punctuation to prevent visible mojibake in rendered HTML.
|
||||
|
||||
# Discovery And Semantic Files
|
||||
|
||||
Removed stale /community-summaries/paddling/ and /community-summaries/home-health/ references and rendered directories.
|
||||
Patched semantic discovery paths for the current flat /community-summaries/ structure.
|
||||
Rebuilt:
|
||||
ai-index.json, robots.txt, sitemap.xml, llms.txt, agents.md, skills.md.
|
||||
Added deterministic .well-known generation:
|
||||
.well-known/security.txt
|
||||
.well-known/agent-card.json
|
||||
Added structured asset links on the homepage as name-only links.
|
||||
|
||||
# SEO / Social / Policy
|
||||
|
||||
Added canonical URLs to generated HTML.
|
||||
Added Open Graph and Twitter metadata.
|
||||
Fixed the license page title by adding missing front matter.
|
||||
Added compact analytics/cookie disclosure to the license page without creating a terms page.
|
||||
Documented deploy-level security/cache/compression headers without touching Caddy config.
|
||||
|
||||
# Process Fixes
|
||||
|
||||
Patched README/process guidance so future publishing order is clear:
|
||||
build Hugo/publish output, then rebuild ai-index.json, then run final discovery-file generation.
|
||||
Patched discovery materialization skills so stale sitemap/discovery files do not persist after publish.
|
||||
Ported the same final-discovery process fix to paddleNET.
|
||||
|
||||
# Private Repo / VM Access
|
||||
|
||||
Guided setup for iNDX private Gitea repo pulls from the iNDX VM using SSH:
|
||||
generated VM key, added it to Gitea, configured gitea-lan, switched repo remote from HTTPS to SSH, and enabled git pull from the private repo.
|
||||
|
||||
# Validation Completed
|
||||
|
||||
Hugo clean build ran successfully.
|
||||
Publish script copied fresh Hugo output into public.
|
||||
ai-index.json rebuilt with 18 resources.
|
||||
sitemap.xml validated as XML with 18 URLs.
|
||||
New page included in sitemap.
|
||||
No stale old community subdirectory references remained.
|
||||
New page image renders from the published path.
|
||||
Root discovery and .well-known files regenerated successfully.
|
||||
|
||||
# Specific changes
|
||||
|
||||
# First Set of Changes
|
||||
|
||||
1. bottom footer horiz line change to black.
|
||||
2. Format the page width and text treatment and any other visual aspects exactly the same as what we did for paddlenet C:\projects\paddlenet\paddlenet-app\paddlenet-front-website\public\index.html. Take a look at C:\projects\paddlenet\paddlenet-app\paddlenet-front-website\hugo-html-builder\layouts\_default\baseof.html for reference
|
||||
3. publish new page: C:\path\to\structured-website-builder\content\community-summaries\indx-co-update-may-26-june-7-updates-paddlenet-findability-stack-improvements-ai-workflows.md and add to sitemap on home page
|
||||
4. add captcha to forms using credentials in C:\path\to\structured-website-builder\README.md
|
||||
|
||||
# Second Set Of Changes
|
||||
|
||||
We did this already for this website: C:\projects\paddlenet\paddlenet-app\paddlenet-front-website Review there for guidance and to keep consistency here
|
||||
|
||||
1. Add canonical URLs to generated HTML. No `<link rel="canonical">` appears in the generated HTML or base template, and the site has duplicate-looking paths under `community-summaries/` and `community-summaries/paddling/`.
|
||||
2. Add Open Graph and Twitter/social preview metadata: `og:title`, `og:description`, `og:image`, `og:url`, and `twitter:*`.
|
||||
3. Add a privacy policy and cookie/analytics disclosure or consent flow. Google Tag Manager / GA is loaded on every page, but no privacy policy page or consent/disclosure flow is currently present.
|
||||
4. Add `/.well-known/` files, especially `/.well-known/security.txt`, plus agent discovery files such as `/.well-known/agent-skills.json` or `/.well-known/agent-card.json` if useful.
|
||||
5. Add or document deploy-level security headers: CSP, HSTS, `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`, and `frame-ancestors`.
|
||||
6. Improve homepage heading hierarchy. The homepage currently uses many top-level `<h1>` sections; use one page `<h1>`, major sections as `<h2>`, and subsections as `<h3>`.
|
||||
7. Fix visible mojibake in built homepage content, such as `—` and `’`, which indicates an encoding mismatch in the content/build pipeline.
|
||||
8. Fix the license page title. `public/wiki/license/index.html` renders `<title> | iNDX Earth</title>`, which likely means the Hugo title/front matter is missing or not syncing correctly.
|
||||
9. Add deploy header config for cache-control and compression if the hosting platform supports checked-in config.
|
||||
10. add structured assets - follow the model used here: C:\projects\paddlenet\paddlenet-app\paddlenet-front-website\public\index.html
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
# Patch Summary
|
||||
|
||||
Removed stale community-summaries/paddling/ and community-summaries/home-health/ references from the iNDX Earth site after consolidating community summaries under the flat /community-summaries/ route.
|
||||
|
||||
Changes made:
|
||||
|
||||
Removed stale generated directories:
|
||||
/public/community-summaries/paddling/
|
||||
/public/community-summaries/home-health/
|
||||
Updated community-summary links to use flat routes:
|
||||
/community-summaries/{slug}.html
|
||||
Patched semantic discovery generation so community-summary artifact links now resolve to:
|
||||
/data/open/pages/community-summaries/{slug}/chunks.json
|
||||
/data/open/pages/community-summaries/{slug}/qa.json
|
||||
Updated related source content and semantic artifact references so old audience-folder URLs do not reappear.
|
||||
Updated workflow/skill guidance to stop referencing audience section paths.
|
||||
Validation:
|
||||
|
||||
Confirmed no stale /community-summaries/paddling/ or /community-summaries/home-health/ references remain in active source, Hugo templates, semantic artifacts, public discovery files, or generated public output.
|
||||
Confirmed old audience directories are no longer present in public/.
|
||||
|
||||
# Discovery Files Patch
|
||||
|
||||
Fixed the publishing process so final root discovery files are regenerated after Hugo publish and AI index rebuild.
|
||||
|
||||
Root discovery files affected:
|
||||
|
||||
robots.txt
|
||||
sitemap.xml
|
||||
llms.txt
|
||||
agents.md
|
||||
skills.md
|
||||
Issue found:
|
||||
|
||||
publish_hugo_output.py preserves root discovery files, including sitemap.xml.
|
||||
Therefore, running Hugo publish alone does not update sitemap.xml, llms.txt, agents.md, skills.md, or robots.txt.
|
||||
After adding pages, the correct final sequence is:
|
||||
Run Hugo sync/build.
|
||||
Run publish_hugo_output.py.
|
||||
Run build_ai_index.py.
|
||||
Run build_discovery_files.py.
|
||||
Process guidance patched:
|
||||
|
||||
Fixed README wording so ai-index.json correctly points to build_ai_index.py.
|
||||
Added explicit instruction that after rebuilding ai-index.json, build_discovery_files.py must be run to update the final root discovery files.
|
||||
Updated ai-index-discovery-materialization-skill.md to hand off to discovery-files-materialization-skill.md.
|
||||
Updated discovery-files-materialization-skill.md wording to use generic section-page language instead of stale audience-section language.
|
||||
Validation:
|
||||
|
||||
Regenerated ai-index.json.
|
||||
Regenerated all final discovery files.
|
||||
Confirmed sitemap.xml includes the new page.
|
||||
Confirmed sitemap.xml parses as valid XML.
|
||||
Confirmed sitemap.xml includes /ai-index.json, /llms.txt, and /skills.md.
|
||||
Confirmed no stale audience-folder paths exist in final discovery outputs.
|
||||
Reference in new issue
Block a user