Jump to content

Cli/ref/mw docker citoid

From mediawiki.org
< Cli | ref

mw docker citoid

[edit]

citoid service

Synopsis

[edit]

Citoid service

[edit]

Using this will automatically configure a citoid service for MediaWiki.

When running, this will define:

$wgCitoidServiceUrl = 'http://citoid.mwdd.localhost:8080/api';

A common usecase for this service requires installation of some additional extensions.

mwdev dev mediawiki get-code --extension Citoid --extension Cite --extension VisualEditor --extension TemplateData

You would need to load these in your local settings:

wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'Cite' );
wfLoadExtension( 'Citoid' );
wfLoadExtension( 'TemplateData' );

And also import some default pages:

mw docker mediawiki mwscript importDump https://gitlab.wikimedia.org/repos/ci-tools/patchdemo/-/raw/bc3e798b6bbbc3354d8b957456b87a50c8150853/pages/extensions-Citoid.xml
mw docker mediawiki mwscript importDump https://gitlab.com/wmde/technical-wishes/docker-dev/-/raw/c40990e67e293fa2026a2c67c9963fe3a1b2608a/modules/Citoid/xml-dumps/Citoid-templates.xml

Options inherited from parent commands

[edit]
  -c, --context string   The context to use (default "default")
      --help             Help for this command
      --no-interaction   Do not ask any interactive questions
  -v, --verbose count    Increase output verbosity. Example: --verbose=2 or -vv

SEE ALSO

[edit]