浏览代码

HUE-8741 [doc] Use correct path for the search

Romain Rigaux 6 年之前
父节点
当前提交
657301f

+ 1 - 1
docs/docs-site/config.toml

@@ -27,7 +27,7 @@ home = [ "HTML", "RSS", "JSON"]
   disableSearch = false
   # Javascript and CSS cache are automatically busted when new version of site is generated.
   # Set this to true to disable this behavior (some proxies don't handle well this optimization)
-  disableAssetsBusting = false
+  disableAssetsBusting = true
   # Set this to true to disable copy-to-clipboard button for inline code.
   disableInlineCopyToClipBoard = false
   # A title for shortcuts in menu is set by default. Set this to true to disable it.

+ 2 - 2
docs/docs-site/content/developer/development/_index.md

@@ -24,12 +24,12 @@ Make sure the base URL is correct:
 
 Build the doc website:
 
-    hugo server -wDs . -d ~/tmp/docs-4.4.0
+    hugo
 
 Add it to the github page and push:
 
     git checkout gh-pages
-    cp ~/tmp/docs-4.4.0 .
+    cp ~/docs/docs-site/public docs-4.4.0 -r
     rm latest
     ln -s docs-4.4.0 latest
 

+ 1 - 1
docs/docs-site/layouts/partials/logo.html

@@ -1 +1 @@
-<img src="{{ .Site.Params.baseURL }}/images/hue_logo.png" alt="alt text" title="Hue Logo">
+<img src="{{ .Site.Params.baseURL }}images/hue_logo.png" alt="alt text" title="Hue Logo">

+ 2 - 2
docs/docs-site/themes/hugo-theme-learn/layouts/partials/header.html

@@ -70,7 +70,7 @@
                  {{if $showBreadcrumb}}
                     {{ template "breadcrumb" dict "page" . "value" .Title }}
                  {{ else }}
-                   {{ .Title }} 
+                   {{ .Title }}
                  {{ end }}
                   </span>
                 </div>
@@ -93,7 +93,7 @@
           {{$parent := .page.Parent }}
           {{ if $parent }}
             {{ $value := (printf "<a href='%s'>%s</a> > %s" $parent.URL $parent.Title .value) }}
-            {{ template "breadcrumb" dict "page" $parent "value" $value }} 
+            {{ template "breadcrumb" dict "page" $parent "value" $value }}
           {{else}}
             {{.value|safeHTML}}
           {{end}}