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

Offline wikipedia webviews? #23

Open
kylebarron opened this issue Nov 24, 2019 · 2 comments
Open

Offline wikipedia webviews? #23

kylebarron opened this issue Nov 24, 2019 · 2 comments

Comments

@kylebarron
Copy link
Member

In nst-guide/create-database, I can use Wikipedia's geosearch API to find Wikipedia articles for places near the trail. I can get the images and full HTML of the page and cache it. I can then package wikipedia articles to be read offline in a webview.

https://stackoverflow.com/questions/42851296/react-native-load-local-html-file-into-webview

Just use a little CSS too.

@kylebarron
Copy link
Member Author

kylebarron commented Nov 24, 2019

It looks like this is the standard css that wikipedia uses:
https://en.wikipedia.org/wiki/MediaWiki:Common.css

Also see: https://en.wikipedia.org/wiki/Help:Cascading_Style_Sheets#Site-wide_style-sheets

@kylebarron
Copy link
Member Author

The code to create this in nst-guide/data is pretty much done. Just supply the HTML attribute on the command line

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

1 participant