Code Monkey home page Code Monkey logo

Comments (5)

PaulWay avatar PaulWay commented on June 1, 2024

Something a bit more similar to the current format would be:

{{ for each class in the module:}}
{{parser class name} - {{ file or command }}
------------------------------------------
.. autoclass:: insights.parsers.{{module}}.{{parser class name}}
   :members:
   :show-inheritance:
{{ endfor }}

Would that be OK @bfahr ?

from insights-core.

PaulWay avatar PaulWay commented on June 1, 2024

@bfahr in looking at this - does this mean we end up moving the file documentation out of the parser's main docstring and into the .rst file? That'd be a step backward to me - I'd like to keep as much documentation as possible in the parser module. I'll continue to experiment but any advice you have will be invaluable here :-)

from insights-core.

PaulWay avatar PaulWay commented on June 1, 2024

The key thing I want to aim for in this is that every parser module lists every parser class it provides, in a format that makes it easy for a rule writer to find the parser they need based on the file they want to read.

I'd also like consistency - i.e. that every module listing looks the same, regardless of whether it has one or six parsers in it.

I'm prepared for the .rst file to require more management as a result, but OTOH I would really like to keep the automatic functionality and single place for documentation changes that we currently have.

from insights-core.

bfahr avatar bfahr commented on June 1, 2024

@PaulWay I agree that we don't want have have the docs in both the code and the .rst file. The .rst file should just be the map for building the doc, and not the doc itself. Otherwise we've got a disconnect and have to maintain it in two places.

Its a bit hard to visualize, I think it might be easier to discuss if it was mocked up.

from insights-core.

miclark avatar miclark commented on June 1, 2024

Closing due to age. We can revisit with a larger conversation about style of the catalog at a future date.

from insights-core.

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.