-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[usage]How to add something to an exist section? #96
Comments
My suggestion would be to just keep those docs in the one file as a workaround for now. I've done similar in my plugins. Or you could try individual sections for "layers-php", "layers-python", etc. and see if that suits your needs better. It's not a bad feature request, but it would definitely take a major effort to modify vimdoc to support it, and also suggests further questions about how to support control for the ordering if users ask for that. |
@dbarnett thanks for quick reply.
thanks! |
@dbarnett |
Yeah, I didn't expect it to work especially well. The I have too many competing priorities right now and don't be able to work on vimdoc features any time soon. I'll see if I can get any of my colleagues interested in helping though. Anyway, if it was me, I'd go with the workaround of putting the docs for all layers in one file for now to have better control over the generated output. |
can I use |
Yeah, but I thought that only worked within the block for the section itself. Try it and see if it helps. |
I have tried, but it can not update contents menu;
|
how about a parent argument when declaring the section, for instance
which would both declare the section a subsection of Layers and remove it from consideration for the top-level |
Yeah, nice feature,and with this feature , wo have no need to add all section into order,but only the top one. |
okay, i have the feature working. let's decide on the syntax before i send a pull request. some options:
it should ideally be of the form |
I think " @section lang-c, layer-lang-c
" @parentsection layers I somehow have trouble reading right-major representations like |
@dbarnett @martindemello thanks for these work, but how could we manager the order of subsection, or maybe it is just sort by name or id? " @order intro layers
" @section Intro, intro
" this is foo plugin
"
"
" @section Layers, layers
" @order layer-lang-c layer-lang-java
" Layer contains some plugins and conifg.
"
"
" @section lang-c layer-lang-c
" @parentsection layers
" |
@wsdjeg they are sorted by name; since @dbarnett i'll take a look at adding a separate |
okay, that was simpler than i expected; i've added a |
If subsection is sorted by name. No need to add child order . |
Changes since 0.6.0: * Add a @parentsection directive for sections (#96) * Allow dots in setting names, like g:mysettings.var (#94) * Fix UnicodeDecodeError on Windows for non-ASCII characters (#104) * Fix autoload namespace detection issues on Windows (#106) * Force POSIX '\n' line endings in output on all platforms (#108)
@dbarnett Hi, I am author of SpaceVim, I want to use vimdoc generate doc for SpaceVim-layers. in this PR, wsdjeg/SpaceVim#127 , I define a Layers section in
autoload/SpaceVim/layers.vim
, and all the layers is inautoload/SpaceVim/layers/
, for exampleautoload/SpaceVim/layers/lang/php.vim
islang#php
layer. and the doc for this layer is in this vim script, But I want to append the doc of this layer to the end of section Layers, and make the doc looks like:LAYERS *SpaceVim-layers* SpaceVim support many kinds of layers, in each layer contains some plugins and config. here is the list of layers supported by SpaceVim. lang#php : this layer is for php development, and it provide auto codo completion, and syntax check, and jump to the definition location. requirement: PHP 5.3+ PCNTL Extension Msgpack 0.5.7+(for NeoVim) Extension or JSON(for Vim 7.4+) Extension Composer Project
The text was updated successfully, but these errors were encountered: