question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create Search Page

See original GitHub issue

I’m trying to create a search page as described here: https://stackoverflow.com/questions/63106842/how-do-i-implement-a-search-page-on-a-mkdocs-site

My expectation was that I could do this with:

theme:
  name: material
  include_search_page: true

However this throws:

WARNING -  Template skipped: 'search.html' not found in theme directories.

I’m looking to achieve the ability to search via url params similar to this example: http://readthedocs.sheets.ch/search?q=test

My yaml file is here: https://github.com/sasjs/sasjs.io/blob/master/mkdocs.yml

I checked that…

  • [ x] … the documentation does not mention anything about my problem
  • [ x] … the problem doesn’t occur with the default MkDocs template
  • [ x] … the problem is not in any of my customizations (CSS, JS, template)
  • [ x] … there are no open or closed issues that are related to my problem

Expected behavior

setting include_search_page: true would give me a SITENAME/search page that will accept url params.

Actual behavior

error in console, no search.html generated

Package versions

  • Python: 3.8
  • MkDocs: 1.1.2
  • Material: 5.5.0

Project configuration

theme:
  name: material
  include_search_page: true

System information

OS: mac

Browser - any

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
squidfunkcommented, Dec 20, 2020

Insiders supports deep linking of search results, which should make a dedicated search.html obsolete, i.e., display all results related to the search query "code block". This means you can also link from your documentation.

1reaction
squidfunkcommented, Sep 28, 2020

Thanks for your input on this. Yes, we can consider adding a dedicated search page to Insiders if more people need it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Create Search Service Application in SharePoint ...
SharePoint 2019 Search Service Application is showing Error and the service is not getting started,. Error:- The Search Service is not able ......
Read more >
Solved: Display error :Could not create search - Splunk Answers
"Could not create search" is caused by timeout, and it may have causes on both server and client side. On client-side, this may...
Read more >
Why is my page missing from Google Search?
Here's how to troubleshoot and fix the most common problems when your page or site is missing from Google Search results. Did you...
Read more >
"Failed to create search index" script error during reload
Insert "Set CreateSearchIndexOnReload=0" in the load script. Even if this is disabled during the reload, the search index will be created later ...
Read more >
trouble creating new pages on Project:Support desk - MediaWiki
I get that page when I use the search function to create the page, ... I'm able to create new pages, but I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found