Restructured the website repo to allow for future i18n and content translation (#1909)

* Modified configand directory structure for multiple langs.

* Moved docs and images to new i18n directories.

* Redirects are broken in preview. Moved the redirects file into the en/ directory too.

* Move the redirects file back to root.

* Test redirects with en/ prefix.

* Still testing redirects.

* I think redirects are working now.

* Removed Kubeflow customization of page edit URL.

* Moved the logos to same directory as other images.
This commit is contained in:
Sarah Maddox 2020-04-21 13:24:55 +10:00 committed by GitHub
parent 3f1ac60b7a
commit d0bd0e0314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
401 changed files with 18 additions and 13 deletions

View File

@ -12,8 +12,9 @@ enableRobotsTXT = true
enableGitInfo = true
# Docsy: Language settings
contentDir = "content"
contentDir = "content/en"
defaultContentLanguage = "en"
# Tell Hugo not to include the /en/ element in the URL path for English docs:
defaultContentLanguageInSubdir = false
# Docsy: Useful when translating.
enableMissingTranslationPlaceholders = true
@ -80,8 +81,10 @@ id = "UA-135379910-1"
title = "Kubeflow"
description = "Kubeflow makes deployment of ML Workflows on Kubernetes straightforward and automated"
languageName ="English"
# Weight used for sorting in the language menu:
weight = 1
# Example of another language: Norwegian
# Below is an example of another language (Norwegian):
#[languages.no]
#title = "Docsy"
#description = "Docsy er operativsystem for skyen"

View File

@ -43,7 +43,7 @@ title = "Kubeflow"
<div class="card-deck">
<div class="card border-primary-dark">
<img
src="logos/Jupyter.png"
src="/docs/images/logos/Jupyter.png"
class="card-img-top"
draggable="false"
style="padding: 2rem;"
@ -61,7 +61,7 @@ title = "Kubeflow"
</div>
<div class="card border-primary-dark">
<img
src="logos/TensorFlow.png"
src="/docs/images/logos/TensorFlow.png"
class="card-img-top"
draggable="false"
style="padding: 2rem;"
@ -80,7 +80,7 @@ title = "Kubeflow"
</div>
<div class="card border-primary-dark">
<img
src="logos/Models.png"
src="/docs/images/logos/Models.png"
class="card-img-top"
draggable="false"
style="padding: 2rem;"
@ -102,7 +102,7 @@ title = "Kubeflow"
<div class="card-deck">
<div class="card border-primary-dark">
<img
src="logos/Pipeline.png"
src="/docs/images/logos/Pipeline.png"
class="card-img-top"
draggable="false"
style="padding: 2rem;"
@ -119,7 +119,7 @@ title = "Kubeflow"
</div>
<div class="card border-primary-dark">
<img
src="logos/MultiPlatform.png"
src="/docs/images/logos/MultiPlatform.png"
class="card-img-top"
draggable="false"
style="padding: 2rem;"
@ -144,7 +144,7 @@ title = "Kubeflow"
</div>
<div class="card border-primary-dark">
<img
src="logos/Community.png"
src="/docs/images/logos/Community.png"
class="card-img-top"
draggable="false"
style="padding: 2rem;"

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 239 KiB

View File

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 206 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 116 KiB

View File

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 175 KiB

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 191 KiB

View File

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 266 KiB

View File

Before

Width:  |  Height:  |  Size: 230 KiB

After

Width:  |  Height:  |  Size: 230 KiB

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 221 KiB

Some files were not shown because too many files have changed in this diff Show More