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:
parent
6ec1dd48ab
commit
5e9f5c8d26
|
@ -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:
|
||||
|
|
|
@ -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
4
meson.build
Normal file
|
@ -0,0 +1,4 @@
|
|||
project('libhandy-rs', 'rust')
|
||||
|
||||
|
||||
subproject('libhandy')
|
3
subprojects/libhandy.wrap
Normal file
3
subprojects/libhandy.wrap
Normal file
|
@ -0,0 +1,3 @@
|
|||
[wrap-git]
|
||||
url = https://source.puri.sm/Librem5/libhandy.git
|
||||
revision = v0.0.12
|
Loading…
Reference in a new issue