Comments (5)
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.
@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.
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.
@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.
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)
- The store_skips argument of run_input_data has no effect HOT 1
- False positive of checking if a service is enabled when systemctl_list-unit-files is not collected and chkconfig_--list is collected
- Cannot load "version_info" when the collecting egg version is old like 3.0.246 HOT 1
- The base class "FileListing" of all parsers for "ls -xxx" specs raise error when parsing the output of "ls -lZ /dev"
- Duplicate "filters" to Specs.spec_name and DefaultSpecs.spec_name in "filters.yaml"
- Amount of TypeError be thrown during insights.parsers.ethtool.Ring paring
- Amount of ValueError be thrown for insights.specs.Specs.ls_laZ
- Whole content of "fitlerable=True" specs will be collected when no filters are added.
- Duplicate collection for "/etc/dirsrv/*/dse.ldif" files
- Basic example in Readme.rst not working for me (same with Diagnostic Walkthrough instructions) HOT 2
- Fix Improper Method Call: Return NotImplemented
- A bug about spec "modinfo_filtered_modules"
- Mount options can contain quoted values with embedded commas
- The content format of "/etc/crypto-policies/back-ends/opensshserver.config" is different on RHEL9
- Command Collection Error: `mdadm -D /dev/md*`
- AllKrb5Conf is missing the 'includedir' configured under /etc/krb5.conf.d/
- Special input lines of `Sepcs.ps_eo` HOT 1
- Redation causes false positive
- "filterable" specs in insights-archive are not filtered
- nginx: empty string is not allowed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from insights-core.