Remove the Help link from Hop's shared top navigation

Hop-State: A_06FN6VDSDZSNJDKBSYY58K8
Hop-Proposal: R_06FN6VBZHCNQ6MQ1458WWR0
Hop-Task: T_06FN6TWMXN2S1VWJ42544S8
Hop-Attempt: AT_06FN6TWMXQEY87HJNX13SAR
This commit is contained in:
Hop
2026-07-11 16:05:27 -07:00
parent 0cb027737e
commit dfadc67175
3 changed files with 24 additions and 1 deletions
@@ -0,0 +1,16 @@
{
"id": "P_06FN6TWMXN0M2QSSNZ6KRE8",
"task_id": "T_06FN6TWMXN2S1VWJ42544S8",
"attempt_id": "AT_06FN6TWMXQEY87HJNX13SAR",
"state_id": "P_06FN6TWMXN0M2QSSNZ6KRE8",
"prompt": "can we remove the \"help\" link from the top nav bar",
"agent_name": "codex",
"status": "active",
"created_at": "2026-07-11T23:03:07.245716Z",
"metadata": {
"source_tree": "ea0d3db5b0f9a853b863698e7b33c6e11a9d9e09",
"git_commit": "0cb027737ee091b928a48a2c45d6098178539803",
"attempt_head": "C_06FN6V403H9WBEY0E17NQJ8",
"attempt_head_kind": "checkpoint"
}
}
@@ -379,10 +379,17 @@
} }
} }
function removeHelpNavigation() {
for (const link of document.querySelectorAll('#navbar a[href*="docs.gitea.com"]')) {
if (link.textContent.trim() === 'Help') link.remove();
}
}
function applyHopSemantics() { function applyHopSemantics() {
const brandLogo = document.querySelector('#navbar-logo img'); const brandLogo = document.querySelector('#navbar-logo img');
if (brandLogo) brandLogo.src = brandLogo.src.replace(/\/img\/(?:logo|hop)\.svg(?:\?.*)?$/, '/img/hop.svg?v=4'); if (brandLogo) brandLogo.src = brandLogo.src.replace(/\/img\/(?:logo|hop)\.svg(?:\?.*)?$/, '/img/hop.svg?v=4');
replaceBrandImages(); replaceBrandImages();
removeHelpNavigation();
for (const root of document.querySelectorAll(semanticRoots)) replaceExactText(root); for (const root of document.querySelectorAll(semanticRoots)) replaceExactText(root);
replaceAccessibleLabels(document); replaceAccessibleLabels(document);
addPromptsNavigation(); addPromptsNavigation();
+1 -1
View File
@@ -1,3 +1,3 @@
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/hop-home.css?v=4"> <link rel="stylesheet" href="{{AssetUrlPrefix}}/css/hop-home.css?v=4">
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/hop-prompts.css?v=1"> <link rel="stylesheet" href="{{AssetUrlPrefix}}/css/hop-prompts.css?v=1">
<script src="{{AssetUrlPrefix}}/js/hop-native.js?v=10"></script> <script src="{{AssetUrlPrefix}}/js/hop-native.js?v=11"></script>