Skip to content

Commit 822fcea

Browse files
authored
Merge c0bc9e6 into c564c6e
2 parents c564c6e + c0bc9e6 commit 822fcea

File tree

16 files changed

+742
-12
lines changed

16 files changed

+742
-12
lines changed

website/docs/guides/migrating-to-v1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Migrating to V1
2+
title: Migrating from v0
33
sidebar_position: 4
44
---
55

website/docusaurus.config.ts

+23-11
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ const config: Config = {
2929
docs: {
3030
path: 'docs',
3131
routeBasePath: '/docs',
32+
lastVersion: 'current',
33+
versions: {
34+
current: {
35+
label: packageJson.version,
36+
path: '',
37+
},
38+
},
3239
editUrl:
3340
'https://github.com/rohit-gohri/redocusaurus/edit/main/website/',
3441
},
@@ -60,6 +67,15 @@ const config: Config = {
6067
},
6168
] satisfies Redocusaurus.PresetEntry,
6269
],
70+
i18n: {
71+
defaultLocale: 'en',
72+
locales: ['en', 'de'],
73+
localeConfigs: {
74+
en: {
75+
htmlLang: 'en-GB',
76+
},
77+
},
78+
},
6379
themeConfig: {
6480
navbar: {
6581
title: 'Redocusaurus',
@@ -108,18 +124,14 @@ const config: Config = {
108124
],
109125
},
110126
{
111-
label: `v${packageJson.version}`,
127+
type: 'docsVersionDropdown',
128+
position: 'right',
129+
dropdownActiveClassDisabled: true,
130+
// 'https://redocusaurus-v0.vercel.app/',
131+
},
132+
{
133+
type: 'localeDropdown',
112134
position: 'right',
113-
items: [
114-
{
115-
label: 'v0',
116-
href: 'https://redocusaurus-v0.vercel.app/',
117-
},
118-
{
119-
label: 'v1 | v2',
120-
to: '/',
121-
},
122-
],
123135
},
124136
{
125137
href: 'https://github.com/rohit-gohri/redocusaurus',

website/i18n/en/code.json

+289
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,289 @@
1+
{
2+
"theme.ErrorPageContent.title": {
3+
"message": "This page crashed.",
4+
"description": "The title of the fallback page when the page crashed"
5+
},
6+
"theme.blog.archive.title": {
7+
"message": "Archive",
8+
"description": "The page & hero title of the blog archive page"
9+
},
10+
"theme.blog.archive.description": {
11+
"message": "Archive",
12+
"description": "The page & hero description of the blog archive page"
13+
},
14+
"theme.blog.paginator.navAriaLabel": {
15+
"message": "Blog list page navigation",
16+
"description": "The ARIA label for the blog pagination"
17+
},
18+
"theme.blog.paginator.newerEntries": {
19+
"message": "Newer Entries",
20+
"description": "The label used to navigate to the newer blog posts page (previous page)"
21+
},
22+
"theme.blog.paginator.olderEntries": {
23+
"message": "Older Entries",
24+
"description": "The label used to navigate to the older blog posts page (next page)"
25+
},
26+
"theme.BackToTopButton.buttonAriaLabel": {
27+
"message": "Scroll back to top",
28+
"description": "The ARIA label for the back to top button"
29+
},
30+
"theme.blog.post.paginator.navAriaLabel": {
31+
"message": "Blog post page navigation",
32+
"description": "The ARIA label for the blog posts pagination"
33+
},
34+
"theme.blog.post.paginator.newerPost": {
35+
"message": "Newer Post",
36+
"description": "The blog post button label to navigate to the newer/previous post"
37+
},
38+
"theme.blog.post.paginator.olderPost": {
39+
"message": "Older Post",
40+
"description": "The blog post button label to navigate to the older/next post"
41+
},
42+
"theme.blog.post.plurals": {
43+
"message": "One post|{count} posts",
44+
"description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
45+
},
46+
"theme.blog.tagTitle": {
47+
"message": "{nPosts} tagged with \"{tagName}\"",
48+
"description": "The title of the page for a blog tag"
49+
},
50+
"theme.tags.tagsPageLink": {
51+
"message": "View All Tags",
52+
"description": "The label of the link targeting the tag list page"
53+
},
54+
"theme.colorToggle.ariaLabel": {
55+
"message": "Switch between dark and light mode (currently {mode})",
56+
"description": "The ARIA label for the navbar color mode toggle"
57+
},
58+
"theme.colorToggle.ariaLabel.mode.dark": {
59+
"message": "dark mode",
60+
"description": "The name for the dark color mode"
61+
},
62+
"theme.colorToggle.ariaLabel.mode.light": {
63+
"message": "light mode",
64+
"description": "The name for the light color mode"
65+
},
66+
"theme.docs.breadcrumbs.navAriaLabel": {
67+
"message": "Breadcrumbs",
68+
"description": "The ARIA label for the breadcrumbs"
69+
},
70+
"theme.docs.paginator.navAriaLabel": {
71+
"message": "Docs pages",
72+
"description": "The ARIA label for the docs pagination"
73+
},
74+
"theme.docs.paginator.previous": {
75+
"message": "Previous",
76+
"description": "The label used to navigate to the previous doc"
77+
},
78+
"theme.docs.paginator.next": {
79+
"message": "Next",
80+
"description": "The label used to navigate to the next doc"
81+
},
82+
"theme.docs.DocCard.categoryDescription": {
83+
"message": "{count} items",
84+
"description": "The default description for a category card in the generated index about how many items this category includes"
85+
},
86+
"theme.docs.tagDocListPageTitle.nDocsTagged": {
87+
"message": "One doc tagged|{count} docs tagged",
88+
"description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
89+
},
90+
"theme.docs.tagDocListPageTitle": {
91+
"message": "{nDocsTagged} with \"{tagName}\"",
92+
"description": "The title of the page for a docs tag"
93+
},
94+
"theme.docs.versions.unreleasedVersionLabel": {
95+
"message": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
96+
"description": "The label used to tell the user that he's browsing an unreleased doc version"
97+
},
98+
"theme.docs.versions.unmaintainedVersionLabel": {
99+
"message": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
100+
"description": "The label used to tell the user that he's browsing an unmaintained doc version"
101+
},
102+
"theme.docs.versions.latestVersionSuggestionLabel": {
103+
"message": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
104+
"description": "The label used to tell the user to check the latest version"
105+
},
106+
"theme.docs.versions.latestVersionLinkLabel": {
107+
"message": "latest version",
108+
"description": "The label used for the latest version suggestion link label"
109+
},
110+
"theme.docs.versionBadge.label": {
111+
"message": "Version: {versionLabel}"
112+
},
113+
"theme.common.editThisPage": {
114+
"message": "Edit this page",
115+
"description": "The link label to edit the current page"
116+
},
117+
"theme.common.headingLinkTitle": {
118+
"message": "Direct link to {heading}",
119+
"description": "Title for link to heading"
120+
},
121+
"theme.lastUpdated.atDate": {
122+
"message": " on {date}",
123+
"description": "The words used to describe on which date a page has been last updated"
124+
},
125+
"theme.lastUpdated.byUser": {
126+
"message": " by {user}",
127+
"description": "The words used to describe by who the page has been last updated"
128+
},
129+
"theme.lastUpdated.lastUpdatedAtBy": {
130+
"message": "Last updated{atDate}{byUser}",
131+
"description": "The sentence used to display when a page has been last updated, and by who"
132+
},
133+
"theme.NotFound.title": {
134+
"message": "Page Not Found",
135+
"description": "The title of the 404 page"
136+
},
137+
"theme.navbar.mobileVersionsDropdown.label": {
138+
"message": "Versions",
139+
"description": "The label for the navbar versions dropdown on mobile view"
140+
},
141+
"theme.tags.tagsListLabel": {
142+
"message": "Tags:",
143+
"description": "The label alongside a tag list"
144+
},
145+
"theme.admonition.caution": {
146+
"message": "caution",
147+
"description": "The default label used for the Caution admonition (:::caution)"
148+
},
149+
"theme.admonition.danger": {
150+
"message": "danger",
151+
"description": "The default label used for the Danger admonition (:::danger)"
152+
},
153+
"theme.admonition.info": {
154+
"message": "info",
155+
"description": "The default label used for the Info admonition (:::info)"
156+
},
157+
"theme.admonition.note": {
158+
"message": "note",
159+
"description": "The default label used for the Note admonition (:::note)"
160+
},
161+
"theme.admonition.tip": {
162+
"message": "tip",
163+
"description": "The default label used for the Tip admonition (:::tip)"
164+
},
165+
"theme.admonition.warning": {
166+
"message": "warning",
167+
"description": "The default label used for the Warning admonition (:::warning)"
168+
},
169+
"theme.AnnouncementBar.closeButtonAriaLabel": {
170+
"message": "Close",
171+
"description": "The ARIA label for close button of announcement bar"
172+
},
173+
"theme.blog.sidebar.navAriaLabel": {
174+
"message": "Blog recent posts navigation",
175+
"description": "The ARIA label for recent posts in the blog sidebar"
176+
},
177+
"theme.CodeBlock.copied": {
178+
"message": "Copied",
179+
"description": "The copied button label on code blocks"
180+
},
181+
"theme.CodeBlock.copyButtonAriaLabel": {
182+
"message": "Copy code to clipboard",
183+
"description": "The ARIA label for copy code blocks button"
184+
},
185+
"theme.CodeBlock.copy": {
186+
"message": "Copy",
187+
"description": "The copy button label on code blocks"
188+
},
189+
"theme.CodeBlock.wordWrapToggle": {
190+
"message": "Toggle word wrap",
191+
"description": "The title attribute for toggle word wrapping button of code block lines"
192+
},
193+
"theme.DocSidebarItem.expandCategoryAriaLabel": {
194+
"message": "Expand sidebar category '{label}'",
195+
"description": "The ARIA label to expand the sidebar category"
196+
},
197+
"theme.DocSidebarItem.collapseCategoryAriaLabel": {
198+
"message": "Collapse sidebar category '{label}'",
199+
"description": "The ARIA label to collapse the sidebar category"
200+
},
201+
"theme.NotFound.p1": {
202+
"message": "We could not find what you were looking for.",
203+
"description": "The first paragraph of the 404 page"
204+
},
205+
"theme.NotFound.p2": {
206+
"message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
207+
"description": "The 2nd paragraph of the 404 page"
208+
},
209+
"theme.navbar.mobileLanguageDropdown.label": {
210+
"message": "Languages",
211+
"description": "The label for the mobile language switcher dropdown"
212+
},
213+
"theme.NavBar.navAriaLabel": {
214+
"message": "Main",
215+
"description": "The ARIA label for the main navigation"
216+
},
217+
"theme.TOCCollapsible.toggleButtonLabel": {
218+
"message": "On this page",
219+
"description": "The label used by the button on the collapsible TOC component"
220+
},
221+
"theme.blog.post.readingTime.plurals": {
222+
"message": "One min read|{readingTime} min read",
223+
"description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
224+
},
225+
"theme.blog.post.readMore": {
226+
"message": "Read More",
227+
"description": "The label used in blog post item excerpts to link to full blog posts"
228+
},
229+
"theme.blog.post.readMoreLabel": {
230+
"message": "Read more about {title}",
231+
"description": "The ARIA label for the link to full blog posts from excerpts"
232+
},
233+
"theme.docs.breadcrumbs.home": {
234+
"message": "Home page",
235+
"description": "The ARIA label for the home page in the breadcrumbs"
236+
},
237+
"theme.docs.sidebar.navAriaLabel": {
238+
"message": "Docs sidebar",
239+
"description": "The ARIA label for the sidebar navigation"
240+
},
241+
"theme.docs.sidebar.collapseButtonTitle": {
242+
"message": "Collapse sidebar",
243+
"description": "The title attribute for collapse button of doc sidebar"
244+
},
245+
"theme.docs.sidebar.collapseButtonAriaLabel": {
246+
"message": "Collapse sidebar",
247+
"description": "The title attribute for collapse button of doc sidebar"
248+
},
249+
"theme.docs.sidebar.closeSidebarButtonAriaLabel": {
250+
"message": "Close navigation bar",
251+
"description": "The ARIA label for close button of mobile sidebar"
252+
},
253+
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
254+
"message": "← Back to main menu",
255+
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
256+
},
257+
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
258+
"message": "Toggle navigation bar",
259+
"description": "The ARIA label for hamburger menu button of mobile navigation"
260+
},
261+
"theme.docs.sidebar.expandButtonTitle": {
262+
"message": "Expand sidebar",
263+
"description": "The ARIA label and title attribute for expand button of doc sidebar"
264+
},
265+
"theme.docs.sidebar.expandButtonAriaLabel": {
266+
"message": "Expand sidebar",
267+
"description": "The ARIA label and title attribute for expand button of doc sidebar"
268+
},
269+
"theme.ErrorPageContent.tryAgain": {
270+
"message": "Try again",
271+
"description": "The label of the button to try again rendering when the React error boundary captures an error"
272+
},
273+
"theme.common.skipToMainContent": {
274+
"message": "Skip to main content",
275+
"description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
276+
},
277+
"theme.tags.tagsPageTitle": {
278+
"message": "Tags",
279+
"description": "The title of the tag list page"
280+
},
281+
"theme.unlistedContent.title": {
282+
"message": "Unlisted page",
283+
"description": "The unlisted content banner title"
284+
},
285+
"theme.unlistedContent.message": {
286+
"message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
287+
"description": "The unlisted content banner message"
288+
}
289+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"title": {
3+
"message": "Blog",
4+
"description": "The title for the blog used in SEO"
5+
},
6+
"description": {
7+
"message": "Blog",
8+
"description": "The description for the blog used in SEO"
9+
},
10+
"sidebar.title": {
11+
"message": "Recent posts",
12+
"description": "The label for the left sidebar"
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version.label": {
3+
"message": "2.0.2",
4+
"description": "The label for version current"
5+
},
6+
"sidebar.defaultSidebar.category.Getting Started": {
7+
"message": "Getting Started",
8+
"description": "The label for category Getting Started in sidebar defaultSidebar"
9+
},
10+
"sidebar.defaultSidebar.category.Guides": {
11+
"message": "Guides",
12+
"description": "The label for category Guides in sidebar defaultSidebar"
13+
},
14+
"sidebar.defaultSidebar.category.Nested Docs Example": {
15+
"message": "Nested Docs Example",
16+
"description": "The label for category Nested Docs Example in sidebar defaultSidebar"
17+
}
18+
}

0 commit comments

Comments
 (0)