Commit a830d7b7 authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

CI: added new CI with documentation deploy

parent b390c2c9
Pipeline #41999 failed with stages
in 6 minutes and 23 seconds
image: ubuntu:devel
stages:
- build
- deploy
variables:
DEPENDENCIES: gcc gettext gtk-doc-tools make autoconf meson ninja-build
libglib2.0 libglib2.0-dev libglib2.0-bin
valac libgee-0.8-dev gettext
gnome-common libtool-bin
gobject-introspection libgirepository1.0-dev valadoc
yelp-tools iso-codes git
GIT_SUBMODULE_STRATEGY: normal
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt update
- apt -y install $DEPENDENCIES
build-gxml:
stage: build
script:
- meson _build
- cd _build
- ninja
- meson test
- ninja install
pages:
stage: deploy
script:
- meson _build
- cd _build
- ninja
- mv docs/GVls-* ../public
- cd ..
- mv public/index.htm public/index.html
artifacts:
paths:
- public
outdir ='GVls-'+API_VERSION
gtkdoc_outdir ='gvls-'+API_VERSION
valacapi = run_command ('valac', '--api-version')
driver = '--driver='+valacapi.stdout().strip()
pkgname = '--package-name='+'GVls-'+API_VERSION
pkgversion = '--package-version='+PROJECT_VERSION
vapidir = '--vapidir='+join_paths (meson.current_source_dir (),'gvls')
conf_vapidir = '--vapidir='+join_paths (meson.build_root (),'src')
docsdir = join_paths (get_option ('datadir'), 'devhelp','books')
custom_target ('valadocs',
output : outdir,
command : [valadoc,
driver,
conf_vapidir,
'--doclet=devhelp',
'--force',
pkgname,
pkgversion,
'--pkg=glib-2.0',
'--pkg=gio-2.0',
'--pkg=gee-0.8',
'--pkg=config',
'--pkg='+vala_dep_str,
vapidir,
'--directory=@OUTDIR@',
gvls_sources],
install : true,
install_dir : docsdir)
...@@ -19,8 +19,8 @@ gvls_deps = [ ...@@ -19,8 +19,8 @@ gvls_deps = [
dependency('gobject-2.0'), dependency('gobject-2.0'),
dependency('gee-0.8'), dependency('gee-0.8'),
] ]
vala_dep_str = 'libvala-@0@'.format (vala_version)
vala_dep = dependency('libvala-@0@'.format (vala_version)) vala_dep = dependency(vala_dep_str)
VAPIDIR = vala_dep.get_pkgconfig_variable ('vapidir') VAPIDIR = vala_dep.get_pkgconfig_variable ('vapidir')
gvls_deps += [ vala_dep ] gvls_deps += [ vala_dep ]
...@@ -31,3 +31,8 @@ gtk_dep = dependency('gtk+-3.0', required: false) ...@@ -31,3 +31,8 @@ gtk_dep = dependency('gtk+-3.0', required: false)
subdir('src') subdir('src')
subdir('tests') subdir('tests')
valadoc = find_program ('valadoc', required: false)
if valadoc.found()
subdir('doc')
endif
...@@ -162,7 +162,7 @@ public class GVls.CodeActionKindObject { ...@@ -162,7 +162,7 @@ public class GVls.CodeActionKindObject {
*/ */
public interface GVls.CodeActionContext : Object { public interface GVls.CodeActionContext : Object {
/** /**
* An array of diagnostics of type {@link Diagnostic] * An array of diagnostics of type {@link Diagnostic}
*/ */
public abstract Container diagnostics { get; } public abstract Container diagnostics { get; }
......
...@@ -639,10 +639,10 @@ public enum GVls.MarkupKind { ...@@ -639,10 +639,10 @@ public enum GVls.MarkupKind {
* kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds. * kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds.
* *
* If the kind is `markdown` then the value can contain fenced code blocks like in GitHub issues. * If the kind is `markdown` then the value can contain fenced code blocks like in GitHub issues.
* See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting * See [[https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting]]
* *
* Here is an example how such a string can be constructed using JavaScript / TypeScript: * Here is an example how such a string can be constructed using JavaScript / TypeScript:
* ```ts * {{{ts
* let markdown: MarkdownContent = { * let markdown: MarkdownContent = {
* kind: MarkupKind.Markdown, * kind: MarkupKind.Markdown,
* value: [ * value: [
...@@ -653,7 +653,7 @@ public enum GVls.MarkupKind { ...@@ -653,7 +653,7 @@ public enum GVls.MarkupKind {
* '```' * '```'
* ].join('\n') * ].join('\n')
* }; * };
* ``` * }}}
* *
* *Please Note* that clients might sanitize the return markdown. A client could decide to * *Please Note* that clients might sanitize the return markdown. A client could decide to
* remove HTML from the markdown to avoid script execution. * remove HTML from the markdown to avoid script execution.
......
...@@ -54,7 +54,7 @@ public interface GVls.Server : GLib.Object, ContainerHashable ...@@ -54,7 +54,7 @@ public interface GVls.Server : GLib.Object, ContainerHashable
*/ */
public abstract GVls.Container keywords { owned get; } public abstract GVls.Container keywords { owned get; }
/** /**
* Adds this server to {@param rserver} and sets {@link root_server} * Adds this server to given server and sets {@link root_server}
*/ */
public abstract void add_to_root_server (Server rserver) throws GLib.Error; public abstract void add_to_root_server (Server rserver) throws GLib.Error;
/** /**
......
...@@ -27,7 +27,7 @@ public interface GVls.DidChangeTextDocumentParams : Object { ...@@ -27,7 +27,7 @@ public interface GVls.DidChangeTextDocumentParams : Object {
/** /**
* The actual content changes. The content changes describe single state changes * The actual content changes. The content changes describe single state changes
* to the document. So if there are two content changes c1 and c2 for a document * to the document. So if there are two content changes c1 and c2 for a document
* in state S then c1 move the document to S' and c2 to S''. * in state S then c1 move the document to S' and c2 to S ' '
* *
* Container elements are of type {@link TextDocumentContentChangeEvent} * Container elements are of type {@link TextDocumentContentChangeEvent}
*/ */
......
...@@ -45,7 +45,7 @@ confh.set_quoted('VAPIDATADIR', vapidir) ...@@ -45,7 +45,7 @@ confh.set_quoted('VAPIDATADIR', vapidir)
configure_file(output : 'config.h', configure_file(output : 'config.h',
configuration : confh) configuration : confh)
gvls_sources = [ gvls_sources = files([
'gvls-cancel-params.vala', 'gvls-cancel-params.vala',
'gvls-client.vala', 'gvls-client.vala',
'gvls-code-actions.vala', 'gvls-code-actions.vala',
...@@ -90,7 +90,7 @@ gvls_sources = [ ...@@ -90,7 +90,7 @@ gvls_sources = [
'gvls-workspace-folders-change.vala', 'gvls-workspace-folders-change.vala',
'gvls-workspace-symbol-request.vala', 'gvls-workspace-symbol-request.vala',
'gvls-workspace-whatched-files-change.vala' 'gvls-workspace-whatched-files-change.vala'
] ])
inc_libh = include_directories ('.') inc_libh = include_directories ('.')
inc_libh_dep = declare_dependency (include_directories : inc_libh) inc_libh_dep = declare_dependency (include_directories : inc_libh)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment