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

Updated README with additional instructions for loading ZIM files and articles #60

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

MohitMaliFtechiz
Copy link
Collaborator

Fixes #50

Changes made in the README:

  • Added a section explaining how to load a ZIM file by creating an Archive object.
  • Clarified the description of the mainPage property, detailing its behavior when dealing with redirects and non-existent entries.
  • Provided code snippets and instructions for loading articles via title and path, including a reminder to properly decode the URL path before passing it to hasEntryByPath.

These changes aim to improve the documentation and assist developers in effectively utilizing the java-kibkiwix library to work with zim files.

@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (4fed04f) 92.38% compared to head (cb3dce7) 92.38%.

❗ Current head cb3dce7 differs from pull request most recent head 190473f. Consider uploading reports for the commit 190473f to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #60   +/-   ##
=========================================
  Coverage     92.38%   92.38%           
  Complexity      213      213           
=========================================
  Files            44       44           
  Lines           289      289           
  Branches          3        3           
=========================================
  Hits            267      267           
  Misses           19       19           
  Partials          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as draft August 2, 2023 13:26
@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as ready for review August 2, 2023 13:29
MohitMaliFtechiz pushed a commit to kiwix/kiwix-android that referenced this pull request Aug 2, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
README.md Show resolved Hide resolved
MohitMaliFtechiz pushed a commit to kiwix/kiwix-android that referenced this pull request Aug 7, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
…articles.

This commit updates the README file to include additional instructions for loading ZIM files and accessing articles in the Kiwix content archive using the `java-libkiwix` library.

Changes made in the README:
- Added a section explaining how to load a ZIM file by creating an `Archive` object.
- Clarified the description of the `mainPage` property, detailing its behavior when dealing with redirects and non-existent entries.
- Provided code snippets and instructions for loading articles via title and path, including a reminder to properly decode the URL path before passing it to `hasEntryByPath`.

These changes aim to improve the documentation and assist developers in effectively utilizing the `java-kibkiwix` library to work with zim files.
@mgautierfr mgautierfr merged commit 74c4aba into main Aug 11, 2023
2 checks passed
@mgautierfr mgautierfr deleted the Issue#50 branch August 11, 2023 09:28
MohitMaliFtechiz pushed a commit to kiwix/kiwix-android that referenced this pull request Aug 17, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
kelson42 pushed a commit to kiwix/kiwix-android that referenced this pull request Aug 27, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
kelson42 pushed a commit to kiwix/kiwix-android that referenced this pull request Aug 28, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
kelson42 pushed a commit to kiwix/kiwix-android that referenced this pull request Aug 29, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
kelson42 pushed a commit to kiwix/kiwix-android that referenced this pull request Aug 31, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
MohitMaliFtechiz pushed a commit to kiwix/kiwix-android that referenced this pull request Sep 5, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
kelson42 pushed a commit to kiwix/kiwix-android that referenced this pull request Sep 18, 2023
* We are previously checking `hasEntryByPath`, `hasEntryByTitle`, `mainEntry.isRedirect` which are internally calling the same function as we are calling after checking this condition so it would be better to directly use those function to avoid calling same function twice see more details kiwix/java-libkiwix#60.
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.

Improve README.md
3 participants