Commit 48d002a3 authored by Wataru Noguchi's avatar Wataru Noguchi ✍🏻

Initial commit.

parents
Pipeline #2 canceled with stages
This diff is collapsed.
gitlabsnippet Plugin for DokuWiki
GitLab Snippet Embed Plugin
All documentation for this plugin can be found at
https://gitlab.pg1x.com/dokuwiki/gitlabsnippet
If you install this plugin manually, make sure it is installed in
lib/plugins/gitlabsnippet/ - if the folder is called different it
will not work!
Please refer to http://www.dokuwiki.org/plugins for additional info
on how to install plugins in DokuWiki.
----
Copyright (C) Wataru Noguchi <wnoguchi@pg1x.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
See the LICENSING file for details
<?php
/**
* Default settings for the gitlabsnippet plugin
*
* @author Wataru Noguchi <wnoguchi@pg1x.com>
*/
//$conf['fixme'] = 'FIXME';
<?php
/**
* Options for the gitlabsnippet plugin
*
* @author Wataru Noguchi <wnoguchi@pg1x.com>
*/
//$meta['fixme'] = array('string');
base gitlabsnippet
author Wataru Noguchi
email wnoguchi@pg1x.com
date 2020-01-04
name gitlabsnippet plugin
desc GitLab Snippet Embed Plugin
url https://gitlab.pg1x.com/dokuwiki/gitlabsnippet
<?php
/**
* DokuWiki Plugin gitlabsnippet (Renderer Component)
*
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
* @author Wataru Noguchi <wnoguchi@pg1x.com>
*/
// must be run within Dokuwiki
if (!defined('DOKU_INC')) {
die();
}
class renderer_plugin_gitlabsnippet_gitlabsnippet extends Doku_Renderer_xhtml
{
/**
* Make available as XHTML replacement renderer
* @param string $format requested format
*/
public function canRender($format)
{
if ($format == 'xhtml') {
return true;
}
return false;
}
// FIXME override any methods of Doku_Renderer_xhtml here
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment