Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/splitbrain/dokuwiki-grapher

Create graphs from DokuWiki link structures
https://github.com/splitbrain/dokuwiki-grapher

dokuwiki graph php

Last synced: about 10 hours ago
JSON representation

Create graphs from DokuWiki link structures

Awesome Lists containing this project

README

        

# DokuWiki Grapher

This is a simple script to generate a directed graph description from DokuWiki link structures. Read the [introductional blog post](https://www.splitbrain.org/blog/2010-08/02-graphing_dokuwiki_help_needed) for some more info.

## Installing

Download the [grapher.php](https://raw.githubusercontent.com/splitbrain/dokuwiki-grapher/master/grapher.php) file into your DokuWiki ``bin`` directory. Then run it from command line.

## Usage

See ``bin/grapher.php --help``:

```
USAGE: grapher.php []

Creates a graph representation of pages and media files and how they
are interlinked.

OPTIONS

-d , --depth Recursion depth, eg. how deep to look into the
given namespaces. Use 0 for all. Default: 1

-m , How to handle media files. 'ns' includes only media
--media that is located in the given namespaces, 'all'
includes all media files and 'none' ignores the
media files completely. Default: ns

-f , The wanted output format. 'dot' is a very simple
--format format which can be used to visualize the resulting
graph with graphviz. The 'gexf' format is a more
complex XML-based format which contains more info
about the found nodes and can be loaded in Gephi.
Default: dot

-o , --output Where to store the output eg. a filename. If not
given the output is written to STDOUT.

--no-colors Do not use any colors in output. Useful when piping
output to other tools or files.

-h, --help Display this help screen and exit immeadiately.

Give all wiki namespaces you want to have graphed.
If no namespace is given, the root namespace is
assumed.
```

## Visualize

Run the created file through [GraphViz](http://www.graphviz.org/) or [Gephi](https://gephi.org/).