Skip to content
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

Search is not showing header results #2963

Closed
resting opened this issue Jul 5, 2024 · 2 comments
Closed

Search is not showing header results #2963

resting opened this issue Jul 5, 2024 · 2 comments

Comments

@resting
Copy link

resting commented Jul 5, 2024

Tried to search for text prefixed with # or ## but they don't appear.

Is this something due to configuration or a limitation in the search engine?

next.config.js

const withNextra = require('nextra')({
  theme: 'nextra-theme-docs',
  themeConfig: './theme.config.tsx',
})

const nextConfig = {
  output: 'export',
  images: {
    unoptimized: true
  }
}

module.exports = withNextra(nextConfig)

theme.config.tsx

export default {
  logo: <span>MyDocs</span>,
  project: {
    link: 'https://example.com',
  },
  // ... other theme options
};
@kyu-sketchsoft
Copy link

If you run In local development mode (e.g.npm dev), each page is built when you enter the page. Therefore, if the issue persists after building(npm build or yarn build whatever) and running with npm start or yarn start, please report the issue again.

@dimaMachina
Copy link
Collaborator

Fixed in Nextra 4 which was released with new search https://the-guild.dev/blog/nextra-4#new-search-engine--pagefind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants