Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@substrate/index-tpl-crud

Package Overview
Dependencies
Maintainers
18
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@substrate/index-tpl-crud

Script to update index.html of Parity projects that publish their rustdocs in github.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
18
Weekly downloads
 
Created
Source

index-tpl-crud

This package used to handle the index.html change for Parity projects that have their versioned rustdocs published in GitHub Pages. An example is Substrate, with the rustdocs deployed at its gh-pages branch.

Help

Usage: index [options] [command]

Options:
  -V, --version                                 output the version number
  -h, --help                                    display help for command

Commands:
  init <ghRepo> <projectName> [outputPath]      initialize an index page
  upsert [options] <inputPath> <ref> [display]  upsert a REF into the index page
  rm [options] <inputPath> <ref>                remove a REF from the index page
  help [command]                                display help for command

Usage

  1. To generate a new index.html, run something like:

    index-tpl-crud init substrate Substrate index.html
    
    • <ghRepo>: Required. This is the name of the repository without the user / organization name. So for Substrate with URL at https://github.com/paritytech/substrate, use substrate.
    • <projectName>: Required. Project name it will display as.
    • [outputPath]: Optional. The output. If unspecified, it will be index.html.
  2. To add a new version of rustdocs, run something like:

    index-tpl-crud upsert -l index.html monthly-2021-10
    
    • -l: Flag. Specified this ref has been aliased as latest as well.
    • <inputPath>: Required. The input file, where it read the html content, update them, and write to also.
    • <ref>: Required. The branch or tag of source where the rustdocs is built from.
    • [display]: Optional. The name of the link. If unspecified, it will use the value of ref.
  3. To remove a version of rustdocs, run something like:

    index-tpl-crud rm index.html monthly-2021-10
    

    parameters similar to upsert sub-command.

FAQs

Package last updated on 24 Jan 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc