Skip to content

Setup documentation #13

Open
Open

Description

@victorgarcia98

In order to boost the adoption of this package, I suggest adding documentation.

In the past, I worked on the setup of a SPHINX documentation in TOX:

https://github.com/victorgarcia98/s2-ws-json-python/tree/main

And got it published in ReadTheDocs:

https://s2-ws-json-python.readthedocs.io/en/latest/_autosummary/s2wsjson.common.timer.html#module-s2wsjson.common.timer

Activity

  1. sebastiaan-la-fleur commented on Aug 9, 2023

    @sebastiaan-la-fleur
    Member

    We should definitely generate some type of documentation. An idea I have is to reuse the documentation provided to pydantic. For example: f255934#diff-1402cdc5485e1b35c6fc47f25e172db57b4cfc4fab64fb6a2668ccdd1171f0f3R67

    Every field currently already has a bunch of docs and it would be great if we could utilize them. How that exactly could work, I am unsure. I already checked pydantic and it does not seem to have a docs generator or something similar. Perhaps it does have it but I overlooked it.

    Btw, what did you write the RST in your example? I saw docs for the json() and dict() functions but I cannot find the definitions.

  2. victorgarcia98 commented on Aug 10, 2023

    @victorgarcia98
    CollaboratorAuthor

    We should definitely generate some type of documentation. An idea I have is to reuse the documentation provided to pydantic. For example: f255934#diff-1402cdc5485e1b35c6fc47f25e172db57b4cfc4fab64fb6a2668ccdd1171f0f3R67

    Good point!

    After a quick search, I found this sphinx package that could be useful, I'll try to test it 😄

    Btw, what did you write the RST in your example? I saw docs for the json() and dict() functions but I cannot find the definitions.

    I think it's also showing the docs of the inherited methods, in this case, from the ValidateValusMixin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions