Replace learn with learnwiki (#30259)

* feat: replace learn with learnwiki

* revert: for sharelatex

* Change `MW_SERVER` env variable to `learnwiki`

---------

Co-authored-by: Daniel Kontsek <daniel.kontsek@overleaf.com>
GitOrigin-RevId: 97cdf034ed864d1620b5fd8673f0a7fe64056e01
This commit is contained in:
Olzhas Askar
2025-12-11 12:28:13 +01:00
committed by Copybot
parent 44cb381a4d
commit 38b4ff72cd

View File

@@ -67,7 +67,7 @@ async function scrapeAndCachePage(baseUrl, page) {
}
async function getAllPagesFrom(baseUrl, continueFrom) {
// https://learn.overleaf.com/learn/Special:ApiSandbox#action=query&format=json&generator=allpages&gapfilterredir=nonredirects
// https://learnwiki.overleaf.com/learn/Special:ApiSandbox#action=query&format=json&generator=allpages&gapfilterredir=nonredirects
const uri = new URL(baseUrl + '/learn-scripts/api.php')
uri.search = new URLSearchParams({
action: 'query',