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

field-guide

v3.0.0

Published

a fully-functional, static site implementation of a design system documentation site

Downloads

939

Readme

Field Guide

This project is designed to be a fully-functional, static site implementation of a design system (or styleguide) documentation site. It is intended to be installed in your Ember Addon and then can be deployed statically on AWS, Netlify or any other static site deployment system.

If you want an example of the this "in production" then check out the new redesign branch of the Ember Styleguide.

You do not need to be a web developer to be able to use this system. You just write markdown files and the rest of the work is performed by EmberJS' build system.

Super Quick Start

If you want to get your new Field Guide deployed on Netlify in less than a minute then you can just click this button:

Deploy to Netlify

If you want to instead work with your Field Guide locally before deploying then you can continue reading

Quick Start

npm init ember-addon super-design-system

cd super-design-system

# you can replace the template with the one you want to use
npx ember install field-guide field-guide-default-template

It will ask you if you want to update the index.html file and you should say yes 👍 It will also create a docs folder with some example files to get you started.

If you want to see the documentation site running on your local machine just run npm start and you will be able to navigate to http://localhost:4200 to see the docs in action.

To build the static output directory, run the standard build process for a production Ember application:

npx ember build -prod

This will generate a fully static output of your site in the dist folder.

Usage

Configuring

The default blueprint will update your tests/dummy/config/environment.js file with some configuration keys that should be updated. To see what can be configured here is an example of the current Ember Styleguide config:

let ENV = {

  // leave all the other config intact and update the following key

  'field-guide': {
    name: 'Ember', // product name
    logo: '/ember-logo.png', // if you don't have a logo it will create one for you from the product name
    copyright: 'Ember Field Guide is designed to document the [ember-styleguide](https://github.com/ember-learn/ember-styleguide) project. For more information view the readme',
    social: [{
      name: 'github',
      title: 'Ember Styleguide - Repository',
      link: 'https://github.com/ember-learn/ember-styleguide'
    }, {
      name: 'twitter',
      title: 'Ember Styleguide - Twitter',
      link: 'https://twitter.com/emberjs'
    }]
  }
}

Note:

  • The images like /ember-logo.png will need to be in your tests/dummy/public folder in your addon.
  • You can add as many social links as you want in the social array. However, remember to add a logo image in your public folder for the custom social links with a name matching the name field in your link object. If you are using field-guide-default-template, the logos for github and twitter links will be included by the template for you.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.