Skip to content

Commit

Permalink
Connect swmath with database
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt authored Jul 19, 2023
1 parent f686d00 commit e3704df
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mediawiki/LocalSettings.d/LocalSettings.override.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,18 @@
$wgMathWikibasePropertyIdHasPart = "P4";

# enable linking between wikibase and content pages
$wgWBRepoSettings['siteLinkGroups'] = [ 'wikipedia' ]; //not sure if we need this, and if it must be wikipedia
$wgWBRepoSettings['siteLinkGroups'] = [ 'mathematics' ];
$wgWBClientSettings['siteLinkGroups'] = [ 'mathematics' ];
$wgWBClientSettings['siteGlobalID'] = 'mardi';
// my_wiki is the MaRDI database
$wgLocalDatabases = [ 'wiki_swmath', 'my_wiki' ];
$wgWBRepoSettings['localClientDatabases'] = [
'mardi' => 'my_wiki',
'swmath' => 'wiki_swmath'
];
// insert site with
// php addSite.php --filepath=https://portal.mardi4nfdi.de/w/\$1 --pagepath=https://portal.mardi4nfdi.de/wiki/\$1 --language en --interwiki-id mardi mardi wikipedia
// php addSite.php --filepath=https://portal.mardi4nfdi.de/w/\$1 --pagepath=https://portal.mardi4nfdi.de/wiki/\$1 --language en --interwiki-id mardi mardi mathematics
// php addSite.php --filepath=https://staging.swmath.org/w/\$1 --pagepath=https://staging.swmath.org/wiki/\$1 --language en --interwiki-id swmath swmath mathematics

# increase memory limit
ini_set('memory_limit', '2G');
Expand Down

0 comments on commit e3704df

Please sign in to comment.