Socket
Socket
Sign inDemoInstall

@tdalabs/grpc-docs

Package Overview
Dependencies
235
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tdalabs/grpc-docs

Command line utility to launch or debug Google's Extensible Service Proxy


Version published
Weekly downloads
1
Maintainers
4
Created
Weekly downloads
 

Readme

Source

grpc-docs

Auto-generator for markdown documentation

Usage:

$ npm install --save-dev @vroomlabs/grpc-docs
./node_modules/.bin/grpc-docs

Scripts:

package.json script:

"scripts": {
    "doc": "grpc-docs"
}

Requirements:

If you are not already using gsdk-deploy, create the following deploy.yaml file in the root of your project.

# =============================================================================
# = Deployment configuration
# =============================================================================
dev:
  name: "search"
  host: "search-dev.catalog.com"
  google-project: "my-google-project-id"
  endpointFormat: ""
  env: []
# =============================================================================
prod:
  extends: dev
  google-project: "my-google-project-id"
  host: "search.catalog.com"
# =============================================================================

Changing Default Paths:

Modify package.json to include any or all of the following:

"grpc-docs": {
    "source": "./config/;./src/;"   // search path for all source files, default = /src;/config
    "deploy": "./deploy.yaml",      // where to find the above deploy.yaml file
    "docker": "./Dockerfile",       // where to find the associated docker file for run/env info
    "proto":  "./proto/",           // where to find proto files (if any)
    "output": "./README.md"         // where to write the output documentation file
}

Customizing Output:

Currently there is only one thing that can be manually written and automatically injected into the output, examples. Create a file named "examples.js" anywhere in the source search path. Export each example as a function from that source file.

examples.js

/**
 * A simple example method exists inside a file named "examples.js"
 * @param {string} text - A parameter we use in this example
 */
function exampleMethodName(text) {
    // do something.
}

Keywords

FAQs

Last updated on 26 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc