Giter Club home page Giter Club logo

ember-ted-docs's Introduction

Ember TED Docs

Components for writing docs sites for your open-source projects at TED.

Demo

Requirements

This is an Ember addon, so it assumes you'll be creating your docs site as an Ember app.

Documenting an Ember addon

You already have an Ember app under /tests/dummy, so you can just use that for your docs site. There's also a great addon that makes it easy to deploy this app to GitHub Pages.

Documenting another project

You'll be making a new Ember app for your docs. Install Ember CLI if you haven't already. Then, from your project's repo, check out an orphaned branch and create an Ember appj

git checkout --orphan docs
git clean -fd  # this removes the working files in your directory
ember init

and you're ready to go!

Installation

Install the following addons:

ember install ember-cli-sass
bower install --save bootstrap-sass
ember install ember-ted-docs

and import Bootstrap and TED docs' styles (you may need to rename app.css to app.scss:

<!-- tests/dummy/app/styles/app.scss -->
@import 'bower_components/bootstrap-sass/assets/stylesheets/bootstrap';
@import 'ember-ted-docs/styles';

Now ember s and develop your docs using the components below.

Usage

In your template you can now use the <ted-page-header> component:

{{ted-page-header
  subheading='My'
  slim-heading='Awesome'
  strong-heading='Library'
  byline='The best, most amazing thing to happen to anyone, anywhere'
  github='http://github.com/tedconf/ember-ted-docs'}}

and here's what you get:

Demo

Now, go forth and document!

ember-ted-docs's People

Contributors

samselikoff avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-ted-docs's Issues

Add link to github repo

It would be nice to have consistently located link back to the git repo for all our docs pages.

I can implement but do you have any ideas on where to put that link, @samselikoff ?

Accessibility

<ted-gear> is not accessible via a keyboard. I think all you need to do is use <a href='#' ... and make sure a :focus css state is defined.

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.