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

Create/publish the user documentation #92

Closed
kelson42 opened this issue Jan 7, 2023 · 14 comments
Closed

Create/publish the user documentation #92

kelson42 opened this issue Jan 7, 2023 · 14 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@kelson42
Copy link
Contributor

kelson42 commented Jan 7, 2023

At this stage this seems necessary to publish a user documentation. Https://Readthedocs.com seems a good candidate.

@kelson42 kelson42 added the documentation Improvements or additions to documentation label Jan 7, 2023
@kelson42
Copy link
Contributor Author

kelson42 commented Jan 7, 2023

Thanks to @benoit74 for reporting the problem

@kelson42 kelson42 changed the title Create the user documentation Create/publish the user documentation Jan 7, 2023
@benoit74
Copy link
Collaborator

I'm not sure that we need to transform existing documentation.
Adding a paragraph on all scrapers README with a link pointing to existing one would be sufficient from my PoV.

@rgaudin
Copy link
Member

rgaudin commented Jan 14, 2023

Probably a good first step

@kelson42
Copy link
Contributor Author

@benoit74 Your link is not the scraperlib documentation. Explaining the goals, the paradigm of the scraperlib and the dev facing API of the scraperlib is the puropose of this ticket.

@rgaudin
Copy link
Member

rgaudin commented Jan 14, 2023

I don't think this is the correct way to address what I believe the underlying issue is.
What we need is a general Make/Contribute-to/ a Scraper documentation. This would fit with the other documents referenced above and would be actually useful while a standalone scraperlib doc won't be of much help to do so.

Sure we could gen the auto-doc off the source code but the value vs just browsing the code on Github would be minimal. Just afraid this would close this ticket without helping onboarding.

@kelson42
Copy link
Contributor Author

kelson42 commented Jan 14, 2023

@rgaudin Not 100% sure I get you right. But I can only disagree with a comment which in a nutshell says "no need to document library API, devs who want to use it should read the code".

For the rest, general (cross repo) documentation can have a place in the "overview" repo. But, how to use the scraperlib does not match this definition IMO.

Lets discuss this in detail at the next meeting.

@stale
Copy link

stale bot commented May 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label May 26, 2023
@kelson42 kelson42 pinned this issue Feb 13, 2024
@stale stale bot removed the stale label Feb 13, 2024
@josephlewis42
Copy link
Contributor

As someone who just created a new scraper, here are my thoughts:

  • It was difficult for me to understand what capabilities existed in the scraperlib versus what I was expected to build.
  • It wasn't clear to me when the documents/code here, the GitHub wiki, or the OpenZim wiki was preferred.

I like automatically updating docs based on current source code e.g. GitHub pages triggered on release/merge because it's a faster way for me to understand the shape/intent of a library without diving into the details.

@rgaudin
Copy link
Member

rgaudin commented Sep 25, 2024

I like automatically updating docs based on current source code

We all do I believe and I think that scraperlib would be a good candidate! Do you want to take a look at it?
I think we mostly need this setup, with the appropriate actions and the pointers to the right docstring convention.

We'd host it at readthedocs I think, as we do for other projects.

I believe libzim uses sphinx but I have also used mkdocs in the past and I find it easy to configure, flexible, readable and good looking. It's an active and popular tool.

Here's a good example of config for it: https://github.com/pawamoy/aria2p/blob/main/mkdocs.yml

@josephlewis42
Copy link
Contributor

@rgaudin sure, this is something I can look at probably in four-ish weeks assuming the issue is still open.

I've got a bit more to do with the DevDocs scraper to improve the UX after the release, once that's done I can scoot over to this assuming no other show-stoppers.

@kelson42 kelson42 added this to the 4.1.0 milestone Sep 25, 2024
@benoit74
Copy link
Collaborator

I've published the documentation at https://python-scraperlib.readthedocs.io/en/latest/

Obviously, only current version is published because it misses the proper mkdocs code / configuration to build doc for former version. I don't think it is worth it / possible to invest time in publishing doc for previous versions. Once a new version is published, it should start to pin these documentation (in addition to "latest" which we already have).

@benoit74
Copy link
Collaborator

Can you please review online website and advise on what is left to do from your PoV?

Aside from fixing docstrings so that everything fits nicely, I don't see much "needed" changes. Probably many things can (and hopefully will) be fine-tuned, but nothing mandatory so far.

@rgaudin
Copy link
Member

rgaudin commented Dec 12, 2024

This is great 🚀
I've looked at it briefly and I think the overall doc is OK. Content is beyond the scope of this and will be improved overtime.

@benoit74
Copy link
Collaborator

I suppose this is enough for now then, since there is no more feedback, let's close this issue as done

@kelson42 kelson42 unpinned this issue Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants