Giter Site home page Giter Site logo

Comments (21)

zykh avatar zykh commented on May 12, 2024

#94 (comment)

ddl repo

We may want to split things down to Manufacturer/Model_Families/Models:
https://github.com/zykh/nut-ddl-raw

pages

When we build the website, we could (easily) build asciidoc files starting from .dev files so that we can generate something like this:
https://github.com/zykh/nut-ddl

from nut.

zykh avatar zykh commented on May 12, 2024

I forgot, what we may want to do with HCL:
https://github.com/zykh/nut-ddl/blob/master/hcl.adoc

from nut.

aquette avatar aquette commented on May 12, 2024

@zykh: perfect!
the driver manpage link is something I want to have for years.

from nut.

zykh avatar zykh commented on May 12, 2024

I started working on the DDL generation:
https://github.com/zykh/nut-website/tree/ddl

output (~6m): https://drive.google.com/file/d/0BxWv_9cok7BKVDA0RlQxUTVBOWs/edit?usp=sharing

It supports both old .dev/.seq files and the proof-of-concept .nds (NUT Device Simulation not Nintendo DS roms) ones.

See output's:

  • ddl/index.html
  • stable-hcl.html
  • ddl/Manufacturer_Name/index.html
  • ddl/Manufacturer_Name/Actual_Model.html (from .nds file)
  • ddl/Eaton/index.html
  • ddl/Eaton/Powerware_9130.html (from .dev file)
  • ...

thoughts?

from nut.

zykh avatar zykh commented on May 12, 2024

Added some devices dumps and updated ddl generation.
Same links as before:

Thoughts? Rants?

from nut.

clepple avatar clepple commented on May 12, 2024

Overall, looks nice. (I defer to @aquette for any potential deployment issues, since he manages the website.)

A few minor notes:

  • the default font size makes the italic text hard to read (for the variable names).
  • on the same topic, a table that matches the developer guide's list of variables (perhaps without borders) would align the values.
  • Since some of the dumps are from old mailing list posts, we might want to have a mapping of old device names to their replacements. newhidups is the predecessor to usbhid-ups (ddl/MGE_UPS_SYSTEMS/Evolution_650.html), and eventually we might want to suggest that megatec and blazer_* upgrade to nutdrv_qx. ("This device may also work with driver XYZ...")
  • Should we have a way to flag bad values? If the mailing list discussion mentions that certain values are not correctly reported, this might be a good place to indicate that. Maybe a specially-formatted end-of-line comment? e.g. #BAD: this value is too large by a factor of 10

Thank you for all of your work collecting this information! I should probably contribute a few myself.

from nut.

zykh avatar zykh commented on May 12, 2024

Thanks for your feedback, Charles.

However, note that:

  • using tables:
    • since asciidoc style (= a new call to asciidoc per cell) is required in RW/comments cells, it'll take some time more to produce the output;
    • we can't use tables with the same delimiter as the outer one (at the moment !) in comments and only one level of nested tables (using |)
  • using horizontal labeled lists:
    • we can't use nested labeled lists in comments with the same delimiter (at the moment ;;), so are supported only labeled lists using the other ones (2-4 colons)

Note that, at the moment, although dummy-ups, relying on parseconf, simply ignores everything after a hash, there's no support in ddl generation for in-line comments since it would be hard to discern between vars value and comments, e.g.:

var.name.1: the UPS reports a #value# full of ###hashes # believe it or not, everything before the last hash is the actual value of the var
var.name.2: 123 # while this is a comment

This is not the case with a specific text like #BAD - just pointing it out.

Having said that, wouldn't it be a little redundant with var comments to support also text after #BAD?
We could use it just as an in-line flag so that we can add an attribute to that var's value:

var.name.1: bad value #BAD
var.name.2: another bad value#BAD

to asciidoc:

- *var.name.1*: [bad-value]+pass:specialcharacters[bad value ]+
- *var.name.2*: [bad-value]+pass:specialcharacters[another bad value ]+

that will add the bad-value class to the text and then we can style it to stand out (border/outline/background/...), e.g.:

span.bad-value {
    outline: red dashed .2em;
}

from nut.

aquette avatar aquette commented on May 12, 2024

Hi Daniele

very briefly...

2014-04-08 0:53 GMT+02:00 Daniele Pezzini [email protected]:

Thanks for your feedback, Charles.

