Commit 43dacf68 authored by Bastien Nocera's avatar Bastien Nocera

Merge branch 'wip/hadess/add-ci' into 'master'

Generate docs and index page

See merge request !1
parents 363da000 e98e0476
Pipeline #579 passed with stage
in 3 minutes and 25 seconds
image: fedora:rawhide
variables:
DEPENDENCIES: git discount dnf-plugins-core cpio
DEPENDENCIES_FPRINTD: dbus-glib-devel pam-devel polkit-devel
gtk-doc meson intltool autoconf automake libtool
gcc gcc-c++ glibc-devel make
# Sync'ed up with https://gitlab.freedesktop.org/libfprint/libfprint/blob/master/.gitlab-ci.yml
DEPENDENCIES_LIBFPRINT: libusb1-devel glib2-devel nss-devel pixman-devel systemd
meson gtk-doc gcc gcc-c++ glibc-devel libX11-devel
libXv-devel
pages:
stage: deploy
before_script:
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES $DEPENDENCIES_LIBFPRINT $DEPENDENCIES_FPRINTD
script:
- mkdir .public
- cp *.md simple.css .public/
- cd .public/
- for i in *.md ; do discount-mkd2html -css simple.css $i ; done
- rm -f *.md
- cd ..
- mv .public/ public/
# Stable libfprint docs, copied from package, we can't copy from the
# installed package, as the CI setup doesn't install docs
- dnf download libfprint-devel.x86_64
- rpm2cpio ./libfprint-devel-*.rpm | cpio -id
- mv ./usr/share/doc/libfprint-devel/html/ public/libfprint-stable/
- rm -rf ./libfprint-devel-*.rpm ./usr/
# Unstable libfprint docs
- git clone https://gitlab.freedesktop.org/libfprint/libfprint.git
- cd libfprint
- meson . _build -Dprefix=/usr
- ninja -C _build
- ninja -C _build install
- cd ..
- mv /usr/share/gtk-doc/html/libfprint/ public/libfprint-dev/
# fprintd docs
- git clone https://gitlab.freedesktop.org/libfprint/fprintd.git
- cd fprintd
- ./autogen.sh --disable-dependency-tracking --prefix=/usr/ --enable-gtk-doc
- make
- make install
- cd ..
- mv /usr/share/gtk-doc/html/fprintd public/fprintd-dev/
artifacts:
paths:
- public
# libfprint
## API documentation
[libfprint stable](libfprint-stable/)
[libfprint devel](libfprint-dev/)
[fprintd](fprintd-dev/)
body { margin-left:3%;
margin-right:3%;
margin-bottom:0;
margin-top:1%;
padding-left:2%;
padding-right:2%;
background:#fff;
text-align: left;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", Times, Georgia, serif;
}
h1 { margin:0 0 0 0;
padding:0 0 0 0;
border-bottom:1px solid gray;
margin-bottom: 5px;
color:gray;
font-variant:small-caps;
font-weight:lighter; }
h1 a { text-decoration: none; }
h2 a { text-decoration: none; }
h3 a { text-decoration: none; }
h4 a { text-decoration: none; }
h2,h3,h4 { margin:1em 0 0 0;
font-variant:small-caps; }
hr { margin-left: 0; }
dl { padding: 0.5em; }
dt { text-align: right;
float: left;
clear: left;
width:8em; }
dt:after { content: ':'; }
dd p { margin-top: 0; padding-top: 0; }
dd { text-align: left;
margin: 0 0 .5em 9.5em;
padding: 0 0 .5em 0; }
hr { margin-top: 0; }
img { border:0; }
.caps { font-variant:small-caps; }
.comics { font-family: "comic sans MS", "comic sans"; }
.typewriter {
font-family: monospace;
border: 1px solid #888888;
margin-left: 1em;
margin-right: 1em;
padding-left: 4px;
padding-right: 4px;
background: #cccc99;
}
blockquote {
border: 1px solid black;
font-family: sans-serif;
margin-left: 2em;
padding-left: 4px;
padding-right: 4px;
background: #ccc;
}
.example {
font-family: "sans serif";
margin-left: 0;
border: 1px solid #bbb;
background: #ccc;
display: block;
}
#plain {
border-style: none;
list-style-type: none;
list-style: none;
text-decoration: none;
}
#section { margin: 0 60% 0 0;
/*margin-top: 0;
margin-left: 0;
width:40%; */ }
#plain a { text-decoration: none; border: 1px solid #fff }
#plain a:visited { text-decoration: none; border: 1px solid #fff }
#plain a:link { text-decoration: none; border: 1px solid #fff }
#plain a:hover { text-decoration: none; border: 1px dashed #000 }
#plain ul { list-style-type: none; text-decoration: none }
.ignore {
display: none;
color: white;
}
p + p { margin-top: 0; }
.signature { font-size: smaller; }
.signature hr { margin-bottom: 0;
padding-bottom: 0;
color: black;
}
.signature ul { margin-left: 0;
padding-left: 0;
display: inline;
font-family: "sans serif";
}
.signature a { border: 0px; color: #111; text-decoration: none; }
.signature a:before { content: "<"; }
.signature a:after { content: ">"; }
.signature a:visited { border: 0px; color: #222; text-decoration: none; }
.signature a:link { border: 0px; color: #111; text-decoration: none; }
.signature a:hover { background: #ccc; }
.signature li { padding: 1px;
list-style: none;
display: inline;
border: 1px solid gray;
padding-top: 0px;
border-top: 0px;
display: inline;
float: left;
}
.signature li.right { display: inline;
float: right;
border: 0;
text-align:right;
}
.starboard { float: right; }
.port { float: left; }
/* klunky primitive css hacks */
#inthemiddle {
margin-left:10%;
margin-right:10%;
}
.inthemiddle {
margin-left:10%;
margin-right:10%;
}
#quote {
border: 1px dotted #000;
padding: 1px 1em 1px 1em;
margin: 0 2em 0 2em;
font-family: arial, "lucida console", "sans serif";
font-size: smaller;
}
.quote {
border: 1px dotted #000;
padding: 1px 1em 1px 1em;
margin: 0 2em 0 2em;
font-family: arial, "lucida console", "sans serif";
font-size: smaller;
}
#boilerplate {
margin-left:15%;
margin-right:15%;
background:#111;
color: #eee;
text-align: justify;
}
.boilerplate {
margin-left:15%;
margin-right:15%;
background:#111;
color: #eee;
text-align: justify;
}
#boxed {
background: #000;
border: 2px solid #fff;
color: #0c0;
padding:1em;
}
.boxed {
background: #000;
border: 2px solid #fff;
color: #0c0;
padding:1em;
}
#sigleft {
text-align:left;
width:49%;
float: left;
}
#sigright {
text-align:right;
width:49%;
float: right;
font-size: smaller;
}
.sigleft {
text-align:left;
width:49%;
float: left;
}
.sigright {
text-align:right;
width:49%;
float: right;
font-size: smaller;
}
.typewriter { font-family: "Courier New",Courier,monospace; }
#typewriter { font-family: "Courier New",Courier,monospace; }
pre, code, kbd, samp, tt {
font-family:monospace,monospace;
font-size:1em;
}
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