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

mdocify

v0.1.0-0

Published

command line tool to generate bolierplate md files for the files or folders in the current working directory,wherever this cli runs

Downloads

4

Readme

Intro

This is just a fun project which is written to solve a basic problem to autogenerate the boilerplate markdown file which is needed to be in format for docusarus-v2,not handled for v1(that is more stable), v2 is still in development,so it is just an experiment,for now this project has lot of limitations.will handle more cases if needed to make this tool more stable.

Installation

Using yarn or npm

Using package manager you would get the latest stable version of cli,But its not stable either ;)

To automatically link mdocify to your environment variables you would need to add it as a global package,if you install to any particular project dependencies,you might need to link it by yourself by using some commands which has been described below

$ yarn global add mdocify
# or
$ npm install -g modcify

Using github

Using github clone you would get the latest development code of cli,which you would need to manually link to your path by using npm or yarn link command

Step - 1

Cloning the project since its not availabe on npm registry

$ git clone https://github.com/vinitraj10/mdocify

Step - 2

Installing all dependencies

$ cd mdocify && yarn

Step-3

Linking the cli to the terminal,this will add symlink or path to your environment variables

$ yarn link

Step-4

Edit your sidebars.js of docusarus-v2 for handling the updates in sidebar

    someSideBar: {
        Components: [..., /* next_doc_id */],
    }

Just make sure you add /* next_doc_id */ this line to make sure you get auto update in your provide key field,for example i have added in Components, you can wherever you want to add.

Working

To Make it work,Right now I am assuming you have a React Project where you have been using docusarus-v2,Now to generate markdown file you need to run this command where you have kept all your components folder,It assumes a component will have its separate folder for now,will handle for components file also in coming work.

Your directory structure should look like

  |-- components
            |-- Button
                |-- index.tsx
                |-- button.css
                    
            |-- Card
                |-- index.tsx
                |-- card.css

So you need to run

$ <project>/components> mdocify

on root directory like here its components,it will magically search for documentation directory which resides in your project root if you are using docusarus-v2.

and it will automatically generate .md file for your components also sidebars.js will be updated automatically your directory structure would look like this

  |-- documentation
            |-- docs
                |-- button.md
                |-- card.md                 

And at last run docusarus server to see the updates,run the following command in documentation folder,as docusarus lives there only

$ yarn start

Disclaimer

This might not be useful to you at first glance,but if you got an idea what i am trying to do,then you can contribute in this project anytime or if you want to discuss anything related to this or ReactJs,React-Native then you can get in touch with me at twitter vinitraj_10