Code Monkey home page Code Monkey logo

gatsby-starter-ghostedmediawiki's Introduction

Gatsby Starter Ghosted Mediawiki

A starter template to interface mediawiki article in a nice gatsby template.

screenshot

A lot of gatsby-starter-ghost is conveniently reused for its pretty design and well founded architecture, it is not a vanilla Gatsby module for mediawiki.

Configuration

The default mediawiki backend that is used is wikipedia for demo purposes. You may need to edit .mediawiki.json settings to use your own backend. For example, I use this project to pull a selection of articles I have tagged under the rootCategory [[Category:Featured]] in my private mediawiki instance.

{
    "protocol" : "https",
    "server" : "en.wikipedia.org",
    "path": "/w",
    "debug": true, 
    "userAgent": "Gatsby",
    "title" : "MediaWiki meets Gatsby",
    "description" : "Mediawiki with Gatsby frontend",
    "lang":"FR",
    "timezone":"GMT+2",
    "codeinjection_head":"",
    "codeinjection_foot":"",
    "codeinjection_styles":"",
    "rootCategory": "Linebred_animals",
    "navigation" : [
      {
        "label":"Home",
        "url":"/"
      }
    ]
}

Run the demo

Quickstart

docker run --rm --init --net=host netpascal0123/gatsby-starter-ghostedmediawiki:latest

You can now view gatsby-starter-ghostedmediawiki in the browser. โ € http://localhost:9000/

Custom backend

Create a file named .mediawiki.json and configure the access to a custom backend.

docker run --init -v `pwd`/.mediawiki.json:/var/www/.mediawiki.json --rm --net=host netpascal0123/gatsby-starter-ghostedmediawiki:latest

Development mode

I am currently improving gatsby-source-ghostedmediawiki and gatsby-starter-ghostedmediawiki

git clone https://github.com/PascalNoisette/gatsby-source-ghostedmediawiki 
cd gatsby-source-ghostedmediawiki 
mkdir node_modules
git clone https://github.com/PascalNoisette/gatsby-source-ghostedmediawiki node_modules/gatsby-source-ghostedmediawiki 
docker build -t ghostedmediawiki -f Dockerfile-dev . && docker run --rm --net=host --init -it ghostedmediawiki

gatsby-starter-ghostedmediawiki's People

Contributors

pascalnoisette avatar

Watchers

 avatar  avatar  avatar

gatsby-starter-ghostedmediawiki's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.