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

@zohodesk/docs-builder

v1.0.2

Published

docs-builder is used to build your own docs

Downloads

43

Readme

Docs-Builder 🛠️

Docs Builder Library is a versatile tool designed to streamline the process of creating documentation pages for your projects. With support for displaying PropTypes, integrated code editors, code views, and more, this library aims to simplify the documentation-building process and enhance the overall developer experience.

Features 🆕

  • Integrated Code Editor: Seamlessly integrate code editing capabilities directly into your documentation, allowing users to interact with code examples.
  • MD Editor: Easily showcase the code which was written in MD format
  • PropTypes Display: Easily showcase PropTypes for your components, providing clear insights into expected props and their types.
  • Code View: Present code snippets in a clean and organized format, making it easier for users to understand and implement.
  • Customizable Templates: Customize the look and feel of your documentation pages to match your project's branding and style.
  • Easy Integration: Simple integration process into your existing projects, minimizing setup time and effort.

Notes 🗒️

  1. Make sure your using any one of the cli react-cli or client_build_tool.
  2. So based on the cli which you are using configure the required files.

Installation ⏳

npm install @zohodesk/react-cli -g

or

npm install @zohodesk/client_build_tool -g
npm install @zohodesk/docs-builder

Setup ⚙️

  • Creating a app : Create a app using react-cli or client_build_tool.
  • Files Needed : Make sure your app consist of index.js and index.html inside the src folder.
  • Docs-Config-File : Create a new file docs.config.js to customise the dashboard page of your docs.
  • Cli-Config-File : Create a react-cli.config.js or cbt.config.js and fill the bellow template.

Required Files 🗂️

  1. docs.config.js
import  package_one  from  './images/package_one.png'
import  package_two  from  './images/package_two.svg'
import  package_three  from  './images/package_three.svg'

export  const  docsConfig  = {
	header:  'Your Header',
	description :  'Your description',
	packages : [
		'package_one',
		'package_two',
		'package_three'
	],
	cards : {	
		'package_one': {
			backgroundColor :  '#e7f1fd',
			svgPath :  package_one,
			initialComponentName :  'package_one_componentName'
		},
		'package_two': {
			backgroundColor :  '#f8d7d7',
			svgPath :  package_two,
			initialComponentName :  'package_two_componentName'
		},
		'package_three': {
			backgroundColor :  '#d4eed9',
			svgPath :  package_three,
			initialComponentName :  'package_three_componentName'
		}
	}
}
  1. cbt.config.js or react-cli.config.js
const  docsConfig  =  require("@zohodesk/docs-builder/cbt.config")
const { config } =  docsConfig;
exports.config  =  config;

Usage 💻

  1. Import the library at the top level of your file, before any React imports:
import  '@zohodesk/docs-builder/loaders/propHook.js';
  1. Import the library into your project:
import { Docs } from '@zohodesk/docs-builder';
import * as Components from '../docs/allDocs.js'
import { docsConfig } from  '../docs/docs.config.js';
  1. Create a Theme Decorator Wrapper ( only if you have the _provider component in your docs)
const  Decorators  =  Components._provider;
  1. Render the Docs Component
ReactDOM.render(
	<Decorators>
		<Docs  docsConfig={docsConfig}  Components={Components}/>
	</Decorators>,
	document.getElementById('root')
);
  1. Starting the Docs
npm run start

Hurray Happy Coding! 😎

Version History 📝

1.0.0 (21.03.24)

  • Docs-Builder Implemented

1.0.1 (21.03.24)

  • Version Updated in ui

1.0.2 (19.06.24)

  • DocsBuilder implemented with new Code editor