瀏覽代碼

HUE-8741 [doc] Instruction on how to run the doc site in dev mode

Romain Rigaux 6 年之前
父節點
當前提交
60250569e1

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

@@ -1,4 +1,4 @@
-baseURL = 'http://cloudera.github.io/hue/docs-4.4.0/' # Note: also in params
+baseURL = 'http://cloudera.github.io/hue/docs-4.4.0/' # Note: also in [params]
 
 languageCode = "en-us"
 title = "Hue Documentation"
@@ -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 = true
+  disableAssetsBusting = false
   # 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.

+ 8 - 1
docs/docs-site/content/developer/development/_index.md

@@ -15,7 +15,14 @@ the Hue environment.
 
 New website:
 
-Install https://gohugo.io/getting-started/quick-start/
+Install https://gohugo.io/getting-started/quick-start/.
+
+Develop:
+
+    hugo serve
+
+Release:
+
 Make sure the base URL is correct:
 
     cd docs/docs-site

+ 3 - 4
docs/docs-site/static/css/theme-hue.css

@@ -1,6 +1,6 @@
 
 :root{
-    
+
     --MAIN-TEXT-color:#323232; /* Color of text by default */
     --MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */
     --MAIN-LINK-color:#1C90F3; /* Color of links */
@@ -8,7 +8,7 @@
     --MAIN-ANCHOR-color: #1C90F3; /* color of anchors on titles */
 
     --MENU-HEADER-BG-color:#fff; /* Background color of menu header */
-    --MENU-HEADER-BORDER-color:#33a1ff; /*Color of menu header border */ 
+    --MENU-HEADER-BORDER-color:#33a1ff; /*Color of menu header border */
 
     --MENU-SEARCH-BG-color:#fff; /* Search field background color (by default borders + icons) */
     --MENU-SEARCH-BOX-color: #33a1ff; /* Override search field border color */
@@ -23,7 +23,7 @@
 
     --MENU-VISITED-color: #33a1ff; /* Color of 'page visited' icons in menu */
     --MENU-SECTION-HR-color: #20272b; /* Color of <hr> separator in menu */
-    
+
 }
 
 body {
@@ -101,4 +101,3 @@ a:hover {
 #sidebar hr {
     border-color: var(--MENU-SECTION-HR-color);
 }
-