Skip to content

Commit 8ef9ec7

Browse files
Merge remote-tracking branch 'origin/codex/fix-aidocs-button-functionality'
2 parents ddec2c3 + de383b0 commit 8ef9ec7

2 files changed

Lines changed: 41 additions & 11 deletions

File tree

offline-manifest.json

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,37 @@
11
{
2-
"version": "20250924-ca56c4120de6-717affbc58af",
3-
"generatedAt": "2025-09-24T03:37:40.493Z",
4-
"totalAssets": 58,
5-
"totalBytes": 6266481,
2+
"version": "20250924-53bfea517b5a-d2a5aa91e1b3-dirty",
3+
"generatedAt": "2025-09-24T03:35:57.931Z",
4+
"totalAssets": 65,
5+
"totalBytes": 6299678,
66
"assets": [
7+
{
8+
"path": "ai_docs/docs/apps.md",
9+
"bytes": 7338
10+
},
11+
{
12+
"path": "ai_docs/docs/architecture.md",
13+
"bytes": 4464
14+
},
15+
{
16+
"path": "ai_docs/docs/data-maintenance.md",
17+
"bytes": 5139
18+
},
19+
{
20+
"path": "ai_docs/docs/development-guide.md",
21+
"bytes": 3577
22+
},
23+
{
24+
"path": "ai_docs/docs/overview.md",
25+
"bytes": 3231
26+
},
27+
{
28+
"path": "ai_docs/docs/testing-and-automation.md",
29+
"bytes": 3683
30+
},
31+
{
32+
"path": "ai_docs/index.html",
33+
"bytes": 13942
34+
},
735
{
836
"path": "apps/asset-observatory/app.js",
937
"bytes": 21252
@@ -230,16 +258,16 @@
230258
},
231259
{
232260
"path": "index.html",
233-
"bytes": 38624
261+
"bytes": 30447
234262
},
235263
{
236264
"path": "service-worker.js",
237265
"bytes": 12956
238266
}
239267
],
240268
"commit": {
241-
"hash": "717affbc58afb6c05b9c6c5e3f9c82c10511f1c8",
242-
"short": "717affbc58af",
243-
"dirty": false
269+
"hash": "d2a5aa91e1b3ac507a160e43457e4a1af6043419",
270+
"short": "d2a5aa91e1b3",
271+
"dirty": true
244272
}
245273
}

tools/generate-offline-manifest.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const { promisify } = require('util');
66

77
const ROOT = process.cwd();
88
const OUTPUT_PATH = path.join(ROOT, 'offline-manifest.json');
9-
const INCLUDE_DIRECTORIES = ['apps', 'data'];
10-
const INCLUDE_FILES = ['index.html', 'service-worker.js'];
9+
const INCLUDE_DIRECTORIES = ['apps', 'data', path.join('ai_docs', 'docs')];
10+
const INCLUDE_FILES = ['index.html', 'service-worker.js', path.join('ai_docs', 'index.html')];
1111
const ALLOWED_EXTENSIONS = new Set(['.html', '.js', '.json']);
1212
const execFileAsync = promisify(execFile);
1313

@@ -76,7 +76,9 @@ async function walk(directory, assets, digest) {
7676
await walk(entryPath, assets, digest);
7777
} else if (entry.isFile()) {
7878
const extension = path.extname(entry.name).toLowerCase();
79-
if (!ALLOWED_EXTENSIONS.has(extension)) {
79+
const normalizedEntryPath = toPosixPath(entryPath);
80+
const isDocMarkdown = normalizedEntryPath.startsWith('ai_docs/docs/') && extension === '.md';
81+
if (!ALLOWED_EXTENSIONS.has(extension) && !isDocMarkdown) {
8082
continue;
8183
}
8284

0 commit comments

Comments
 (0)