-
Notifications
You must be signed in to change notification settings - Fork 0
Adding client search #190
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
Adding client search #190
Conversation
|
Possible things still to do (needs discussion)
discussion here: #123 |
|
@justinbmeyer There is still one issue with this. The search result links are currently using a That When The problem is that when a page is loaded from a "sub-directory" from the output directory (for example, One way to resolve this, potentially, would be to simply store the outputDirectory (maybe named differently), in this case I'm not able to focus on this at the moment, but if you have a quick fix, I'd be happy to implement it within this PR. Otherwise, I'd say let's merge this PR and create an issue for the url issue in the search. |
|
Unless I'm missing something, we shouldn't merge this if its not going to work on any nested page. The fix is to use steal.joinURI or I think can-until has something similar Sent from my iPhone
|
|
We should remove
Can't we use http://v3.canjs.com/doc/can-util/js/join-uris/join-uris.html window.location.href //-> http://localhost/apps/canjs/doc/can-util/js/join-uris/join-uris.html
currentDocObject.htmlPath //-> "can-util/js/join-uris/join-uris.html"
docObject.pathToRoot //-> "../../../.."
docObject.docConfig.dest //-> "./docs"
searchResult.htmlPath //-> "can-connect/something.html"
var root = joinURIs(window.location.href, docObject.pathToRoot);
root //-> "http://localhost/apps/canjs/"
var dest = joinURIs(root, docObject.docConfig.dest );
dest //-> "http://localhost/apps/canjs/docs"
var newURL = joinURIs( dest, searchResult.dest || searchResult.htmlPath )
newURL //-> "http://localhost/apps/canjs/can-connect/something.html"window.location.href //-> http://localhost/bit-docs-html-canjs/temp/can-util/js/join-uris/join-uris.html
currentDocObject.htmlPath //-> "can-util/js/join-uris/join-uris.html"
docObject.pathToRoot //-> "../../../.."
docObject.docConfig.dest //-> "./temp"
searchResult.htmlPath //-> "can-connect/something.html"
var root = joinURIs(window.location.href, docObject.pathToRoot);
root //-> "http://localhost/bit-docs-html-canjs"
var dest = joinURIs(root, docObject.docConfig.dest );
dest //-> "http://localhost/bit-docs-html-canjs/temp"
var newURL = joinURIs( dest, searchResult.dest || searchResult.htmlPath )
newURL //-> "http://localhost/bit-docs-html-canjs/temp/can-connect/something.html" |
|
Looks like this has been updated. Can you rebase with master? |
5ea069b to
7cf849a
Compare
…torage | some organizational refactors | minor ux tweaks
|
LGTM |

This Depends on:
Clean up the description in searchMap bit-docs/bit-docs-generate-html#9#29 create docmap hash file bit-docs/bit-docs-generate-html#30#32 - remove search related stuff bit-docs/bit-docs-generate-html#33