Skip to content

Commit d0bd0e0

Browse files
authored
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.
1 parent 3f1ac60 commit d0bd0e0

File tree

401 files changed

+18
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

401 files changed

+18
-13
lines changed

config.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ enableRobotsTXT = true
1212
enableGitInfo = true
1313

1414
# Docsy: Language settings
15-
contentDir = "content"
15+
contentDir = "content/en"
1616
defaultContentLanguage = "en"
17+
# Tell Hugo not to include the /en/ element in the URL path for English docs:
1718
defaultContentLanguageInSubdir = false
1819
# Docsy: Useful when translating.
1920
enableMissingTranslationPlaceholders = true
@@ -80,8 +81,10 @@ id = "UA-135379910-1"
8081
title = "Kubeflow"
8182
description = "Kubeflow makes deployment of ML Workflows on Kubernetes straightforward and automated"
8283
languageName ="English"
84+
# Weight used for sorting in the language menu:
8385
weight = 1
84-
# Example of another language: Norwegian
86+
87+
# Below is an example of another language (Norwegian):
8588
#[languages.no]
8689
#title = "Docsy"
8790
#description = "Docsy er operativsystem for skyen"
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h4 class="section-head">What is Kubeflow?</h4>
4343
<div class="card-deck">
4444
<div class="card border-primary-dark">
4545
<img
46-
src="logos/Jupyter.png"
46+
src="/docs/images/logos/Jupyter.png"
4747
class="card-img-top"
4848
draggable="false"
4949
style="padding: 2rem;"
@@ -61,7 +61,7 @@ <h5 class="card-title text-white section-head">Notebooks</h5>
6161
</div>
6262
<div class="card border-primary-dark">
6363
<img
64-
src="logos/TensorFlow.png"
64+
src="/docs/images/logos/TensorFlow.png"
6565
class="card-img-top"
6666
draggable="false"
6767
style="padding: 2rem;"
@@ -80,7 +80,7 @@ <h5 class="card-title text-white section-head">
8080
</div>
8181
<div class="card border-primary-dark">
8282
<img
83-
src="logos/Models.png"
83+
src="/docs/images/logos/Models.png"
8484
class="card-img-top"
8585
draggable="false"
8686
style="padding: 2rem;"
@@ -102,7 +102,7 @@ <h5 class="card-title text-white section-head">Model serving</h5>
102102
<div class="card-deck">
103103
<div class="card border-primary-dark">
104104
<img
105-
src="logos/Pipeline.png"
105+
src="/docs/images/logos/Pipeline.png"
106106
class="card-img-top"
107107
draggable="false"
108108
style="padding: 2rem;"
@@ -119,7 +119,7 @@ <h5 class="card-title text-white section-head">Pipelines</h5>
119119
</div>
120120
<div class="card border-primary-dark">
121121
<img
122-
src="logos/MultiPlatform.png"
122+
src="/docs/images/logos/MultiPlatform.png"
123123
class="card-img-top"
124124
draggable="false"
125125
style="padding: 2rem;"
@@ -144,7 +144,7 @@ <h5 class="card-title text-white section-head">Multi-framework</h5>
144144
</div>
145145
<div class="card border-primary-dark">
146146
<img
147-
src="logos/Community.png"
147+
src="/docs/images/logos/Community.png"
148148
class="card-img-top"
149149
draggable="false"
150150
style="padding: 2rem;"

0 commit comments

Comments
 (0)