Parse subtittles
Closes #3
How to test
- Follow the
README.md
instructions on how to setup the project for development - After the server is running (
flask run
) runpython src/main.py "PATH_TO_YOUR_CONTENT"
wherePATH_TO_YOUR_CONTENT
is the cache folder created with thedocker run --rm --volume="$PWD/htdocs:/srv/jekyll" -p 4000:4000 -p 35729:35729 -it jekyll/jekyll:4.2.0 jekyll serve --profile --incremental --livereload
of the user docs. - After the content was indexed, go to http://localhost:5000/en/search/lost%20my%20phone (This is the "lost my phone" query)
Assert that
- The page with the url
/support-topics/services.html
is the first result - That similar queries also find that page
⚠ Notes
Some queries will not find the correct page as desired by the user. Our current documentation was not designed to be searchable, i.e. with SEO in mind.
This MR reduces the gap of the expectation of the results that we as human wanted vs the actual result, but this MR do not eliminate the gap.
Edited by Israel Yago Pereira