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

From html files? #1

Closed
albertosantini opened this issue Mar 28, 2015 · 5 comments
Closed

From html files? #1

albertosantini opened this issue Mar 28, 2015 · 5 comments

Comments

@albertosantini
Copy link

What about generating the index also from the html files?

@jediq-ricky
Copy link
Collaborator

Hi Alberto

Thanks for the suggestion.

I haven't yet generated the index from HTML as the parsing of the markdown file is very rudimentary, parsing and extracting header tags from html would be a lot more involved.

@albertosantini
Copy link
Author

Agreed.

I review my use case tomorrow and I report you a feedback, closing the issue or suggesting further steps.

@albertosantini
Copy link
Author

Thanks for html support.

I tested Added support for html file sources and it works nice.

My use case is generating docs from markdown embedded in js with docco and creating a full text search index with lunr.

        lunr_index_generator: {
            web_docs: {
                src: ["web_docs/*.html"],
                dest: "web_docs/search_data.json"
            }
        }

(Don't forget to push a new release to npm) :)

@jediq-ricky
Copy link
Collaborator

Thanks Alberto, version 0.1.3 is now available in npm.

@julkue
Copy link

julkue commented Jan 19, 2016

I don't think the HTML index generation was implemented correctly. I have a 39 KB HTML file and it will generate a 255 KB lunr.json compressed. Uncompressed it's 3906 KB 🐙
An HTML <ul> menu with a depth of e.g. 10 sub-menus will cause an nearby endless tree generated...

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