Skip to content

Auto-generate command instructions for README.md #181

Description

@ace-n

Once all our samples are converted to use yargs (or some other arg-parsing library that auto-generates command-line usage instructions), we should consider having a script insert those instructions into our Markdown documentation automatically (instead of manually cutting-and-pasting things).

Thoughts?

Activity

  1. jmdobry commented on Aug 19, 2016

    @jmdobry
    Member

    Things the script needs to know, per product:

    • Product name
    • Product description
    • Setup section
      • Link to any general prerequisites and general "how to run a sample" instructions
      • Extra steps, either defined directly in metadata, or metadata points to a markdown file to be included
    • Samples section
      • Title of sample
      • Links to where it's used in the documentation
      • Links to source code
      • Instructions on how to run it
        • Defined instructions in metadata
        • Specify markdown to be included
        • Specify command to be executed, using the resulting stdout as the instructions

    Put metadata in .samples.json file in sample directory. To generate README in that directory, run the script in that directory.

  2. jmdobry commented on Aug 21, 2017

    @jmdobry
    Member

    Done.

  3. added a commit that references this issue on Nov 16, 2022
  4. added a commit that references this issue on Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions