mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
remove searchindex.json as it's not use anymore
This commit is contained in:
parent
6498d18687
commit
1ce03e414e
5
.github/workflows/build_master.yml
vendored
5
.github/workflows/build_master.yml
vendored
@ -47,10 +47,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_af.yml
vendored
5
.github/workflows/translate_af.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_de.yml
vendored
5
.github/workflows/translate_de.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_el.yml
vendored
5
.github/workflows/translate_el.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_es.yml
vendored
5
.github/workflows/translate_es.yml
vendored
@ -74,10 +74,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_fr.yml
vendored
5
.github/workflows/translate_fr.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_hi.yml
vendored
5
.github/workflows/translate_hi.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_it.yml
vendored
5
.github/workflows/translate_it.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_ja.yml
vendored
5
.github/workflows/translate_ja.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_ko.yml
vendored
5
.github/workflows/translate_ko.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_pl.yml
vendored
5
.github/workflows/translate_pl.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_pt.yml
vendored
5
.github/workflows/translate_pt.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_sr.yml
vendored
5
.github/workflows/translate_sr.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_sw.yml
vendored
5
.github/workflows/translate_sw.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_tr.yml
vendored
5
.github/workflows/translate_tr.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_uk.yml
vendored
5
.github/workflows/translate_uk.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
5
.github/workflows/translate_zh.yml
vendored
5
.github/workflows/translate_zh.yml
vendored
@ -75,10 +75,7 @@ jobs:
|
||||
if [ -f "book/searchindex.js" ]; then
|
||||
cp book/searchindex.js searchindex.js
|
||||
fi
|
||||
if [ -f "book/searchindex.json" ]; then
|
||||
cp book/searchindex.json searchindex.json
|
||||
fi
|
||||
(git add searchindex.js searchindex.json;
|
||||
(git add searchindex.js;
|
||||
git commit -m "Update searchindex";
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
@ -475,9 +475,7 @@ window.search = window.search || {};
|
||||
/* ───────── paths ───────── */
|
||||
const branch = lang === 'en' ? 'master' : lang;
|
||||
const baseRemote = `https://raw.githubusercontent.com/HackTricks-wiki/hacktricks/${branch}`;
|
||||
const remoteJson = `${baseRemote}/searchindex.json`;
|
||||
const remoteJs = `${baseRemote}/searchindex.js`;
|
||||
const localJson = './searchindex.json';
|
||||
const localJs = './searchindex.js';
|
||||
const TIMEOUT_MS = 5_000;
|
||||
|
||||
@ -497,16 +495,7 @@ window.search = window.search || {};
|
||||
document.head.appendChild(s);
|
||||
});
|
||||
|
||||
/* ───────── 1. remote JSON ───────── */
|
||||
try {
|
||||
const r = await fetchWithTimeout(remoteJson);
|
||||
if (!r.ok) throw new Error(r.status);
|
||||
return init(await r.json());
|
||||
} catch (e) {
|
||||
console.warn('Remote JSON failed →', e);
|
||||
}
|
||||
|
||||
/* ───────── 2. remote JS ───────── */
|
||||
/* ───────── 1. remote JS ───────── */
|
||||
try {
|
||||
await loadScript(remoteJs);
|
||||
return init(window.search);
|
||||
@ -514,16 +503,7 @@ window.search = window.search || {};
|
||||
console.warn('Remote JS failed →', e);
|
||||
}
|
||||
|
||||
/* ───────── 3. local JSON ───────── */
|
||||
try {
|
||||
const r = await fetch(localJson);
|
||||
if (!r.ok) throw new Error(r.status);
|
||||
return init(await r.json());
|
||||
} catch (e) {
|
||||
console.warn('Local JSON failed →', e);
|
||||
}
|
||||
|
||||
/* ───────── 4. local JS ───────── */
|
||||
/* ───────── 2. local JS ───────── */
|
||||
try {
|
||||
await loadScript(localJs);
|
||||
return init(window.search);
|
||||
|
Loading…
x
Reference in New Issue
Block a user