moved from em to strong; added old->new/suggested drivers links:
- https://github.com/zykh/nut-website/tree/ddl
- output (~7m):
https://drive.google.com/file/d/0BxWv_9cok7BKVDA0RlQxUTVBOWs/edit?usp=sharing
-

here's a version with tables:
- https://github.com/zykh/nut-website/tree/ddl-table
- output (~7m):
https://drive.google.com/file/d/0BxWv_9cok7BKM2c3R1JkXzNkNHc/edit?usp=sharing
-

if we don't care about row borders, we can use instead a horizontal
labeled list to align the values:
- https://github.com/zykh/nut-website/tree/ddl-hll
- output (~7m):
https://drive.google.com/file/d/0BxWv_9cok7BKdS1vLWFldmJtam8/edit?usp=sharing

However, note that:

using tables:
- since asciidoc style (= a new call to asciidoc per cell) is
required in RW/comments cells, it'll take some time more to produce the
output;
- we can't use tables with the same delimiter as the outer one (at
the moment !) in comments and only one level of nested tables
(using |)
-

using horizontal labeled lists:
- we can't use nested labeled lists in comments with the same
delimiter (at the moment ;;), so are supported only labeled lists
using the other ones (2-4 colons)

great!
I'm more for horizontal labeled list

thanks and cheers,
arno

from nut.

zykh avatar zykh commented on May 12, 2024

added #BAD and #COMMENT end-of-line comments to the horizontal labeled list one:
https://github.com/zykh/nut-website/tree/ddl-hll
output (~7m): https://drive.google.com/file/d/0BxWv_9cok7BKdS1vLWFldmJtam8/edit?usp=sharing

from nut.

clepple avatar clepple commented on May 12, 2024

@zykh nice! I still haven't gotten the Buildbot setup to automatically build this, but here is the latest revision: http://buildbot.networkupstools.org/~buildbot/cayman/docs/rdd3e89f08c4cd38b944921fad9789e537d21a889-27/ddl/

from nut.

aquette avatar aquette commented on May 12, 2024

@zykh : very nice! Please go ahead and merge. I'm considering 2.7.3 for very soon. thx!

from nut.

zykh avatar zykh commented on May 12, 2024

Rebased and with the ddl git module pointing to https://github.com/networkupstools/ddl : https://github.com/zykh/nut-website/tree/ddl_rebased

https://github.com/zykh/nut-ddl-raw should be transferred to https://github.com/networkupstools/ and renamed to ddl (if this is ok for you).
Apparently GitHub needs me to have admin rights to transfer it to the organization: can you create a temporary team with admin rights and add me to it?

from nut.

aquette avatar aquette commented on May 12, 2024

@zykh: I've temporarily added you to the Owners team, so that you can proceed in moving zykh/nut-ddl-raw to networkupstools/nut-ddl.
Please ping me back when it's done.
I'm also in favor of 'nut-ddl' instead of simply 'ddl', for a better coherence with the other repos.
thanks for all your work Dan!

from nut.

zykh avatar zykh commented on May 12, 2024

@aquette, done and updated nut-website repo

from nut.

clepple avatar clepple commented on May 12, 2024

Looks good. Here's the BuildBot output: http://buildbot.networkupstools.org/~buildbot/cayman/docs/r6533a9f354006f702398bcd0cce2a0bf3f80881f-31/ddl/

from nut.

aquette avatar aquette commented on May 12, 2024

code repository moved to https://github.com/networkupstools/nut-ddl

from nut.

clepple avatar clepple commented on May 12, 2024

@aquette, this is the last issue on our list before releasing 2.7.3. Anything else we need to do here? Should we split any features off into separate issues?

from nut.

aquette avatar aquette commented on May 12, 2024

@clepple: everything seems good. I've merged the other remaining PR for 2.7.3.
We can proceed to releasing 2.7.3. Anything else will wait for the next point release (2.7.4)

from nut.

aquette avatar aquette commented on May 12, 2024

I think this ticket is good to be closed.
@clepple and @zykh : anything I missed?

from nut.

clepple avatar clepple commented on May 12, 2024

Looks good to me. Since we have some old URLs at the beginning of this ticket, it should be mentioned that the final location is http://networkupstools.org/ddl/

from nut.

aquette avatar aquette commented on May 12, 2024

@cleppe: thanks ;) I've updated the description to list the final locations, for both the website and the github repository. Now closing the ticket

from nut.

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.