-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Improve documentation workflow. #736
Comments
I was thinking to migrate both readme and docs to an org format, and use https://github.com/kdheepak/panvimdoc to convert it to vim docs. I got this idea from https://github.com/chipsenkbeil/org-roam.nvim. Docs are written in org https://github.com/chipsenkbeil/org-roam.nvim/blob/main/DOCS.org, and generated with this github action https://github.com/chipsenkbeil/org-roam.nvim/blob/main/.github/workflows/docs.yml Downside is that everything needs to be adapted to an org format. For start, your solution will also work, and it should be much faster to implement, so you can proceed if you want. |
I actually meant panvimdoc for the conversion. The names are confusing ... My approach would be the following:
After that we can actually play around with converting the existing markdown files to org using pandoc - but because this might need some manual adjustments I would defer this for a separate PR. |
That works. |
I want to add that vim doesn't recognize orgmode.txt as 'help' filetype. I have to add an autocmd for it to do that. |
What you typical do is: You run But to be honest, the result of md2vim looks not good. You don't have syntax highlighting and the table of contents can be only used for navigation with poor-mans tags: searching the next word occurence under cursor with |
@kristijanhusak I was about to experimenting with the migration of the DOCS.md to Org when I saw, that you already pushed a branch with a migrated one. Do you want to discuss the results? What I discovered, that in org format the very nested documentation of Extract source code (tangle), where you use org source examples containing source examples within org, which confuses treesitter a lot. I am actually not sure, how panvimdoc handles orgfiles. If it converts them back into markdown before converting it to vimdoc, it might be better, if we cleanup the markdown directly, because there we have more control about what we get from panvimdoc. But I was too lazy to look at the code so far. |
@seflue I converted DOCS.md to DOCS.org with pandoc and started manually fixing it, but it's too big of a work so I stopped. Also it didn't convert it really well, so I'll probably have to start from scratch manually.
I'm not sure, I need to look into it better. I had an idea to organize it into multiple files but I'm not sure how will linking work on github and locally. |
Yes, the file actually grow a lot. Just my two cents: I think, it would make sense to ditch the ToC. In Github you can actually show the ToC as a sidebar and panvimdoc will generate one from the headings-structure (including nice jump tags). If I find time to do more research, I will post my findings here in the issue. If you have more insights, I would appreciate, if you could give an update as well. I really would like to have proper "in-vim" documentation, because it is now my source number one to look if a feature already exists, how it works etc. And I am motivated to help making that happen. |
Yes, we can ditch the ToC. We can generate one in vim docs with panvimdoc if necessary. |
Describe the bug
I have two issues with the documentation as it is currently.
@kristijanhusak Before I put work into this, I want to ask, if there is motivation to actually go in this direction.
Steps to reproduce
left empty on purpose
Expected behavior
Emacs functionality
No response
Minimal init.lua
left empty on purpose
Screenshots and recordings
No response
OS / Distro
left empty on purpose
Neovim version/commit
all currently supported versions
Additional context
No response
The text was updated successfully, but these errors were encountered: