mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2025-12-12 07:40:49 -08:00
rm searhcindex.json
This commit is contained in:
3
.github/workflows/build_master.yml
vendored
3
.github/workflows/build_master.yml
vendored
@@ -45,8 +45,7 @@ jobs:
|
||||
git config --global user.name "Build master"
|
||||
git config pull.rebase false
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_af.yml
vendored
3
.github/workflows/translate_af.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_de.yml
vendored
3
.github/workflows/translate_de.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_el.yml
vendored
3
.github/workflows/translate_el.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_es.yml
vendored
3
.github/workflows/translate_es.yml
vendored
@@ -70,8 +70,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_fr.yml
vendored
3
.github/workflows/translate_fr.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_hi.yml
vendored
3
.github/workflows/translate_hi.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_it.yml
vendored
3
.github/workflows/translate_it.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_ja.yml
vendored
3
.github/workflows/translate_ja.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_ko.yml
vendored
3
.github/workflows/translate_ko.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_pl.yml
vendored
3
.github/workflows/translate_pl.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_pt.yml
vendored
3
.github/workflows/translate_pt.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_sr.yml
vendored
3
.github/workflows/translate_sr.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_sw.yml
vendored
3
.github/workflows/translate_sw.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_tr.yml
vendored
3
.github/workflows/translate_tr.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_uk.yml
vendored
3
.github/workflows/translate_uk.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
3
.github/workflows/translate_zh.yml
vendored
3
.github/workflows/translate_zh.yml
vendored
@@ -71,8 +71,7 @@ jobs:
|
||||
(git checkout $BRANCH
|
||||
git pull
|
||||
cp book/searchindex.js searchindex.js
|
||||
cp book/searchindex.json searchindex.json
|
||||
git add searchindex.js searchindex.json
|
||||
git add searchindex.js
|
||||
git commit -m "Update searchindex for $BRANCH"
|
||||
git push) || echo "No changes to searchindex.js"
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user