Skip to content

Commit 10ab3ae

Browse files
authored
Change wording from New content to Recent features on version home pages; update links (#1376)
* Change UI text from `New content` to `New features` * Change UI text from `新着コンテンツ` to `新機能` * Revise code comment * Make constant name match label name change * Make style class names match label name change * Change `new feature` wording to `recent features` Since the docs shown on the `new features` line won't always be new for that version of docs that the visitor is reading, `recent features` is more appropriate wording here. * Change `new feature` wording to `recent features` Since the docs shown on the `new features` line won't always be new for that version of docs that the visitor is reading, `recent features` is more appropriate wording here. * Change link for diversity's sake * Revise comment about links in the `Recent features` section * Change `new feature` wording to `recent features` Since the docs shown on the `new features` line won't always be new for that version of docs that the visitor is reading, `recent features` is more appropriate wording here. * Update links * Add comment about link guidelines * Add link to doc/feature introduced in 3.15 * Apply suggestions from Gemini review
1 parent ed964e6 commit 10ab3ae

File tree

9 files changed

+110
-102
lines changed

9 files changed

+110
-102
lines changed

src/components/Cards/3.13.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,27 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
1616
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1717
import { faBook } from '@fortawesome/free-solid-svg-icons';
1818

19-
const new_content = [
19+
const recentFeatures = [
2020
{
21-
name: 'New content',
21+
name: 'Recent features',
2222
categoryLinks: [
23-
// To add a link, use the format ['link1', 'link2']
24-
// To add a label, use the format ['label1', 'label2']
23+
// Links should be to docs about features that have been introduced in this version or the previous version.
24+
// To add a link, use the format ['link1', 'link2']. Links should be relative to the docs directory and not be anchor links.
25+
// To add a label, use the format ['label1', 'label2'].
2526
{
2627
cell: 0, // First cell
27-
links: ['api-guide#group-commit-for-the-coordinator-table'],
28-
labels: ['Group commit for the Coordinator table']
28+
links: ['run-non-transactional-storage-operations-through-library'],
29+
labels: ['Configure ScalarDB to run non-transactional storage operations']
2930
},
3031
{
3132
cell: 1, // Second cell
32-
links: ['run-non-transactional-storage-operations-through-library#configure-scalardb-to-run-non-transactional-storage-operations'],
33-
labels: ['Configure ScalarDB to run non-transactional storage operations']
33+
links: ['scalardb-cluster/run-non-transactional-storage-operations-through-sql-interface'],
34+
labels: ['Configure ScalarDB Cluster to run non-transactional storage operations']
3435
},
3536
{
3637
cell: 2, // Third cell
37-
links: ['scalardb-cluster/run-non-transactional-storage-operations-through-sql-interface/#configure-scalardb-cluster-to-run-non-transactional-storage-operations'],
38-
labels: ['Configure ScalarDB Cluster to run non-transactional storage operations']
38+
links: ['scalardb-cluster/scalardb-auth-with-sql'],
39+
labels: ['Authenticate and Authorize Users']
3940
}
4041
]
4142
}
@@ -198,12 +199,12 @@ const CategoryGrid = () => {
198199
</div>
199200
</div>
200201

201-
{/* New content table */}
202+
{/* Recent features table */}
202203
<div className="category-table">
203-
{new_content.map((doc, i) => (
204+
{recentFeatures.map((doc, i) => (
204205
<React.Fragment key={i}>
205206
<div className="category-label">
206-
{/* <FontAwesomeIcon icon={faBook} className="new-content-icon" />
207+
{/* <FontAwesomeIcon icon={faBook} className="recent-features-icon" />
207208
&nbsp;{doc.name}*/}
208209
{doc.name}
209210
</div>
@@ -215,7 +216,7 @@ const CategoryGrid = () => {
215216
{categoryLinkCell.labels[k]}
216217
</Link>
217218
) : (
218-
<span key={`${j}-${k}`} className="new-content-cell">
219+
<span key={`${j}-${k}`} className="recent-features-cell">
219220
{categoryLinkCell.labels[k]}
220221
</span>
221222
)

src/components/Cards/3.14.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
1616
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1717
import { faBook } from '@fortawesome/free-solid-svg-icons';
1818

19-
const new_content = [
19+
const recentFeatures = [
2020
{
21-
name: 'New content',
21+
name: 'Recent features',
2222
categoryLinks: [
23-
// To add a link, use the format ['link1', 'link2']
24-
// To add a label, use the format ['label1', 'label2']
23+
// Links should be to docs about features that have been introduced in this version or the previous version.
24+
// To add a link, use the format ['link1', 'link2']. Links should be relative to the docs directory and not be anchor links.
25+
// To add a label, use the format ['label1', 'label2'].
2526
{
2627
cell: 0, // First cell
2728
links: ['scalardb-cluster/encrypt-data-at-rest'],
@@ -198,12 +199,12 @@ const CategoryGrid = () => {
198199
</div>
199200
</div>
200201

201-
{/* New content table */}
202+
{/* Recent features table */}
202203
<div className="category-table">
203-
{new_content.map((doc, i) => (
204+
{recentFeatures.map((doc, i) => (
204205
<React.Fragment key={i}>
205206
<div className="category-label">
206-
{/* <FontAwesomeIcon icon={faBook} className="new-content-icon" />
207+
{/* <FontAwesomeIcon icon={faBook} className="recent-features-icon" />
207208
&nbsp;{doc.name}*/}
208209
{doc.name}
209210
</div>
@@ -215,7 +216,7 @@ const CategoryGrid = () => {
215216
{categoryLinkCell.labels[k]}
216217
</Link>
217218
) : (
218-
<span key={`${j}-${k}`} className="new-content-cell">
219+
<span key={`${j}-${k}`} className="recent-features-cell">
219220
{categoryLinkCell.labels[k]}
220221
</span>
221222
)

src/components/Cards/3.15.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,27 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
1616
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1717
import { faBook } from '@fortawesome/free-solid-svg-icons';
1818

19-
const new_content = [
19+
const recentFeatures = [
2020
{
21-
name: 'New content',
21+
name: 'Recent features',
2222
categoryLinks: [
23-
// To add a link, use the format ['link1', 'link2']
24-
// To add a label, use the format ['label1', 'label2']
23+
// Links should be to docs about features that have been introduced in this version or the previous version.
24+
// To add a link, use the format ['link1', 'link2']. Links should be relative to the docs directory and not be anchor links.
25+
// To add a label, use the format ['label1', 'label2'].
2526
{
2627
cell: 0, // First cell
27-
links: ['features'],
28-
labels: ['ScalarDB Features']
29-
},
30-
{
31-
cell: 1, // Second cell
3228
links: ['scalardb-cluster/getting-started-with-vector-search'],
3329
labels: ['Getting Started with ScalarDB Cluster for Vector Search']
3430
},
3531
{
36-
cell: 2, // Third cell
32+
cell: 1, // Second cell
3733
links: ['scalardb-cluster/authorize-with-abac'],
3834
labels: ['Control User Access in a Fine-Grained Manner']
35+
},
36+
{
37+
cell: 2, // Third cell
38+
links: ['scalardb-cluster/encrypt-data-at-rest'],
39+
labels: ['Encrypt Data at Rest']
3940
}
4041
]
4142
}
@@ -198,12 +199,12 @@ const CategoryGrid = () => {
198199
</div>
199200
</div>
200201

201-
{/* New content table */}
202+
{/* Recent features table */}
202203
<div className="category-table">
203-
{new_content.map((doc, i) => (
204+
{recentFeatures.map((doc, i) => (
204205
<React.Fragment key={i}>
205206
<div className="category-label">
206-
{/* <FontAwesomeIcon icon={faBook} className="new-content-icon" />
207+
{/* <FontAwesomeIcon icon={faBook} className="recent-features-icon" />
207208
&nbsp;{doc.name}*/}
208209
{doc.name}
209210
</div>
@@ -215,7 +216,7 @@ const CategoryGrid = () => {
215216
{categoryLinkCell.labels[k]}
216217
</Link>
217218
) : (
218-
<span key={`${j}-${k}`} className="new-content-cell">
219+
<span key={`${j}-${k}`} className="recent-features-cell">
219220
{categoryLinkCell.labels[k]}
220221
</span>
221222
)

src/components/Cards/3.16.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,27 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
1616
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1717
import { faBook } from '@fortawesome/free-solid-svg-icons';
1818

19-
const new_content = [
19+
const recentFeatures = [
2020
{
21-
name: 'New content',
21+
name: 'Recent features',
2222
categoryLinks: [
23-
// To add a link, use the format ['link1', 'link2']
24-
// To add a label, use the format ['label1', 'label2']
23+
// Links should be to docs about features that have been introduced in this version or the previous version.
24+
// To add a link, use the format ['link1', 'link2']. Links should be relative to the docs directory and not be anchor links.
25+
// To add a label, use the format ['label1', 'label2'].
2526
{
2627
cell: 0, // First cell
27-
links: ['api-guide#begin-or-start-a-transaction-in-read-only-mode'],
28-
labels: ['Begin or start a transaction in read-only mode']
28+
links: ['scalardb-cluster/getting-started-with-vector-search'],
29+
labels: ['Getting Started with ScalarDB Cluster for Vector Search']
2930
},
3031
{
3132
cell: 1, // Second cell
32-
links: ['consensus-commit#one-phase-commit'],
33-
labels: ['One-phase commit']
33+
links: ['scalardb-cluster/authorize-with-abac'],
34+
labels: ['Control User Access in a Fine-Grained Manner']
3435
},
3536
{
3637
cell: 2, // Third cell
37-
links: ['configurations#scan-fetch-size'],
38-
labels: ['Scan fetch size']
38+
links: ['scalardb-cluster/encrypt-data-at-rest'],
39+
labels: ['Encrypt Data at Rest']
3940
}
4041
]
4142
}
@@ -198,12 +199,12 @@ const CategoryGrid = () => {
198199
</div>
199200
</div>
200201

201-
{/* New content table */}
202+
{/* Recent features table */}
202203
<div className="category-table">
203-
{new_content.map((doc, i) => (
204+
{recentFeatures.map((doc, i) => (
204205
<React.Fragment key={i}>
205206
<div className="category-label">
206-
{/* <FontAwesomeIcon icon={faBook} className="new-content-icon" />
207+
{/* <FontAwesomeIcon icon={faBook} className="recent-features-icon" />
207208
&nbsp;{doc.name}*/}
208209
{doc.name}
209210
</div>
@@ -215,7 +216,7 @@ const CategoryGrid = () => {
215216
{categoryLinkCell.labels[k]}
216217
</Link>
217218
) : (
218-
<span key={`${j}-${k}`} className="new-content-cell">
219+
<span key={`${j}-${k}`} className="recent-features-cell">
219220
{categoryLinkCell.labels[k]}
220221
</span>
221222
)

src/components/Cards/ja-jp/3.13.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,27 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
1616
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1717
import { faBook } from '@fortawesome/free-solid-svg-icons';
1818

19-
const new_content = [
19+
const recentFeatures = [
2020
{
21-
name: '新着コンテンツ',
21+
name: '最近の機能',
2222
categoryLinks: [
23-
// To add a link, use the format ['link1', 'link2']
24-
// To add a label, use the format ['label1', 'label2']
23+
// Links should be to docs about features that have been introduced in this version or the previous version.
24+
// To add a link, use the format ['link1', 'link2']. Links should be relative to the docs directory and not be anchor links.
25+
// To add a label, use the format ['label1', 'label2'].
2526
{
2627
cell: 0, // First cell
27-
links: ['api-guide#coordinator-テーブルのグループコミット'],
28-
labels: ['Coordinator テーブルのグループコミット']
28+
links: ['run-non-transactional-storage-operations-through-library'],
29+
labels: ['非トランザクショナルストレージ操作を実行するための ScalarDB の設定']
2930
},
3031
{
3132
cell: 1, // Second cell
32-
links: ['run-non-transactional-storage-operations-through-library#configure-scalardb-to-run-non-transactional-storage-operations'],
33-
labels: ['非トランザクショナルストレージ操作を実行するための ScalarDB の設定']
33+
links: ['scalardb-cluster/run-non-transactional-storage-operations-through-sql-interface'],
34+
labels: ['非トランザクショナルストレージ操作を実行するための ScalarDB Cluster の設定']
3435
},
3536
{
3637
cell: 2, // Third cell
37-
links: ['scalardb-cluster/run-non-transactional-storage-operations-through-sql-interface/#configure-scalardb-cluster-to-run-non-transactional-storage-operations'],
38-
labels: ['非トランザクショナルストレージ操作を実行するための ScalarDB Cluster の設定']
38+
links: ['scalardb-cluster/scalardb-auth-with-sql'],
39+
labels: ['ユーザーの認証と認可']
3940
}
4041
]
4142
}
@@ -198,12 +199,12 @@ const CategoryGrid = () => {
198199
</div>
199200
</div>
200201

201-
{/* New content table */}
202+
{/* Recent features table */}
202203
<div className="category-table">
203-
{new_content.map((doc, i) => (
204+
{recentFeatures.map((doc, i) => (
204205
<React.Fragment key={i}>
205206
<div className="category-label">
206-
{/* <FontAwesomeIcon icon={faBook} className="new-content-icon" />
207+
{/* <FontAwesomeIcon icon={faBook} className="recent-features-icon" />
207208
&nbsp;{doc.name}*/}
208209
{doc.name}
209210
</div>
@@ -215,7 +216,7 @@ const CategoryGrid = () => {
215216
{categoryLinkCell.labels[k]}
216217
</Link>
217218
) : (
218-
<span key={`${j}-${k}`} className="new-content-cell">
219+
<span key={`${j}-${k}`} className="recent-features-cell">
219220
{categoryLinkCell.labels[k]}
220221
</span>
221222
)

src/components/Cards/ja-jp/3.14.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
1616
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1717
import { faBook } from '@fortawesome/free-solid-svg-icons';
1818

19-
const new_content = [
19+
const recentFeatures = [
2020
{
21-
name: '新着コンテンツ',
21+
name: '最近の機能',
2222
categoryLinks: [
23-
// To add a link, use the format ['link1', 'link2']
24-
// To add a label, use the format ['label1', 'label2']
23+
// Links should be to docs about features that have been introduced in this version or the previous version.
24+
// To add a link, use the format ['link1', 'link2']. Links should be relative to the docs directory and not be anchor links.
25+
// To add a label, use the format ['label1', 'label2'].
2526
{
2627
cell: 0, // First cell
2728
links: ['scalardb-cluster/encrypt-data-at-rest'],
@@ -198,12 +199,12 @@ const CategoryGrid = () => {
198199
</div>
199200
</div>
200201

201-
{/* New content table */}
202+
{/* Recent features table */}
202203
<div className="category-table">
203-
{new_content.map((doc, i) => (
204+
{recentFeatures.map((doc, i) => (
204205
<React.Fragment key={i}>
205206
<div className="category-label">
206-
{/* <FontAwesomeIcon icon={faBook} className="new-content-icon" />
207+
{/* <FontAwesomeIcon icon={faBook} className="recent-features-icon" />
207208
&nbsp;{doc.name}*/}
208209
{doc.name}
209210
</div>
@@ -215,7 +216,7 @@ const CategoryGrid = () => {
215216
{categoryLinkCell.labels[k]}
216217
</Link>
217218
) : (
218-
<span key={`${j}-${k}`} className="new-content-cell">
219+
<span key={`${j}-${k}`} className="recent-features-cell">
219220
{categoryLinkCell.labels[k]}
220221
</span>
221222
)

0 commit comments

Comments
 (0)