You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by sj...@apache.org on 2021/02/11 14:50:12 UTC

[flink] branch master updated: [FLINK-21363][docs] Fix baseurl in documentation

This is an automated email from the ASF dual-hosted git repository.

sjwiesman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new cf00676  [FLINK-21363][docs] Fix baseurl in documentation
cf00676 is described below

commit cf00676243c1b0b3dd10e06ebab239188a4880e6
Author: Seth Wiesman <sj...@gmail.com>
AuthorDate: Thu Feb 11 08:22:02 2021 -0600

    [FLINK-21363][docs] Fix baseurl in documentation
    
    This closes #14926
---
 docs/README.md                                     | 4 ++--
 docs/config.toml                                   | 2 +-
 docs/layouts/partials/docs/inject/head.html        | 8 ++++----
 docs/layouts/partials/docs/inject/menu-before.html | 2 +-
 docs/layouts/shortcodes/img.html                   | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/docs/README.md b/docs/README.md
index adac0be..e88bf91 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -19,10 +19,10 @@ From this directory:
 	```
   * Start local server
 	```sh
-	hugo serve
+	hugo -b "" serve
 	```
 
-The site can be viewed at http://localhost:1313
+The site can be viewed at http://localhost:1313/
 
 ## Generate configuration tables
 
diff --git a/docs/config.toml b/docs/config.toml
index 21f999d..e39e5f9 100644
--- a/docs/config.toml
+++ b/docs/config.toml
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-baseURL = '/'
+baseURL = '//ci.apache.org/projects/flink/flink-docs-master'
 languageCode = "en-us"
 title = "Apache Flink"
 enableGitInfo = false
diff --git a/docs/layouts/partials/docs/inject/head.html b/docs/layouts/partials/docs/inject/head.html
index 90d2dc2..1464d7f 100644
--- a/docs/layouts/partials/docs/inject/head.html
+++ b/docs/layouts/partials/docs/inject/head.html
@@ -19,8 +19,8 @@ under the License.
 <!--
     Misc other content that should run in the header
 -->
-<link rel="stylesheet" type="text/css" href="/css/github.css">
-<link rel="stylesheet" type="text/css" href="/font-awesome/css/font-awesome.min.css">
-<script src="/js/anchor.min.js"></script>
-<script src="/js/flink.js"></script>
+<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/css/github.css">
+<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/font-awesome/css/font-awesome.min.css">
+<script src="{{.Site.BaseURL}}/js/anchor.min.js"></script>
+<script src="{{.Site.BaseURL}}/js/flink.js"></script>
 
diff --git a/docs/layouts/partials/docs/inject/menu-before.html b/docs/layouts/partials/docs/inject/menu-before.html
index f8c19de..5b688b7 100644
--- a/docs/layouts/partials/docs/inject/menu-before.html
+++ b/docs/layouts/partials/docs/inject/menu-before.html
@@ -20,6 +20,6 @@ under the License.
     Partial that renders at the top of the menu.
 -->
 <a id="logo" href="{{.Site.BaseURL}}{{.Site.LanguagePrefix}}">
-    <img width="70%" src="/flink-header-logo.svg">
+    <img width="70%" src="{{.Site.BaseURL}}/flink-header-logo.svg">
 </a>
 <p style="text-align:right">v{{ $.Site.Params.Version }}</p>
\ No newline at end of file
diff --git a/docs/layouts/shortcodes/img.html b/docs/layouts/shortcodes/img.html
index 57509bd..e0cd0a5 100644
--- a/docs/layouts/shortcodes/img.html
+++ b/docs/layouts/shortcodes/img.html
@@ -27,7 +27,7 @@ under the License.
       - width: Image width (optional)
 */}}
 <img 
-  src="{{ .Get "src" }}"
+  src="{{.Site.BaseURL}}{{ .Get "src" }}"
   alt="{{ .Get "alt" }}"
   width="{{ .Get "width" }}"
   style="display:block;margin-left:auto;margin-right:auto"