-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add manpage This generates a manpage via scdoc, which has a markdown-like syntax, has no additional dependencies and is available in many distros already. fixes #63
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
vala-language-server(1) | ||
|
||
# NAME | ||
|
||
vala-language-server - Code Intelligence for Vala and Genie. | ||
|
||
# SYNOPSIS | ||
|
||
*vala-language-server* | ||
|
||
# DESCRIPTION | ||
|
||
vala-language-server is a language server protocol implementation for Vala | ||
and Genie. It enables features like auto-complete, go-to-definition, | ||
hover, symbol documentation, and more for editors/plugins supporting Vala | ||
and the Language Server Protocol. | ||
|
||
# ENVIRONMENT | ||
|
||
Users may set the *G_MESSAGES_DEBUG=all* environment variable when launching | ||
vala-language-server to enable debugging output. | ||
|
||
# BUGS | ||
|
||
Please file bugs at https://github.com/benwaffle/vala-language-server | ||
|
||
# AUTHOR | ||
|
||
Ben Iofel <[email protected]>++ | ||
Princeton Ferro <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: get_option('man_pages')) | ||
if scdoc.found() | ||
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) | ||
sh = find_program('sh', native: true) | ||
mandir = get_option('mandir') | ||
man_files = [ | ||
'man/vala-language-server.1.scd', | ||
] | ||
foreach filename : man_files | ||
topic = filename.split('.')[-3].split('/')[-1] | ||
if topic.contains('_') | ||
topic = topic.split('_')[0] + '.' + topic.split('_')[1] | ||
endif | ||
section = filename.split('.')[-2] | ||
output = '@0@.@1@'.format(topic, section) | ||
|
||
custom_target( | ||
output, | ||
input: filename, | ||
output: output, | ||
command: [ | ||
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.path(), meson.current_build_dir() / output) | ||
], | ||
install: true, | ||
install_dir: '@0@/man@1@'.format(mandir, section) | ||
) | ||
endforeach | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters