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
3 changes: 2 additions & 1 deletion desk/review/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@
var tok = protectedMd.tokens[i];
html = html.split(tok.key).join(tok.html);
}
return html;
// /static/... 404s on Tailscale Serve (/steer only). Rewrite to BASE_PATH.
return html.replace(/(src|href)=("|')\/static\//g, "$1=$2/steer/static/");
}

function buildVisibleIndex(src) {
Expand Down
12 changes: 6 additions & 6 deletions desk/review/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Steer</title>
<link rel="icon" href="/steer/static/steer-mark.svg" type="image/svg+xml">
<link rel="stylesheet" href="/steer/static/style.css?v=15">
<link rel="stylesheet" href="/steer/static/learn.css?v=15">
<link rel="stylesheet" href="/steer/static/style.css?v=17">
<link rel="stylesheet" href="/steer/static/learn.css?v=17">
</head>
<body>
<div class="learn-banner" id="learn-banner">Learn mode — sandbox. Nothing writes to the catalog. <a href="/steer/">Back to the desk</a></div>
<header class="toolbar">
<div class="brand">
<a class="brand-link" href="/steer/" aria-label="Steer">
<img class="brand-mark" src="/steer/static/steer-mark-toolbar.svg?v=16" alt="" width="120" height="30">
<img class="brand-mark" src="/steer/static/steer-mark-toolbar.svg?v=17" alt="" width="120" height="30">
</a>
<div class="toolbar-title" id="doc-title">Draft</div>
<button type="button" class="catalog-toggle" id="catalog-toggle" aria-expanded="false" aria-controls="catalog-panel">Catalog</button>
Expand Down Expand Up @@ -95,8 +95,8 @@ <h2 id="tour-title">Sandbox</h2>
</div>
</aside>

<script src="/steer/static/vendor/marked.min.js?v=15"></script>
<script src="/steer/static/app.js?v=15"></script>
<script src="/steer/static/learn.js?v=15"></script>
<script src="/steer/static/vendor/marked.min.js?v=17"></script>
<script src="/steer/static/app.js?v=17"></script>
<script src="/steer/static/learn.js?v=17"></script>
</body>
</html>