mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-12 20:19:10 +03:00
Merge branch 'doc_doc' of http://github.com/Pound-Hash/kakoune
This commit is contained in:
commit
7f245e92fb
@ -3,32 +3,31 @@
|
|||||||
This is Kakoune's online documentation system.
|
This is Kakoune's online documentation system.
|
||||||
|
|
||||||
To see what documentation topics are available, type `:doc` and look at the
|
To see what documentation topics are available, type `:doc` and look at the
|
||||||
completion menu. To view the a particular documentation topic, type the topic
|
completion menu. To view a particular topic, type its name or select it
|
||||||
name or choose it from the completion menu and hit Enter.
|
from the completion menu. Then hit Enter.
|
||||||
|
|
||||||
Documentation will be displayed in the client named in the `docsclient` option.
|
Documentation will be displayed in the client named in the `docsclient` option.
|
||||||
|
|
||||||
== Using the documentation browser
|
== Using the documentation browser
|
||||||
|
|
||||||
Documentation buffers are like any other buffer, so you can scroll through them
|
Documentation buffers are like any other buffer, so you can scroll through
|
||||||
as normal, search within a topic with `/`, etc. However, they can also contain
|
them as normal, search within a topic with `/`, etc. However, they can also
|
||||||
links, <<doc#demonstration-target,like this>>. When you see a link, you can
|
contain links: <<doc#demonstration-target,like this>>. Links can be followed
|
||||||
follow it by moving the cursor onto it and pressing Enter. If the link takes you
|
by moving the cursor onto them and pressing Enter. If a link takes you to
|
||||||
to a different documentation topic, you can get back by using the `:buffer`
|
a different documentation topic, you can return to the original by using the
|
||||||
command.
|
`:buffer` command.
|
||||||
|
|
||||||
== Writing documentation
|
== Writing documentation
|
||||||
|
|
||||||
Documentation must be in AsciiDoc format, with the extension `.asciidoc`,
|
Documentation must be in AsciiDoc format, with the extension `.asciidoc`.
|
||||||
and stored somewhere within <<doc#sources,the documentation search path>>.
|
It must be stored somewhere within <<doc#sources,the documentation search
|
||||||
Kakoune's built-in documentation renderer does not necessarily support every
|
path>>. Kakoune's built-in documentation renderer does not necessarily
|
||||||
feature, so don't go overboard with formatting.
|
support every feature, so don't go overboard with formatting.
|
||||||
|
|
||||||
To create a link to another documentation topic, the URL should be the topic-
|
To create a link to another documentation topic, the URL should be the topic's
|
||||||
name, just like `:doc` uses. Because topics are identified
|
name, just like `:doc` uses. Because topics are identified only by their
|
||||||
only by their basename, you should take care that your topic's name does not
|
basename, you should take care that your topic's name does not conflict with
|
||||||
collide with any of the names used by other plugins or Kakoune's standard
|
any of the names used either by other plugins or by Kakoune's standard library.
|
||||||
library.
|
|
||||||
|
|
||||||
== Sources
|
== Sources
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user