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

@techdocs/cli

Package Overview
Dependencies
Maintainers
6
Versions
1228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techdocs/cli

CLI for running TechDocs locally.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31K
decreased by-4.21%
Maintainers
6
Weekly downloads
 
Created
Source

TechDocs CLI

Check out the TechDocs README to learn more.

WIP: This cli is a work in progress. It is not ready for use yet. Follow our progress on the Backstage Discord under #docs-like-code or on our GitHub Milestone.

Prerequisities

Install the techdocs-cli:

npm install -g @techdocs/cli

Run TechDocs CLI

In this example we'll show you how to build the example docs shipped with techdocs-container.

# In this example we'll use a 'projects' folder in your home directory to check out backstage, but feel free to pick whatever folder you prefer.
cd ~/projects

git clone https://github.com/backstage/techdocs-container.git

cd ~/projects/techdocs-container/mock-docs

# To get a view of your docs in Backstage, use:
npx techdocs-cli serve

# To view the raw mkdocs site (without Backstage), use:
npx techdocs-cli serve:mkdocs

If you run npx techdocs-cli serve you should have a localhost:3000 serving TechDocs in Backstage, as well as localhost:8000 serving Mkdocs (which won't open up and be exposed to the user).

If running npx techdocs-cli serve:mkdocs you will have localhost:8000 exposed, serving Mkdocs.

Happy hacking!

Deploying a new version

Deploying the Node packages to NPM happens automatically on merge to main through GitHub Actions. The package is published to @techdocs/cli in NPM. Just bump the version number in the package.json file and create a pull request. It will deploy when merged.

Keywords

FAQs

Package last updated on 04 Nov 2020

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