Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gitlabsnippet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dokuwiki
gitlabsnippet
Commits
6e5a06bc
Commit
6e5a06bc
authored
Jan 05, 2020
by
Wataru Noguchi
✍🏻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup CSS for embed.
parent
7a4cde1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
style.css
style.css
+12
-0
syntax/gitlabsnippetsyntax.php
syntax/gitlabsnippetsyntax.php
+2
-0
No files found.
style.css
0 → 100644
View file @
6e5a06bc
/* Remove inherited style to embed GitLab Snippet */
div
.plugin_gitlabsnippet_gitlabsnippetsyntax
pre
{
border
:
unset
;
box-shadow
:
unset
;
}
div
.plugin_gitlabsnippet_gitlabsnippetsyntax
code
{
background-color
:
unset
;
box-shadow
:
unset
;
}
syntax/gitlabsnippetsyntax.php
View file @
6e5a06bc
...
...
@@ -99,7 +99,9 @@ class syntax_plugin_gitlabsnippet_gitlabsnippetsyntax extends DokuWiki_Syntax_Pl
$snippetData
=
$data
[
0
];
$renderer
->
doc
.
=
'<div class="plugin_gitlabsnippet_gitlabsnippetsyntax">'
;
$renderer
->
doc
.
=
'<script src="'
.
$snippetData
.
'"></script>'
;
$renderer
->
doc
.
=
'</div>'
;
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment