GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wikimedia/mediawiki-extensions-DocBookExport: Github mirror of MediaWiki extension DocBookExport - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

BranchesTags
Open more actions menu

Latest commit

 

History

264 Commits
264 Commits

Folders and files

NameName
Last commit message
Last commit date
i18n
i18n
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.gitreview
.gitreview
 
 
.phpcs.xml
.phpcs.xml
 
 
.stylelintrc.json
.stylelintrc.json
 
 
DocBookExport.i18n.alias.php
DocBookExport.i18n.alias.php
 
 
DocBookExport.i18n.magic.php
DocBookExport.i18n.magic.php
 
 
DocBookExport.php
DocBookExport.php
 
 
Gruntfile.js
Gruntfile.js
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SpecialGetDocbook.php
SpecialGetDocbook.php
 
 
composer.json
composer.json
 
 
docbookexport_styles.css
docbookexport_styles.css
 
 
docbookexport_template.xsl
docbookexport_template.xsl
 
 
docbookexport_template_footer_customization.xsl
docbookexport_template_footer_customization.xsl
 
 
docbookexport_template_header_customization.xsl
docbookexport_template_header_customization.xsl
 
 
docbookexport_template_import.xsl
docbookexport_template_import.xsl
 
 
docbookexport_template_override.xsl
docbookexport_template_override.xsl
 
 
extension.json
extension.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pagenumberprefixes.xsl
pagenumberprefixes.xsl
 
 
watermark.svg
watermark.svg
 
 

Repository files navigation

DocBookExport

A MediaWiki extension to DocBook from wiki pages

#Installation

For installation of this extension you need to have ssh access to your server.

  • To install the extension, place the entire 'DocBookExport' directory within your MediaWiki 'extensions' directory
  • Just enter the following command in the 'extensions' directory: 'git clone https://bitbucket.org/wikiworksdev/docbookexport.git DocBookExport'
  • Add the following line to your LocalSettings.php file: 'wfLoadExtension( 'DocBookExport' );'
  • Verify you have this extension installed by visiting the /Special:Version page on your wiki.

#Install Dependencies

  • Install pandoc.
    • See https://github.com/jgm/pandoc/releases for the latest version
    • For Ubuntu use the following commands, replace the version number as per the latest release.
    • sudo wget https://github.com/jgm/pandoc/releases/download/2.0.5/pandoc-2.0.5-1-amd64.deb
    • sudo dpkg -i pandoc-2.0.5-1-amd64.deb
  • Configure $wgDocBookExportPandocPath to your Pandoc path in case the "pandoc" command doesn't work
  • Install extension Figures - It supports defining figures in MediaWiki
  • To download DocBook files in Zip format install the ZipArchive php extension.
    • See https://stackoverflow.com/q/3872555/1150075
  • To download DocBook in PDF format install the xsltproc and fop
    • See https://askubuntu.com/a/462343 and https://www.howtoinstall.co/en/ubuntu/trusty/fop

#Usage To create a book define the page structure using the docbook parser function or tag extension. See examples below.

Parser Function Example:

{{#docbook:
page structure=

  • Buying clothes intro,Buying shoes (title=Buying the right clothes, header=Custom Header)
    ** How I buy shoes
    |title=My Guide to Bowling
    |cover page=Cover Contents
    |header=My Guide to Bowling
    |footer=My Guide to Bowling
    |index term categories=index terms
    |index terms=shoe,clothes
    }}

#Credits This extension has been written by Nischay Nahata for wikiworks.com and is sponsored by NATO

About

Github mirror of MediaWiki extension DocBookExport - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

3 stars

Watchers

10 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.