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

added fullpath option #34

Conversation

polluterofminds
Copy link
Contributor

This PR introduces the option to return the full file path for a parsed piece of content. By adding the fullpath option to the configuration and setting it to true, the results metadata will include a fullpath property.

This change was inspired by work I did using this library to implement documentation search. In order to make the results clickable, we needed the full path for the file. I hacked together a solution for that project, but felt like this change might benefit others using this library.

Added a test to support this new functionality as well.

@scottstanfield scottstanfield merged commit b1eb770 into scottstanfield:master Jan 26, 2024
scottstanfield added a commit that referenced this pull request Jan 26, 2024
Included community PR #34 and lots of dependabot. Tested with node
v21.6.1.
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

Successfully merging this pull request may close these issues.

2 participants