GithubHelp home page GithubHelp logo

isabella232 / jasmine.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasmine/jasmine.github.io

0.0 0.0 0.0 3.42 MB

Source for Jasmine's documentation

Home Page: https://jasmine.github.io

License: MIT License

HTML 73.89% JavaScript 22.35% CSS 2.87% Python 0.15% Ruby 0.62% SCSS 0.12%

jasmine.github.io's Introduction

Jasmine doc site

Contributing

Prepare your local environment

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-docs)
  3. Ensure ruby and bundler (gem install bundler) are installed
  4. Install ruby dependencies (bundle)
  5. You can install them in the local folder, instead of globally for the system with (bundle install --path vendor/bundle)
  6. Install JS dependencies (npm install)

Make your changes

You're ready to make some changes to the documentation!

.
├── _api/                   # Auto-generated API documentation - don't edit by hand!
├── _faq/                   # Various FAQ pages
├── _includes/              # Jekyll snippets (headers, footers, etc.)
├── _layouts/               # Jekyll layouts (overall page structure)
├── _tutorials/             # Tutorials / How-to Articles
│   ├── src/                # Docco source files for "side-by-side" tutorials
│   ├── *.html              # Auto-generated docco tutorials - don't by edit by hand!
│   ├── *.md                # Newer markdown tutorials
├── css/                    # Stylesheets (SCSS)
├── examples/               # Raw javascript examples of jasmine tests (rare)
├── pages/                  # Various documentation pages

Note the auto-generated files _api/** and _tutorials/*.html, don't edit these files as any changes you make to them will be lost the next time the documentation is generated.

Test your changes

First, update the jasmine API docs:

  • Update local copies of jasmine using bundle exec rake update_edge_jasmine and bundle exec rake update_edge_jasmine_browser
  • Run npm run jsdoc to update the API documentation

Then, regenerate the tutorials:

  • bundle exec rake tutorials

Now preview your changes locally:

  • bundle exec rake serve

Archiving a version of the jasmine-core API docs

To archive the API docs for an older version of jasmine-core, add archived: true to the YAML at the top of _api/<version>/global.html. This will remove the version from the listing on the docs home page. It will still be published at the same URLs and can still be reached through the All versions link.

Submit your changes

  • Commit your changes (git commit -am 'Add some docs')
  • Push to the branch (git push origin my-new-docs)
  • Create new Pull Request

Advanced: providing a live demo

If you're making complicated or potentially controversial changes to the documentation, it may make sense to provide a live demo that the reviewer can use to compare side-by-side with the current production site.

Setup

From the terminal in your local fork of jasmine.github.io, create the branch gh-pages:

  • git checkout master
  • git checkout -b gh-pages
  • git push -u origin HEAD

Next, enable GitHub Pages for your fork:

  • Open your browser and navigate to your fork in GitHub
  • Click the Settings link
  • Under the GitHub Pages header, select Source -> gh-pages branch
  • The page will reload. Wait a few minutes, then click the link provided
  • You now have a personal live demo under https://<username>.github.io/jasmine.github.io/

Demoing your desired branch

Now that you've configured your live demo link to show the gh-pages branch, you can update what is shown at any time by resetting that branch to your newest changes. For example, if you've just pushed up the branch my-complicated-change, update your live demo by entering the following in your terminal:

  • git checkout gh-pages
  • git reset --hard my-complicated-change
  • git push -f

Wait a few minutes, and you live demo will now be showing your changes in the my-complicated-change branch. You can then include a link to the demo in your pull request.

jasmine.github.io's People

Contributors

sgravrock avatar sheelc avatar elliot-nelson avatar slackersoft avatar dependabot[bot] avatar jaril avatar eobrain avatar gerg avatar hanneolsen avatar jbrudvik avatar ryanwilsonperkin avatar cancerberosgx avatar purezen avatar amiramw avatar cben avatar bennycode avatar briandipalma avatar cbpetersen avatar daniel-hug avatar dsernst avatar lagartoflojo avatar igorshubovych avatar jaapz avatar janv avatar jenniferabowd avatar jfairbank avatar jdhines avatar gentooboontoo avatar jlvallelonga avatar kevgathuku 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.