Skip to content

Commit

Permalink
Add Terraform/Move icon, Make the <Tab /> component be crawlable an…
Browse files Browse the repository at this point in the history
…d indexable by search engines by default (#2829)

* add

* Make the `<Tab />` component be crawlable and indexable by search engines by default
  • Loading branch information
Dimitri POSTOLOV committed Apr 6, 2024
1 parent 91d60a1 commit 6ec3241
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 84 deletions.
7 changes: 7 additions & 0 deletions .changeset/funny-dancers-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'nextra-theme-blog': minor
'nextra-theme-docs': minor
'nextra': minor
---

Add Terraform/Move icon https://github.com/shuding/nextra/pull/2811 https://github.com/shuding/nextra/pull/2808
7 changes: 7 additions & 0 deletions .changeset/long-dragons-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'nextra-theme-blog': minor
'nextra-theme-docs': minor
'nextra': minor
---

Make the `<Tab />` component be crawlable and indexable by search engines by default
1 change: 1 addition & 0 deletions examples/swr-site/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
6 changes: 4 additions & 2 deletions packages/nextra/src/client/components/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ function _Tabs({

function Tab({
children,
// For SEO display all the Panel in the DOM and set `display: none;` for those that are not selected
unmount = false,
...props
}: ComponentProps<typeof HeadlessTab.Panel>): ReactElement {
}: Omit<ComponentProps<typeof HeadlessTab.Panel>, 'static'>): ReactElement {
return (
<HeadlessTab.Panel {...props} className="_rounded _pt-6">
<HeadlessTab.Panel {...props} unmount={unmount} className="_rounded _pt-6">
{children}
</HeadlessTab.Panel>
)
Expand Down
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/c++.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/csharp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/css.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/graphql.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/javascript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/markdown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/mdx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 8 additions & 6 deletions packages/nextra/src/client/icons/move.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions packages/nextra/src/client/icons/python.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6ec3241

Please sign in to comment.