npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

docusaurus-protobuffet-init

v0.3.0

Published

Create Docusaurus projects with Protobuffet preset enabled

Downloads

20

Readme

Docusaurus Project Generator with Protobuffet Preset

Visit the landing page for Protobuffet documentation.

Executable project generator based on @docusaurus/init. This generator enhances the common template by also initializing the docusaurus-protobuffet preset with recommended options and sample fixtures.

See docusaurus-protobuffet for details on this preset.

See Docusaurus docs for details on the common template.

Usage

The package creates Docusaurus projects with the docusaurus-protobuffet preset initialized. If you have an existing Docusaurus project where you would like to install docusaurus-protobuffet, this package is not necessary.

Note: These commands should be run from your root directory where you would like the site to be created.

Run the generator. This will create a directory for your site with the generated files. You must specify the project_name variable.

npx docusaurus-protobuffet-init init <project_name>

Start the development server to view the sample fixtures. See the configuration section for steps on introducing your own Protobuf workspace file.

cd <project_name>
npm run start

Proto doc files were generated for the sample fixture during project initialization. These will need to be generated whenever the fileDescriptorsPath file (defaulted to ./fixtures/proto_workspace.json) is updated. Read docusaurus-protobuffet CLI documentation for details.

npx docusaurus generate-proto-docs

Since this is a normal Docusaurus project, you can follow their documentation for deployments and other details.

Configuration

The default setup configures fileDescriptorsPath to ./fixtures/proto_workspace.json. You can override this with your own Protobuf workspace file or update the options passed to docusaurus-protobuffet within your docusaurus.config.js file. Please see docusaurus-protobuffet documentation for details.

The navbar configuration within docusaurus.config.js points to one of the generated files of the sample fixture. You will need to update this route when using your own Protobuf workspace file.

Contributing

Contributions, issues and feature requests are always welcome!