Generate documentation only once.

Fixes https://github.com/lifepillar/vim-solarized8/issues/23.
This commit is contained in:
Lifepillar
2017-11-05 11:08:09 +01:00
parent 150c7e0e56
commit 25933f5723
19 changed files with 94 additions and 399 deletions

View File

@@ -9,6 +9,11 @@ let s:errors = 0
for s:template in glob(s:curdir . '/*.colortemplate', 1, 1)
let s:template_name = fnamemodify(s:template, ':t:r')
if s:template_name == 'solarized8_dark'
let g:colortemplate_no_doc = 0
else
let g:colortemplate_no_doc = 1
endif
execute "edit" s:template
execute "Colortemplate!" fnameescape(s:parent)
if g:colortemplate_exit_status != 0

View File

@@ -34,7 +34,7 @@ License: OSI approved MIT license
# Documentation {{{
documentation
==============================================================================
@fullname colorscheme *@shortname*
@fullname colorscheme *@optionprefix*
*g:@optionprefix_diffmode*
Tweak the way diffs are displayed. Allowed values are `"normal"` (default),