20 KiB
Overview
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.
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.
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.
AI-native
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.
Security
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.
Cheap Reliable Hosting
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.
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
- domain name
- Cloudflare (optional but highly recommended)
- email server (MSFT or Google Workspace) or email forwarding if not using emails for domain (Cloudflare email services is useful for forewards)
- Google Analytics tag
- Google Captcha for forms
- 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
1. Author creates content in /content/ as .md files.
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.
Be sure to copy those new pages in this file below in the organization section.
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.
2. Use skill author-content-structuring-skill.md to do initial knowledge_id and chunk parsing of the .md author/content files.
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.
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.
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:
"license": "https://creativecommons.org/licenses/by/4.0/",
"usageInfo": "https://indx.earth/wiki/license/"
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.
4. Use Hugo to convert to HTML for web and humans. Add JSON-LD content as well to these pages.
Add google analytics measurement ID to baseof.html template
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
-
Run manually: cd /mnt/c/projects/indx/structured-website-builder-web-website python3 skills-scripts/sync_content_to_hugo.py
-
Then, render manually: cd /mnt/c/projects/indx/structured-website-builder-web-website/hugo-html-builder hugo --cleanDestinationDir
-
run html-semantic-artifacts-checker-skill.md (see notes below)
-
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
Adding 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:
"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 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.
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.
4.1. Add a contact us form to the home.md page where exists.
See contact-form-deployment.md for the infrastracture.
5. Build final discovery files:
-
ai-index.json - uses skill ai-index-discovery-materialization-skill.md, which itself uses build_discovery_files.py
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/community-summaries-paddling.json /public/data/open/indexes/community-summaries-home-health.json /public/data/open/indexes/whitepapers.json The root ai-index.json would contain section-level entries like: { "section_id": "community-summaries-paddling", "title": "CO+ Platform Summaries - Paddling", "summary": "...", "resource_count": 8, "index_url": "/data/open/indexes/community-summaries-paddling.json" } 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. Build the remaining documents using this skill: discovery-files-materialization-skill.md It will also reference this script to help: build_discovery_files.py -
robots.txt
-
sitemap.xml
-
llms.txt
-
agents.md
-
skills.md
-
sitemap.xml will have: lastmod> — last modification date — estimated update frequency — relative importance (0.0–1.0)
6. Upload all according to structure below.
For future updates, from anywhere on the server:
cd /path/to/structured-website-builder
git pull
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/
Clear Cloudlfare cache and hard browser refresh and spot check pages and json pages.
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
9. Cache all other pages at Cloudlfare.
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/
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.
11. Submit to google search console, bing.
Structure - Updates as pages added/ammended/deleted
Ouch. This does not look right in the browser, so just download and open this README page in an editor to see the structure below.
As pages are added, then get copied in below.
/site-root │ /content/ - Human-authored markdown source. Once created, they are parsed in a first step using a skill to create frontmatter and chunks for chunks.json. They overwrite the authored pages. If the author wants, they can keep original pages into _original folder, but moving forward, it is best just to author from these pages and re-run the initial parser to update them. home.md health.md │ │ /community-summaries/ - content and diuscssions happen at community.indx.earth, the discourse app. DIscourse entries are pulled every 2-weeks and summaries created and sent out as an email to subscribers/community members. These summaries are those emails. Emails to industry groups are segmented by folders. /paddling 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 /home-health indx-co-update-apr-13-apr-26-a-powerful-new-ai-findability-tool-to-analyze-your-website-home-health.md │ /public/ - Published static website, with docs below. │ index.html - this is derived from home.md robots.txt sitemap.xml llms.txt agents.md skills.md ai-index.json │ /data/ - this is the AI structured content for AI agents to access, stored locally at /public/data/ and served publicly as /data/. They are the authored pages (.md) parsed into json pages for AI. /open/ /pages/
/home/
│ chunks.json │ qa.json │ /community-summaries/
/paddling/
/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
/home-health
/indx-co-update-apr-13-apr-26-a-powerful-new-ai-findability-tool-to-analyze-your-website-paddling/
chunks.json
qa.json
│ /wiki/ - sub-pages How things work, Documentation, Knowledge base, FAQs, Reference material, Concept explanations /assets/ /images/ /css/ /js/ │ ├── /skills-scripts/ - the skills and deterministic scripts used to create this website and all of its documents. │ author-content-structuring-skill.md cis-guided-semantic-chunk-generation-skill.md semantic-qa-materialization-skill.md ai-index-discovery-materialization-skill.md build_sitemap.py build-llms-skill.md build-agents-skill.md build-robots-txt.py publish_site.py build-skills.md
│ ├── /templates/ - ptional HTML templates │ page.html │ email.html │ ├── /generated/ - Temporary/generated artifacts │ ├── /logs/
/temp/
chunk-intelligence-signature.md - the latest copy of this document is copied into here. The source of truth is in this repo: https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structur
/tasks-workflows/ - a directory holding .md files on tasks and workflows completed for this website.
/hugo-html-builder/ - the Hugo repo to build the items above into an html website.
/.venv - contact form scripts and dependencies.
│ ├── docker-compose.yml
├── Caddyfile - this website uses Caddy for referse proxy and may be different for others depending on how they host.