Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions config/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ const commands = {
// Points at the static, crawlable mirror of this terminal generated by
// scripts/build-pages.js. Same data, plain HTML, real URLs.
www: function () {
term.stylePrint("Plain-text version of this site:");
term.displayURL("https://root.vc/about/");
term.displayURL("https://root.vc/portfolio/");
term.displayURL("https://root.vc/team/");
term.displayURL("https://root.vc/jobs/");
// There used to be a static mirror at /about/, /portfolio/ and friends.
// Those URLs now redirect back into this terminal, so pointing at them
// would just send someone in a circle. llms.txt is the real plain-text
// version of everything here.
term.stylePrint("You're looking at it. Plain text, for machines:");
term.displayURL("https://root.vc/llms.txt");
},

// ── File System ─────────────────────────────────────────────────────────────
Expand Down
227 changes: 0 additions & 227 deletions css/pages.css

This file was deleted.

20 changes: 17 additions & 3 deletions js/terminal-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,19 @@ const extend = (term) => {
`${term.user}${term.sep}${term.host} ${term.cwd} $`;

// Deep link: parse the URL hash as a command to run on load.
// E.g. /#whois-avidan → runs `whois avidan` (hyphens become spaces).
term.deepLink = window.location.hash.replace("#", "").split("-").join(" ");
// E.g. /#whois-avidan → runs `whois avidan`.
//
// Only the FIRST hyphen separates the command from its argument. Splitting on
// every hyphen would turn a hyphenated slug into two arguments, so a company
// added to config/portfolio.js as `vibe-robotics` would break its own deep
// link. No slug has a hyphen today, but fragments are now the only way to
// address a specific company or person, so this has to hold for any slug.
term.deepLink = (() => {
const raw = window.location.hash.replace(/^#/, "");
const split = raw.indexOf("-");
if (split === -1) return raw;
return `${raw.slice(0, split)} ${raw.slice(split + 1)}`;
})();

// ── Prompt ─────────────────────────────────────────────────────────────────

Expand Down Expand Up @@ -403,7 +414,10 @@ const extend = (term) => {
addToHistory: false,
promptAfter: false,
showLeadingNewline: false,
trackAnalytics: false,
// Deep links are how visitors now reach a specific company or person,
// so these are the arrivals worth counting. Fragments never fire a
// pageview of their own, so without this they would be invisible.
trackAnalytics: true,
}).catch((error) => {
console.error("Deep link failed", error);
});
Expand Down
1 change: 0 additions & 1 deletion scripts/build-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const staticAssets = [
"favicon.png",
"welcome.htm",
"css/bootstrap.css",
"css/pages.css",
"css/styles.css",
"images",
"videos",
Expand Down
Loading
Loading