LinguaLibre

Difference between revisions of "Weekly updates"

 
(Colapse configurations)
Line 1: Line 1:
 
== Week 3 ==
 
== Week 3 ==
 
* Setup the server with a fresh primary MediaWiki installation to use as a development environment, accessible at https://v2.lingualibre.fr.
 
* Setup the server with a fresh primary MediaWiki installation to use as a development environment, accessible at https://v2.lingualibre.fr.
* Install the [[:mw:Extension:OAuthAuthentication|OAuthAuthentication extension]] to delegate the login to an other wiki. Here are the settings currently in use inside the LocalSettings.php file:<source lang="php">
+
* Install the [[:mw:Extension:OAuthAuthentication|OAuthAuthentication extension]] to delegate the login to an other wiki. Here are the settings currently in use inside the LocalSettings.php file:{{Colapse|1=LocalSettings.php configuration|2=<source lang="php">
 
# Remove the default TemporaryPassword and LocalPassword authentication provider
 
# Remove the default TemporaryPassword and LocalPassword authentication provider
 
# to let OAuth as the only authentication provider usable.
 
# to let OAuth as the only authentication provider usable.
Line 16: Line 16:
 
$wgOAuthAuthenticationAllowLocalUsers = false;
 
$wgOAuthAuthenticationAllowLocalUsers = false;
 
$wgOAuthAuthenticationReplaceLoginLink = true;
 
$wgOAuthAuthenticationReplaceLoginLink = true;
</source>
+
</source>}}
 
* Setup a secondary MediaWiki installation to be used by the first one as a remote authentication provider (to replace Wikimedia Commons during the development phase), accessible at https://oauth.0x010c.fr.
 
* Setup a secondary MediaWiki installation to be used by the first one as a remote authentication provider (to replace Wikimedia Commons during the development phase), accessible at https://oauth.0x010c.fr.
* Install the [[:mw:Wikibase|Wikibase extension]]. Here is it's LocalSettings.php configuration:<source lang="php">
+
* Install the [[:mw:Wikibase|Wikibase extension]]. Here is it's LocalSettings.php configuration:{{Colapse|1=LocalSettings.php configuration|2=<source lang="php">
 
# Activate the Wikibase Repository extension
 
# Activate the Wikibase Repository extension
 
$wgEnableWikibaseRepo = true;
 
$wgEnableWikibaseRepo = true;
Line 40: Line 40:
  
 
# see https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/docs/options.wiki
 
# see https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/docs/options.wiki
$wgWBRepoSettings['formatterUrlProperty'] = 'P20';</source>
+
$wgWBRepoSettings['formatterUrlProperty'] = 'P20';</source>}}
 
* Draft the datastructure and create the first property/items needed.
 
* Draft the datastructure and create the first property/items needed.
 
* Install the [[:mw:Skin:Timeless|timeless skin]].
 
* Install the [[:mw:Skin:Timeless|timeless skin]].
 
* First commit to initialize the new RecordWizard extension.
 
* First commit to initialize the new RecordWizard extension.
 
* Split the recording studio out of the LinguaLibre repository, to it's own new repo, [https://github.com/0x010C/LinguaRecorder LinguaRecorder].
 
* Split the recording studio out of the LinguaLibre repository, to it's own new repo, [https://github.com/0x010C/LinguaRecorder LinguaRecorder].

Revision as of 09:54, 20 January 2018

Week 3

  • Setup the server with a fresh primary MediaWiki installation to use as a development environment, accessible at https://v2.lingualibre.fr.
  • Install the OAuthAuthentication extension to delegate the login to an other wiki. Here are the settings currently in use inside the LocalSettings.php file:
LocalSettings.php configuration
# Remove the default TemporaryPassword and LocalPassword authentication provider
# to let OAuth as the only authentication provider usable.
$wgAuthManagerAutoConfig['primaryauth'] = [];

# Activate the OAuthAuthentication extension
wfLoadExtension( 'OAuthAuthentication' );

$wgOAuthAuthenticationUrl = 'https://oauth.0x010c.fr/index.php?title=Special:OAuth';
$wgOAuthAuthenticationConsumerKey = '<consumer_key>';
$wgOAuthAuthenticationConsumerSecret = '<consumer_secret>';
$wgOAuthAuthenticationCanonicalUrl = 'https://oauth.0x010c.fr';
$wgOAuthAuthenticationRemoteName = 'OauthWiki';
$wgOAuthAuthenticationAllowLocalUsers = false;
$wgOAuthAuthenticationReplaceLoginLink = true;
  • Setup a secondary MediaWiki installation to be used by the first one as a remote authentication provider (to replace Wikimedia Commons during the development phase), accessible at https://oauth.0x010c.fr.
  • Install the Wikibase extension. Here is it's LocalSettings.php configuration:
LocalSettings.php configuration
# Activate the Wikibase Repository extension
$wgEnableWikibaseRepo = true;
$wgEnableWikibaseClient = false;
require_once "$IP/extensions/Wikibase/repo/Wikibase.php";
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";

# Create a new namespace to host properties
define( 'WB_NS_PROPERTY', 102 );
define( 'WB_NS_PROPERTY_TALK', 103 );

$wgExtraNamespaces[WB_NS_PROPERTY] = 'Property';
$wgExtraNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk';

# Store the items in the main namespace, the properties in their newly created one
$wgWBRepoSettings['entityNamespaces']['item'] = NS_MAIN;
$wgWBRepoSettings['entityNamespaces']['property'] = WB_NS_PROPERTY;

# We don't need sitelinks
$wgWBRepoSettings['siteLinkGroups'] = array();

# see https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/docs/options.wiki
$wgWBRepoSettings['formatterUrlProperty'] = 'P20';
  • Draft the datastructure and create the first property/items needed.
  • Install the timeless skin.
  • First commit to initialize the new RecordWizard extension.
  • Split the recording studio out of the LinguaLibre repository, to it's own new repo, LinguaRecorder.