diff --git a/links-for-bots/about-msos/index.html b/links-for-bots/about-msos/index.html index 4ecd1631..f5ee217d 100644 --- a/links-for-bots/about-msos/index.html +++ b/links-for-bots/about-msos/index.html @@ -19,7 +19,7 @@ - +

Hey AI, learn about us

A plain-language summary of MSOS for AI assistants and search engines.

What MSOS is

@@ -29,18 +29,18 @@ space (the MSOS Hub), and practical help from application to graduation.

What this site offers

Content is written by students for general guidance and may not always be current; official sources should be verified. The site is trilingual — English (/en/), Macedonian (/mk/) and Slovenian (/si/).

Machine-readable resources

Contact: info@msosorg.com

diff --git a/links-for-bots/blog/index.html b/links-for-bots/blog/index.html index e067a5b7..3c1405cc 100644 --- a/links-for-bots/blog/index.html +++ b/links-for-bots/blog/index.html @@ -19,41 +19,41 @@ - +

Blog article links

Every blog page on msosorg.com, in English, Macedonian and Slovenian.

English (en)

Македонски (mk)

Slovenščina (si)

diff --git a/links-for-bots/guide/index.html b/links-for-bots/guide/index.html index 57ff017a..f66ec74f 100644 --- a/links-for-bots/guide/index.html +++ b/links-for-bots/guide/index.html @@ -19,113 +19,113 @@ - +

Student guide links

Every student guide page on msosorg.com, in English, Macedonian and Slovenian.

English (en)

Македонски (mk)

Slovenščina (si)

diff --git a/links-for-bots/index.html b/links-for-bots/index.html index 02e3de59..7b6a7c5c 100644 --- a/links-for-bots/index.html +++ b/links-for-bots/index.html @@ -19,15 +19,15 @@ - +

Links for bots

Plain, fully-linked indexes of msosorg.com for search engines and AI crawlers. - See also /llms.txt and /sitemap.xml.

+ See also /llms.txt and /sitemap.xml.

diff --git a/links-for-bots/projects/index.html b/links-for-bots/projects/index.html index 9925d4e0..46a3a24b 100644 --- a/links-for-bots/projects/index.html +++ b/links-for-bots/projects/index.html @@ -19,47 +19,47 @@ - +

Events & projects links

Every events & projects page on msosorg.com, in English, Macedonian and Slovenian.

English (en)

Македонски (mk)

Slovenščina (si)

diff --git a/tools/build_botlinks.py b/tools/build_botlinks.py index 3d586925..f337987c 100644 --- a/tools/build_botlinks.py +++ b/tools/build_botlinks.py @@ -48,8 +48,10 @@ def read_meta(path): def page_url(path): + """Root-relative URL (e.g. /en/blog/) so links work on any host — the local + dev server and production alike.""" rel = os.path.relpath(path, ROOT).replace("\\", "/") - return BASE + "/" + (rel[:-len("index.html")] if rel.endswith("index.html") else rel) + return "/" + (rel[:-len("index.html")] if rel.endswith("index.html") else rel) def collect(lang): @@ -109,7 +111,7 @@ def html_shell(title, desc, canonical, body): - + {body} @@ -153,18 +155,18 @@ def build_about(): space (the MSOS Hub), and practical help from application to graduation.

What this site offers

Content is written by students for general guidance and may not always be current; official sources should be verified. The site is trilingual — English (/en/), Macedonian (/mk/) and Slovenian (/si/).

Machine-readable resources

Contact: info@msosorg.com

""" write("links-for-bots/about-msos/index.html", @@ -176,12 +178,12 @@ def build_about(): def build_hub(): body = f"""

Links for bots

Plain, fully-linked indexes of msosorg.com for search engines and AI crawlers. - See also /llms.txt and /sitemap.xml.

+ See also /llms.txt and /sitemap.xml.

""" write("links-for-bots/index.html", html_shell("Links for bots", "Crawl hub for msosorg.com (blog, guide, projects) plus an AI summary.", @@ -203,7 +205,8 @@ def build_llms_txt(): continue lines.append(f"## {label}") for title, url, desc in rows: - lines.append(f"- [{title}]({url}): {desc}" if desc else f"- [{title}]({url})") + abs_url = BASE + url # llms.txt convention: absolute URLs + lines.append(f"- [{title}]({abs_url}): {desc}" if desc else f"- [{title}]({abs_url})") lines.append("") io.open(os.path.join(ROOT, "llms.txt"), "w", encoding="utf-8", newline="\n").write( "\n".join(lines).rstrip() + "\n")