[gupnp-dlna] ci: Build and deploy docs



commit a69d0321e12ed25ae6f699e7f257ff2c27fb9f98
Author: Jens Georg <mail jensge org>
Date:   Thu May 27 13:35:44 2021 +0200

    ci: Build and deploy docs
    
    Fixes #7

 .gitlab-ci.yml |  5 ++++-
 doc/index.html | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 39e61fd..ee3dcef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -181,7 +181,10 @@ pages:
       - meson doc-build -Dgtk_doc=true
       - ninja -C doc-build gupnp-dlna-doc
       - mkdir -p public
-      - mv doc-build/doc/html public/docs
+      - cp doc/index.html public/docs
+      - mv doc-build/doc/gupnp-dlna/html public/docs/gupnp-dlna
+      - mv doc-build/doc/gupnp-dlna-gst/html public/docs/gupnp-dlna-gst
+      - mv doc-build/doc/gupnp-dlna-metadata/html public/docs/gupnp-dlna-metadata
   artifacts:
     paths:
       - public
diff --git a/doc/index.html b/doc/index.html
new file mode 100644
index 0000000..6c78830
--- /dev/null
+++ b/doc/index.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>GUPnP-DLNA API reference</title>
+<link rel="stylesheet" type="text/css" media="all" href="https://static.gnome.org/css/grass-theme-style.css";>
+</head>
+<body class="with-star">
+<div class="clearfix"></div>
+<div id="container" class="two_columns">
+<div class="container_12">
+<div class="page_title"><h1 class="subindex" id="subindex-references">API Reference</h1></div>
+<div class="content">
+<dl class="doc-index">
+<dt><a class="doc-link" lang="en" href="/docs/gupnp-dlna/">GUPnP-DLNA reference manual</a></dt>
+<dd>GUPnP DLNA is a set of utility APIs to simplify DLNA-specific bits of MediaServer implementations, such 
as DLNA media profile guessing.</dd>
+<dt><a class="doc-link" lang="en" href="/docs/gupnp-dlna-gst/">GUPnP-DLNA-Gst reference manual</a></dt>
+<dd>GUPnP DLNA GStreamer is a set of utility function targeted for using GUPnP-DLNA with GStreamer.</dd>
+<dt><a class="doc-link" lang="en" href="/docs/gupnp-dlna-metadata/">GUPnP-DLNA-Metadata </a></dt>
+<dd>GUPnP DLNA Metadata is a set of APIs to create a metadata extractor plugins used by GUPnP DLNA Profile 
Guesser to guess the profile.</dd>
+</dl>
+<script type="text/javascript">
+$(document).ready(function() {
+    // Get browser
+    $.each($.browser, function(i) {
+        $('body').addClass(i);
+        return false;
+    });
+
+    // Get OS and add it as class to body tag, this then allows forcing some
+    // customisation in the CSS rules.
+    var match = navigator.userAgent.toLowerCase().match(/(win|mac|linux)/);
+    if (match) {
+        $('body').addClass(match[0]);
+    }
+});
+    </script>
+</body>
+</html>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]