Docs: generate the latest stable docs

The documentation can't be built in crates.io due to missing libhandy
hence, specify the documentation url and add libhandy as a subproject
Fixes #8
This commit is contained in:
Bilal Elmoussaoui 2019-12-20 13:10:01 +00:00
parent 6ec1dd48ab
commit 5e9f5c8d26
4 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
variables:
FEDORA_DEPS: rust cargo git libhandy-devel
FEDORA_DEPS: rust cargo git meson ninja-build
pages:
image: 'registry.fedoraproject.org/fedora:31'
@ -7,9 +7,11 @@ pages:
before_script:
- dnf update -y
- dnf install -y $FEDORA_DEPS
- meson --prefix=/usr _build
- ninja -C _build install
script:
- git submodule update --init
- cargo doc -p libhandy
- cargo doc -p libhandy --features=['dox', 'v0_0_12']
- mv target/doc/ public
artifacts:
paths:

View file

@ -11,6 +11,7 @@ version = '0.4.0'
description = 'Rust bindings for libhandy'
license = 'GPL-3.0-or-later'
repository = 'https://gitlab.gnome.org/World/Rust/libhandy-rs'
documentation = "https://world.pages.gitlab.gnome.org/Rust/libhandy-rs/libhandy/"
exclude = [
'gir-files/*',
'gir/',

4
meson.build Normal file
View file

@ -0,0 +1,4 @@
project('libhandy-rs', 'rust')
subproject('libhandy')

View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://source.puri.sm/Librem5/libhandy.git
revision = v0.0.12