Skip to content

Commit c60997a

Browse files
authored
Merge pull request #3486 from Blargian/add_banners_to_translations
Translations: add issue report banner to translation pages
2 parents ebd41cc + ea40405 commit c60997a

File tree

21 files changed

+1546
-44
lines changed

21 files changed

+1546
-44
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ docs/whats-new/changelog/index.md
5353
.aspell.en.prepl
5454
*.md.bak
5555

56-
# Don't ignore generated table of contents files
57-
!toc.json
5856
**.translated
5957
**.translate
6058
ClickHouse/
59+
60+
# Ignore generated table of contents files
61+
docs/cloud/reference/release-notes-index.md

docs/cloud/reference/release-notes-index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ title: Cloud Release Notes
77
using https://github.com/ClickHouse/clickhouse-docs/blob/main/scripts/autogenerate-table-of-contents.sh
88
If you've spotted an error, please edit the frontmatter of the pages themselves.
99
-->
10+

docusaurus.config.en.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,6 @@ const config = {
280280
respectPrefersColorScheme: true,
281281
defaultMode: "dark",
282282
},
283-
/* announcementBar: {
284-
id: 'support_us',
285-
content:
286-
'Check out our new 25-minute video on <a href="https://clickhouse.com/company/events/getting-started-with-clickhouse/" target="_blank"> Getting Started with ClickHouse</a>',
287-
backgroundColor: '#0057b7',
288-
textColor: '#ffffff',
289-
isCloseable: false,
290-
},
291-
*/
292283
}),
293284

294285
plugins: [

docusaurus.config.ru.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,6 @@ const config = {
269269
respectPrefersColorScheme: true,
270270
defaultMode: "dark",
271271
},
272-
/* announcementBar: {
273-
id: 'support_us',
274-
content:
275-
'Check out our new 25-minute video on <a href="https://clickhouse.com/company/events/getting-started-with-clickhouse/" target="_blank"> Getting Started with ClickHouse</a>',
276-
backgroundColor: '#0057b7',
277-
textColor: '#ffffff',
278-
isCloseable: false,
279-
},
280-
*/
281272
}),
282273

283274
plugins: [

i18n/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,23 @@ DOCUSUARUS_LOCALE=jp yarn build
133133

134134
This allows each language to be deployed independently.
135135

136-
Ensure you only build if the languages folder changes e.g.
136+
Ensure you only build if the languages folder or the docusaurus config file
137+
changes e.g.
137138

138139
```text
139-
git diff HEAD^ HEAD --quiet -- ./i18n/jp
140+
git diff HEAD^ HEAD --quiet -- ./i18n/jp && git diff HEAD^ HEAD --quiet -- docusaurus.config.jp.js && exit 0 || exit 1
140141
```
141142

142143
Example [here](https://vercel.com/clickhouse/clickhouse-docs-jp/settings/git).
143144

145+
**Note:** Only your last commit is checked, so if you make commits which don't
146+
touch those folders, you'll need to make a change in the appropriate i18n folder
147+
or the config file for translations to be deployed.
148+
149+
There is a `README.md` file in each `i18n/locale` folder for this purpose.
150+
Simply change the date in that file and commit the changes to get the translations
151+
to redeploy on vercel.
152+
144153
9. Add the route to the website worker - [example PR](https://github.com/ClickHouse/clickhouse-website-worker/pull/285/files)
145154

146155
## Known issues

0 commit comments

Comments
 (0)