-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[i18nIgnore] Update backend guides to use logo instead of service
#12759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c96597e
update english deploy guides with service and scaffold new test compo…
sarah11918 8c37dfc
update de and es deploy guides to include `service`
sarah11918 823760b
add service to more translated guides
sarah11918 e305ed4
more ko translations
sarah11918 88b006f
all ko translations done
sarah11918 df4a75a
all translations except zh-cn
sarah11918 f11ebfb
all translated guides now have service property
sarah11918 f263fdc
remove static paragraph text
sarah11918 c5bdd61
remove unused import
sarah11918 5b80d27
Merge branch 'main' into deploy-guides-alpha
sarah11918 9356d20
add service to new translated guide
sarah11918 9a48991
component working with hardcoded supports array
sarah11918 5545d3f
works by setting a default static value in the schema
sarah11918 6768d3f
updated two test cases, they seem to work
sarah11918 112d3ff
all deploy guides updated to include a supports array
sarah11918 967dac3
removed default supports value; all files working on their own
sarah11918 c5cfc3b
completely replace nav component; fix one guide
sarah11918 f74f429
remove old list of services from component
sarah11918 90f35bb
consistent not Google Firebase not hosting
sarah11918 24eaeef
rename Deno Deploy label
sarah11918 7976a7d
feat: deploy logo
HiDeoo 7a99a24
Update _redirects
sarah11918 810bbbc
committing Firebase rename while I can, even though there might be er…
sarah11918 2a094cf
add Firebase to redirects
sarah11918 e07b403
update backend guides to use logo instead of service frontmatter prop…
sarah11918 ae44741
consistent spaces in redirects file
sarah11918 0dad51a
leftover copy/paste from Deploy Guide structure
sarah11918 92fc402
Merge branch 'main' into backend-guides-update
sarah11918 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,23 @@ | ||
| --- | ||
| import { englishPages } from '~/content'; | ||
| import { isBackendEntry } from '~/content.config'; | ||
| import { isLogoKey } from '~/data/logos'; | ||
| import { getLanguageFromURL } from '~/util/path-utils'; | ||
| import CardsNav from './NavGrid/CardsNav.astro'; | ||
| const lang = getLanguageFromURL(Astro.url.pathname); | ||
| const enPages = englishPages.filter(isBackendEntry); | ||
| const links = enPages | ||
| .sort((a, b) => { | ||
| // Sort alphabetically. | ||
| return a.data.service.toLowerCase() > b.data.service.toLowerCase() ? 1 : -1; | ||
| }) | ||
| .sort((a, b) => (a.id > b.id ? 1 : -1)) | ||
| .map((page) => { | ||
| const { service } = page.data; | ||
| const { logo, sidebar } = page.data; | ||
| if (!sidebar.label) throw new Error('Deploy guides must always include a sidebar label.'); | ||
sarah11918 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| const pageUrl = '/' + page.id.replace('en/', `${lang}/`) + '/'; | ||
| const logo = isLogoKey(page.id.split('/').pop()); | ||
| return { title: service, href: pageUrl, logo }; | ||
| return { title: sidebar.label, href: pageUrl, logo }; | ||
| }); | ||
| --- | ||
|
|
||
| <section> | ||
| <CardsNav minimal links={links} /> | ||
| <CardsNav links={links} /> | ||
| </section> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ description: Add a backend to your project with Firebase | |
| sidebar: | ||
| label: Firebase | ||
| type: backend | ||
| service: Firebase | ||
| logo: firebase | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noting that the |
||
| stub: false | ||
| i18nReady: true | ||
| --- | ||
|
|
@@ -14,7 +14,7 @@ import { FileTree } from '@astrojs/starlight/components'; | |
|
|
||
| [Firebase](https://firebase.google.com/) is an app development platform that provides a NoSQL database, authentication, realtime subscriptions, functions, and storage. | ||
|
|
||
| See our separate guide for [deploying to Firebase hosting](/en/guides/deploy/google-firebase/). | ||
| See our separate guide for [deploying to Firebase hosting](/en/guides/deploy/firebase/). | ||
|
|
||
| ## Initializing Firebase in Astro | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting that these earlier ones that appear changed is just a matter of using consistent spaces. This PR only introduces two new redirects (at the bottom)