Giter VIP home page Giter VIP logo

Comments (7)

xadupre avatar xadupre commented on July 21, 2024 1

See https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html.

from onnxscript.

gramalingam avatar gramalingam commented on July 21, 2024

We use sphinx for document-generation. We need to pick something that will be compatible with that. Why not reST? I am not familiar with this aspect, @xadupre would know better ... any comments @xadupre ?

from onnxscript.

xadupre avatar xadupre commented on July 21, 2024

docconvert seems to change the style to follow numpy, google, epydoc, rest. There should be a sphinx extension to process all of them after they are converted. numpy style is used by scikit-learn and is usually easier to read than rest. Just avoid epydoc, it is using javadoc style.

from onnxscript.

justinchuby avatar justinchuby commented on July 21, 2024

sphinx supports google style docs. PyTorch uses it combined with reST style references with sphinx and it functions nicely. We can probably learn from how they do it.

I think google style is easier to read and write since it is less verbose (no :param xxx:) and with clearer indentation. (reST praram and return sections are all lumped together)

from onnxscript.

gramalingam avatar gramalingam commented on July 21, 2024

Sounds good, thanks!

from onnxscript.

justinchuby avatar justinchuby commented on July 21, 2024

Doc pages can be written with markdown using myst https://myst-parser.readthedocs.io/en/latest/

from onnxscript.

justinchuby avatar justinchuby commented on July 21, 2024

Looks like we have sphinx.ext.napoleon already. So we should be safe.

from onnxscript.

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.