Giter Club home page Giter Club logo

Comments (10)

pkkid avatar pkkid commented on May 5, 2024 1

This is getting there (slowly). I'll be out of town this weekend, but expect to finish reviewing and adding to everything next week at which time we can look into publishing to Read The Docs. After this is done, I'd love to look into the new test suite and get that running cleaning on TravisCI. @Hellowlol, you did an amazing first pass on this, thanks so much!

A few guidelines I was following to make it a bit easier.

  • No need to document dunder functions (__init__, __repr__, etc).
  • No need to over-document private methods (_functions).

Completed: Audio, Client, Config, Exceptions, Library, MyPlex, Utils
Remaining: Media, Photo, Playlist, Playqueue, Server, Sync, Video

BTW: You can see documentation now if you install sphinx, goto the docs folder and run "make html".

pip3 install sphinx, sphinx-autobuild, sphinx-rtd-theme, sphinxcontrib-napoleon
cd <python-plexapi>/docs
make html

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024 1

Closing this one. There is still some work to do for docs, but we're well on our way and its part of the build system now!

http://python-plexapi.readthedocs.io/en/latest/?badge=latest

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

Unfortunately, not yet. I never had the time to put into better docs. :(

from python-plexapi.

bonedaddy avatar bonedaddy commented on May 5, 2024

No worries, that's understandable as it would require a significant portion of time to do so.

Thanks for the response

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

A lot of work was already put in by @Hellowlol for this. I also started another branch to take that work and format it for Sphinx documentation after which we'll get this up on ReadTheDocs. I suspect this will take a few weeks to fully clean things up.

from python-plexapi.

Hellowlol avatar Hellowlol commented on May 5, 2024

Can't we use the extension Napoleon with spinx? I choose google docs style since that is the most human readable.

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

Of course, I was hoping you would chime in. I never used Spinx before, don't know much about it or the best approach.

from python-plexapi.

Hellowlol avatar Hellowlol commented on May 5, 2024

Afraid i dont know anything about it. Never used it but im sure we can figure it out.

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

We should use Napoleon to parse the google docstyle to rst to it passes this to sphinx before building docs. I choose google docs style because imo its the most readable docstring type. Changing this to rst manually would make the docs harder to read and would be a huge task.

extensions = ['sphinx.ext.autodoc', 'sphinxcontrib.napoleon']

See http://sphinxcontrib-napoleon.readthedocs.io/en/latest/

from python-plexapi.

Hellowlol avatar Hellowlol commented on May 5, 2024

Awesome stuff. How are you solving this?. Are you editing adding the classes manually.? Or using some kind of tool? . I don't know why i didn't add proper classes in the first go. Anyway thank you so much.

from python-plexapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.