Files
structured-website-builder-…/README.md
T

456 lines
22 KiB
Markdown
Raw Normal View History

2026-06-06 06:37:41 -06:00
# Overview
2026-06-09 11:57:54 -06:00
This repo is the indx.earth front-end website. It is also a framework for building static websites, with home page, sub pages, contact/email subscribe forms. THe human author uses .md files to build the pages, and then uses skills, py scripts and other software to build the website.
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
This process builds a website that is highly structured for SEO and GEO for the AI agentic era. It makes for a fast website that is not dependent on platforms or services (wordpress, shopify, magento, etc.). Users upload it to a VM or dockerized environment. This repo will evolve over time as the indx.earth website grows. Fork it and point Codex or Claude or any inference AI to the repo to help you modify this repo for your own website.
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
If you have existing big, complex websites in platforms like wordpress, shopify, magento, etc., keep them as your human layer, and use the process in this builder to create corresponding content for AI. I suggest you begin first in this document (https://projects.eddiesoehnel.com/adminprojects/seo-geo) to get your bearings on SEO, GEO and findability in the AI era, and how and why this builder fits.
2026-06-06 06:37:41 -06:00
# AI-native
2026-06-09 11:57:54 -06:00
The idea is to build this front website in git and publish it using apps, skills and scripts. Codex or any AI can access it to complete tasks. Over time we can automate all this via a harness so that AI will do more and more of maintaining and publishing new content. We create a harness so that AI can proactively update content (like a Wiki if one is built) as other elements of the business change. We automate through AI the maintenance of all the content ontology (relationships, edges and nodes). If we add ecommerce carts (human or AI - like x402), AI manages all of that.
2026-06-06 06:37:41 -06:00
# Security
2026-06-09 11:57:54 -06:00
Never, ever store any kind of credentials in this repo. If you copy this repo and modiy for your own website, this repo is designed to be copied in its entirety to your website main directory, so don't store anything sensitive here. Keep it outside of this directory entirely.
2026-06-06 06:37:41 -06:00
# Cheap Reliable Hosting
2026-06-09 11:57:54 -06:00
Get an older PC (one bricked because of Windows 10 legacy), convert to Linux (Ubuntu), and then host this website on it. Many people have these PCs in their closets because they do not know what to do with them. Ask family/friends to give them to you for free. Get a static IP address with your internet provider, or use Cloudlfare TUnnel client that bypasses the need/expense of a static IP (but you have to use Cloudflare, which offers a really nice free plan with lots of functionality). Now, you have free hosting. Get a second bricked PC and keep it on standby if your primary fails.
2026-06-06 06:37:41 -06:00
# Organization
The directory struture of this repo matches the structure, except for this README.md page, the UPDATES.md page, LICENSE, CHANGELOG.md and the tasks-workflows. folder
# Initial Primary Checklist For Setting Up A Website
1. domain name
2. Cloudflare (optional but highly recommended)
3. email server (MSFT or Google Workspace) or email forwarding if not using emails for domain (Cloudflare email services is useful for forewards)
4. Google Analytics tag
5. Google Captcha for forms
2026-06-09 11:57:54 -06:00
site key: <recaptcha-site-key>
secret key: <recaptcha-secret-key>
2026-06-23 12:16:03 -06:00
site keys goes here:
- skills-scripts/sync_content_to_hugo.py (line 32) - generator source for future Hugo syncs
- hugo-html-builder/content/_index.md (line 296) - current Hugo home content
- hugo-html-builder/public/index.html (line 448) - Hugo rendered output
- public/index.html (line 448) - root published output
For the server process, the new secret should go only in the server env /etc/indx-contact.env. as RECAPTCHA_SECRET_KEY=..., then restart indx-contact.service: sudo systemctl restart indx-contact.service
confirm: sudo systemctl status indx-contact.service --no-pager
2026-06-06 06:37:41 -06:00
6. favicon (because I always forget these)
# Initial Conversion
As this builder is originally for indx.earth, we want to convert this repo into a clean new website repo for a different domain, brand, content set, and deployment target. To do that, use AI to run this skill against this repo: indx\structured-website-builder-web-website\skills-scripts\skill-convert-builder-for-new-website.md
## iNDX Website (https://indx.earth)
## Process
2026-06-09 11:57:54 -06:00
### 1. Author creates content in /content/ as .md files.
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
Just write them with headings as you would a normal webpage. I have saved a few in the folder_originals, but I now just create them, then they get overwritten in step 2 below.
I hard code the sitemap and its links into the home.md page. So, when new pages added, their links get hard coded in.
2026-06-06 06:37:41 -06:00
Be sure to copy those new pages in this file below in the organization section.
---
2026-06-09 11:57:54 -06:00
To engage AI with steps 2 and 3 below, the human should review this skill and guidance and direction on prompts and execution: execute-content-structuring-process-overview-skill.md This file is like a skill of skills that the human gives to the AI.
2026-06-06 06:37:41 -06:00
---
2026-06-09 11:57:54 -06:00
### 2. Use skill author-content-structuring-skill.md to do initial knowledge_id and chunk parsing of the .md author/content files.
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
Create basic front-matter to the .md author/cotent files as a stand-in for the CIS envelope process that is not being employed at this time. This is a reasoning layer for AI to parse the document. Or, the author could just use a template. Identity of the chunkcs are created here. If adding/ammending an existing page within chunks, just write inside the chuncks. If major changes, then create a new page. In either case, you will run through the steps below to re-parse the page and create the correct json files. For page sections like the form for contact us and email subscribe and the sitemap (both on home page of this website), create the identifiers around those sections to be consistent, but they are not used any further in creating the .json docs.
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
### 3. Once approved by author, use skill cis-guided-semantic-chunk-generation-skill.md to create chunks.json and use skill semantic-qa-materialization-skill.md to create qa.json.
2026-06-06 06:37:41 -06:00
These semantic artifacts are stored locally under /public/data/open/pages/ so they are served publicly at /data/open/pages/ after publishing. Here, we pull from the CIS envelope (chunk-intelligence-signature.md) for reference, not as a full implementation requirement. As this is a simple static website, we only need what is required to improve retrieval, continuity, reasoning and futur extensibility. We build the schema based on this perspective first for both chunks.json and qa.json. This is a reasoning layer.
Schema pulled from CIS envelope for this website:
- IDs
- labels
- content
- ordering
- heading hierarchy
- summaries
- tags
- document-level license and usage metadata
because these directly improve:
- retrieval;
- embeddings;
- graph traversal;
- semantic ranking;
- machine-readable rights and attribution handling.
Important Design Decisions
heading_path VERY important.
Example:
[
"The iNDX Platform",
"IndustrySIG"
]
This becomes:
- structural context;
- breadcrumb semantics;
- retrieval weighting.
order Needed. Even in graph systems:
- sequence still matters;
- narrative order matters;
- summarization matters.
This is not marketing copy.
It is semantic retrieval hinting.
Tags: use lightly. Do NOT: over-taxonomize. 3–10 good tags is enough.
Things I Deliberately Excluded
- No CID hashes yet Premature.
- No provenance objects Not needed yet.
- No trust scores No evidence basis yet.
- No ontology refs Too early.
- No relationships array Can derive later.
- No granular per-chunk permissions Site is public, with document-level license metadata.
- No embeddings Separate phase.
For generated `chunks.json` and `qa.json` files, include the following document-level metadata unless a page explicitly requires different rights handling:
```json
"license": "https://creativecommons.org/licenses/by/4.0/",
"usageInfo": "https://indx.earth/wiki/license/"
```
2026-06-09 11:57:54 -06:00
As final step, always run through the above documents again through an inference layer to cross-check that all the identifiers are carried throughout and content is consistent, as AI can make errors.
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
### 4. Use Hugo to convert to HTML for web and humans. Add JSON-LD content as well to these pages.
2026-06-06 06:37:41 -06:00
Add google analytics measurement ID to baseof.html template
2026-06-09 11:57:54 -06:00
First, copy the author generated.md files in /content/ (which went through step 2 already) into the hugo-html-builder/content, using script sync_content_to_hugo.py
2026-06-06 06:37:41 -06:00
- Run manually: cd /mnt/c/projects/indx/structured-website-builder-web-website
python3 skills-scripts/sync_content_to_hugo.py
2026-06-09 11:57:54 -06:00
2026-06-06 06:37:41 -06:00
- Then, render manually: cd /mnt/c/projects/indx/structured-website-builder-web-website/hugo-html-builder
hugo --cleanDestinationDir
#### Adding <link rel="alternate"> tags in <head> and JSON-LD data to html pages
Added a Hugo partial named semantic-discovery.html at:
hugo-html-builder/layouts/partials/semantic-discovery.html
The partial uses the site content license and usage guidance URLs in generated JSON-LD:
```json
"license": "https://creativecommons.org/licenses/by/4.0/",
"usageInfo": "https://indx.earth/wiki/license/"
```
This partial automatically generates machine-readable discovery metadata for rendered HTML pages. It adds <link rel="alternate" type="application/json"> tags for pages that have corresponding semantic artifact files, pointing crawlers and agents to that page’s chunks.json and qa.json files. It also generates JSON-LD structured data using Schema.org types. The home page renders as WebPage; individual community summary pages render as Article; section/list pages render as CollectionPage. For home and article pages, the JSON-LD also includes Dataset nodes for the associated chunks.json and qa.json files, with DataDownload links to the public artifact URLs.
Modified the shared Hugo base template:
hugo-html-builder/layouts/_default/baseof.html
The base template now calls the semantic discovery partial inside the HTML <head>:
{{ partial "semantic-discovery.html" . }}
Because baseof.html is the shared wrapper for the home page, list pages, and single article pages, this makes semantic discovery metadata render automatically across the site whenever Hugo builds the HTML. Future pages should not need hand-authored JSON-LD or alternate artifact links as long as their front matter and artifact paths follow the existing project conventions.
2026-06-09 11:57:54 -06:00
#### Run html-semantic-artifacts-checker-skill.md
As part of the hugo publishing process the above is added. After Hugo completes, run this skill: html-semantic-artifacts-checker-skill.md to make sure the tags and JSON-LD is correct in each new page.
#### Human Review and Copy Hugo Output To Root
When output passes human testing, run this scrtipt to copy the Hugo output to the root directory /public/ file: publish_hugo_output.py
It copies from:
hugo-html-builder/public/
into:
public/
while preserving these root discovery files:
robots.txt
sitemap.xml
llms.txt
agents.md
skills.md
ai-index.json
Run it with
cd /mnt/c/projects/indx/structured-website-builder-web-website
python3 skills-scripts/publish_hugo_output.py
As part of the hugo publishing process the above is added. After Hugo completes, run this skill: html-semantic-artifacts-checker-skill.md to make sure the tags and JSON-LD is correct in each new page.
2026-06-06 06:37:41 -06:00
### 4.1. Add a contact us form to the home.md page where <form> exists.
2026-06-09 11:57:54 -06:00
See contact-form-deployment.md for the infrastracture.
2026-06-06 06:37:41 -06:00
### 5. Build final discovery files:
2026-06-09 11:57:54 -06:00
- ai-index.json - uses skill ai-index-discovery-materialization-skill.md, which itself uses build_ai_index.py
2026-06-06 06:37:41 -06:00
Local semantic artifact files live in /public/data/open/pages/**. Public artifact URLs use /data/open/pages/** because /public is the deployed site root.
As the site grows, you’ll probably want a two-layer structure because the ai-index.json will get huge.
Keep root:
/public/ai-index.json
as the lightweight discovery manifest. It should stay small and answer:
What exists?
What categories/sections exist?
Where are the per-section indexes?
What should an AI retrieve first?
Then split detailed resource indexes by section, for example:
/public/data/open/indexes/home.json
/public/data/open/indexes/community-summaries.json
/public/data/open/indexes/whitepapers.json
The root ai-index.json would contain section-level entries like:
{
2026-06-09 11:57:54 -06:00
"section_id": "community-summaries",
"title": "CO+ Platform Summaries",
2026-06-06 06:37:41 -06:00
"summary": "...",
2026-06-09 11:57:54 -06:00
"resource_count": 11,
"index_url": "/data/open/indexes/community-summaries.json"
2026-06-06 06:37:41 -06:00
}
That keeps the main file fast and useful, while detailed discovery lives closer to the corpus.
A good rule of thumb:
Small site: one ai-index.json
Medium site: root ai-index.json plus section indexes
Large site: root index, section indexes, resource manifests, and maybe generated topic/entity indexes
So yes: eventually ai-index.json becomes the index of indexes, not the whole catalog.
2026-07-25 13:12:23 -06:00
After ai-index.json is rebuilt, build the remaining discovery files using this skill: discovery-files-materialization-skill.md. It references build_discovery_files.py and must be run after the Hugo publish step when pages are added, renamed, or deleted so sitemap.xml, llms.txt, agents.md, skills.md, robots.txt, and .well-known/ai-catalog.json stay current.
- .well-known/ai-catalog.json - uses skill ai-catalog-materialization-skill.md through build_discovery_files.py. It advertises actual public agent-usable resources and stays separate from the content-focused ai-index.json.
2026-06-06 06:37:41 -06:00
- robots.txt
- sitemap.xml
- llms.txt
- agents.md
- skills.md
- sitemap.xml will have:
lastmod> — last modification date
<changefreq> — estimated update frequency
<priority> — relative importance (0.0–1.0)
2026-07-17 17:00:44 -06:00
- if API's/MCP available, consider creating skills specifically that teach agents how to call the API correctly.
2026-06-09 11:57:54 -06:00
### 6. Upload all according to structure below.
2026-06-06 06:37:41 -06:00
For future updates, from anywhere on the server:
2026-06-09 11:57:54 -06:00
cd /path/to/structured-website-builder
git remote set-url origin git.example.com:example/structured-website-builder-private.git
git remote -v
git pull
2026-06-06 06:37:41 -06:00
Then after pulling updates, rebuild/redeploy container:
cd /path/to/structured-website-builder
sudo docker-compose down --remove-orphans
sudo docker ps -a --format '{{.ID}} {{.Names}}' | grep 'structured-website-builder-web' | awk '{print $1}' | xargs -r sudo docker rm -f
sudo docker-compose build --no-cache
sudo docker-compose up -d --force-recreate --remove-orphans
sudo docker ps | grep structured-website-builder-web
curl -I http://localhost:8090/
2026-06-09 11:57:54 -06:00
Clear Cloudlfare cache and hard browser refresh and spot check pages and json pages.
2026-06-06 06:37:41 -06:00
### 7. Redirect from Cloudflare to my edge data center
(I self-host on my farm in my own data center I built), then via Caddy to docker container on VM index-front-prod-app. There is an existing docker container already on same VM the houses a discourse app (https://community.indx.earth)
### 8. Use healthz.md file as no cache page for uptime, resolves to /public/healthz/index.html
2026-06-09 11:57:54 -06:00
### 9. Cache all other pages at Cloudlfare.
2026-06-06 06:37:41 -06:00
Maintain bot blocking at Cloudflare except for known, reputable SEO and AI model crawlers
### 10. Do an analysis using this MCP server: https://specification.website/mcp/
2026-06-09 11:57:54 -06:00
Add to desktop AI (OpenAI, Claude) or MCP aware agent. Use the agent to compare this repo against the specs via the MCP server to help catch any other items.
2026-06-06 06:37:41 -06:00
### 11. Submit to google search console, bing.
2026-06-09 11:57:54 -06:00
Reference the master findability framework for any other submissions required based on your business category C:\path\to\seo-geo\README.md
### 12. Setup Uptime Robot for https://indx.earth/healthz/
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
## Structure - Updates as pages added/amended/deleted
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
As pages are added, amended, or deleted, keep this listing current. The current community summary structure is flat under `/community-summaries/`; do not reintroduce old segmented subdirectories.
2026-06-06 06:37:41 -06:00
2026-06-09 11:57:54 -06:00
```text
2026-06-06 06:37:41 -06:00
/site-root
2026-06-09 11:57:54 -06:00
README.md
UPDATES.md
LICENSE
CHANGELOG.md
docker-compose.yml
/content/ - Human-authored markdown source.
home.md
healthz.md
/community-summaries/
indx-co-update-may-26-june-7-updates-paddlenet-findability-stack-improvements-ai-workflows.md
indx-co-update-may-11-may-25-2026-paddlenet-earth-coming-for-findability-in-paddling-industry-what-i-need-from-you.md
indx-co-update-apr-27-may-10-next-major-tool-release-rebuilt-indx-earth=for-ai-era-and-open-sourced-the-builder.md
indx-co-update-apr-13-apr-26-a-powerful-new-ai-findability-tool-to-analyze-your-website-paddling.md
indx-co-update-mar-30-apr-12-a-new-revenue-stream-just-opened-most-arent-paying-attention-join-my-zoom-office-hours-if-you-need-help.md
indx-co-update-mar-16-29-im-releasing-the-next-tool-takes-10-minutes-changes-everything.md
indx-co-update-mar-2-mar-15-ai-productivity-gold-rush-is-here-stop-dont-fomodo-this-instead-here-is-why.md
indx-co-update-feb-16-mar-1-start-doing-this-today-your-future-self-willthank-you.md
indx-co-update-feb-2-feb-15-please-contribute-to-the-google-sheetmaster-paddling-industry-graph.md
indx-co-update-jan-19-feb-1-here-is-the-findability-framework-i-promised.md
indx-co-update-jan-5-jan-18-the-findability-breakthrough.md
/wiki/
license.md
/hugo-html-builder/ - Hugo project used to render the HTML website.
/content/ - Synced from /content/ by sync_content_to_hugo.py.
/layouts/
/static/
2026-06-06 06:37:41 -06:00
/assets/
/images/
2026-06-09 11:57:54 -06:00
apple_old_pc.jpg
indx-earth-logo.png
logo_earth.png
/public/ - Hugo render output before publish_hugo_output.py copies it to root /public/.
/public/ - Published static website.
index.html
robots.txt
sitemap.xml
llms.txt
agents.md
skills.md
ai-index.json
/.well-known/
2026-07-25 13:12:23 -06:00
ai-catalog.json
2026-06-09 11:57:54 -06:00
agent-card.json
security.txt
/assets/
/images/
apple_old_pc.jpg
indx-earth-logo.png
logo_earth.png
/js/
/community-summaries/
index.html
indx-co-update-may-26-june-7-updates-paddlenet-findability-stack-improvements-ai-workflows.html
indx-co-update-may-11-may-25-2026-paddlenet-earth-coming-for-findability-in-paddling-industry-what-i-need-from-you.html
indx-co-update-apr-27-may-10-next-major-tool-release-rebuilt-indx-earth-for-ai-era-and-open-sourced-the-builder-paddling.html
indx-co-update-apr-13-apr-26-a-powerful-new-ai-findability-tool-to-analyze-your-website-paddling.html
indx-co-update-mar-30-apr-12-a-new-revenue-stream-just-opened-most-arent-paying-attention-join-my-zoom-office-hours-if-you-need-help.html
indx-co-update-mar-16-29-im-releasing-the-next-tool-takes-10-minutes-changes-everything.html
indx-co-update-mar-2-mar-15-ai-productivity-gold-rush-is-here-stop-dont-fomodo-this-instead-here-is-why.html
indx-co-update-feb-16-mar-1-start-doing-this-today-your-future-self-willthank-you.html
indx-co-update-feb-2-feb-15-please-contribute-to-the-google-sheetmaster-paddling-industry-graph.html
indx-co-update-jan-19-feb-1-here-is-the-findability-framework-i-promised.html
indx-co-update-jan-5-jan-18-the-findability-breakthrough.html
/data/open/pages/ - AI-readable semantic artifacts served publicly as /data/open/pages/.
/home/
chunks.json
qa.json
/community-summaries/
/indx-co-update-may-26-june-7-updates-paddlenet-findability-stack-improvements-ai-workflows/
chunks.json
qa.json
/indx-co-update-may-11-may-25-2026-paddlenet-earth-coming-for-findability-in-paddling-industry-what-i-need-from-you/
chunks.json
qa.json
/indx-co-update-apr-27-may-10-next-major-tool-release-rebuilt-indx-earth-for-ai-era-and-open-sourced-the-builder-paddling/
chunks.json
qa.json
/indx-co-update-apr-13-apr-26-a-powerful-new-ai-findability-tool-to-analyze-your-website-paddling/
chunks.json
qa.json
/indx-co-update-mar-30-apr-12-a-new-revenue-stream-just-opened-most-arent-paying-attention-join-my-zoom-office-hours-if-you-need-help/
chunks.json
qa.json
/indx-co-update-mar-16-29-im-releasing-the-next-tool-takes-10-minutes-changes-everything/
chunks.json
qa.json
/indx-co-update-mar-2-mar-15-ai-productivity-gold-rush-is-here-stop-dont-fomodo-this-instead-here-is-why/
chunks.json
qa.json
/indx-co-update-feb-16-mar-1-start-doing-this-today-your-future-self-willthank-you/
chunks.json
qa.json
/indx-co-update-feb-2-feb-15-please-contribute-to-the-google-sheetmaster-paddling-industry-graph/
chunks.json
qa.json
/indx-co-update-jan-19-feb-1-here-is-the-findability-framework-i-promised/
chunks.json
qa.json
/indx-co-update-jan-5-jan-18-the-findability-breakthrough/
chunks.json
qa.json
/wiki/
index.html
/license/
index.html
/skills-scripts/ - Skills and deterministic scripts used to structure, render, validate, and publish this website.
author-content-structuring-skill.md
cis-guided-semantic-chunk-generation-skill.md
semantic-qa-materialization-skill.md
2026-07-25 13:12:23 -06:00
ai-catalog-materialization-skill.md
2026-06-09 11:57:54 -06:00
ai-index-discovery-materialization-skill.md
discovery-files-materialization-skill.md
html-semantic-artifacts-checker-skill.md
sync_content_to_hugo.py
publish_hugo_output.py
build_ai_index.py
build_discovery_files.py
/tasks-workflows/ - Task notes and workflow records for website changes.
/temp/ - Temporary reference material.
/.venv - Contact form scripts and dependencies.
```