pict-docuserve 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -4,9 +4,9 @@
4
4
  <meta charset="utf-8">
5
5
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7
- <meta name="description" content="Retold Documentation - A suite of JavaScript/Node.js modules for building web applications and APIs">
7
+ <meta name="description" content="Documentation powered by pict-docuserve">
8
8
 
9
- <title>Retold Documentation</title>
9
+ <title>Documentation</title>
10
10
 
11
11
  <!-- Application Stylesheet -->
12
12
  <link href="css/docuserve.css" rel="stylesheet">
@@ -3079,6 +3079,14 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
3079
3079
  // Load the catalog, then render the layout
3080
3080
  let tmpDocProvider = this.pict.providers['Docuserve-Documentation'];
3081
3081
  tmpDocProvider.loadCatalog(() => {
3082
+ // Set the page title from cover.md or _topbar.md
3083
+ let tmpDocuserve = this.pict.AppData.Docuserve;
3084
+ if (tmpDocuserve.CoverLoaded && tmpDocuserve.Cover && tmpDocuserve.Cover.Title) {
3085
+ document.title = tmpDocuserve.Cover.Title;
3086
+ } else if (tmpDocuserve.TopBarLoaded && tmpDocuserve.TopBar && tmpDocuserve.TopBar.Brand) {
3087
+ document.title = tmpDocuserve.TopBar.Brand;
3088
+ }
3089
+
3082
3090
  // Render the layout shell, which triggers child view rendering
3083
3091
  this.pict.views['Docuserve-Layout'].render();
3084
3092
  return super.onAfterInitializeAsync(fCallback);