Giter Club home page Giter Club logo

field-guide's Introduction

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.

field-guide's People

Contributors

dependabot[bot] avatar dhaulagiri avatar elwayman02 avatar ember-tomster avatar mansona avatar melsumner avatar minthamie avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.