Comments (6)
Currently, there is a workaround for you, set indexPages: true
in plugin options, and then the docs will be parsed as ad-hoc pages. However, It has some minor regression for the search index, such as headings are not distinguished with content.
I'll dig it deeper for a better solution when i have time.
from docusaurus-search-local.
I tried setting indexPages: true
before based on the theory that it'd work as you described, but unfortunately I still didn't get any search results from docs.
Thanks for investigating a better solution!
from docusaurus-search-local.
Hi @Lulech23 , I just tried and indexPages: true
seems work with docs: { routeBasePath: "/" }
. See my testing site: https://weareoutman.github.io/my-docs-only-website/ .
Make sure you're using the latest version of this plugin.
from docusaurus-search-local.
I have the similar problem. My docusaurus site is set to blog-only mode, which blog posts are under root path. The blogs are not indexed by the plugin, but if I set indexPages
to true
, blogs are indexed, but all the tags pages are indexed too, and I don't want them. Any solutions for this?
from docusaurus-search-local.
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
...
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
docsRouteBasePath: ['/'],
indexBlog: false,
},
],
],
Did anyone make it work to get indexed docs
dir with routeBasePath = /
?
from docusaurus-search-local.
try "@easyops-cn/docusaurus-search-local": "^0.19.1"
from docusaurus-search-local.
Related Issues (20)
- removeDefaultStemmer option does not seems to work HOT 4
- ع
- Error: Cannot mix different versions of joi schemas with Docusaurus 2.4.1 HOT 3
- pages index HOT 3
- Issues rebuilding site after modifying default docusaurus.config.js file HOT 2
- Building index in the development environment HOT 2
- Index url
- (excluding results) Excluding results isn't working HOT 1
- Error: ENOENT: no such file or directory, open 'xxx\build\docs\v1\search-index-docs.json HOT 3
- Help about Intersecting searchContextByPaths HOT 1
- Invalid search result url with docusaurus 3.4.0 HOT 8
- Conditional search HOT 4
- No search results in localsearch. The search animation is on loop. HOT 3
- Search By Keywords matches multiple keywords as a single string HOT 1
- Duplicate URLs for search results HOT 2
- Going to search results on headings seems to add the path twice HOT 1
- Issues with RTL languages HOT 7
- Contextual results are missing their context description HOT 3
- Insufficient contrast on highlighted suggestion HOT 5
- Customize search bar board colour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusaurus-search-local.