8000 GitHub - gitter-badger/site-www: Source for Dart website
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gitter-badger/site-www

 
 

Repository files navigation

The Dart language site (www.dartlang.org)

Build Status    Join the chat at https://gitter.im/dart-lang/site-www

The www.dartlang.org site. Built with Jekyll and hosted on Firebase.

Also see:

Building the site

One-time setup

  1. If you're on a Mac, install Xcode.

  2. Make sure you have Ruby. Consider using rvm to manage Ruby versions.

  3. Install npm by installing Node.js.

  4. Install Firebase:

npm install -g firebase-tools # might require sudo

1. Install bundles

bundle install


### While you're editing the site

While you're working on the site, the easiest way to see your changes is to use jekyll:

jekyll serve --watch


Navigate to localhost:4000. (webdev is 4001)


### To see the Firebase version of the site

Unless your changes are dirt simple (no links, no images),
check them using the Firebase server:

jekyll build && firebase serve --port 4000



## Checking the site's HTML

To check for valid HTML, good images, and broken links,
run this from the top of the repo:

./deploy/html_proof.rb


## More processes...

Check the sitemap links using the
following Ruby script.
This command requires npm and Firebase:

From the top-level directory, run:

deploy/check_sitemap.rb



## Misc notes

We plan to beef these notes up and move them to a separate page.

* If you want italics, use <em>. The i-tag is used for icon fonts, such as
  font-awesome.
* We plan to feature links without trailing slashes. Consequences:
  * If you're editing an index.md/index.html page, use absolute links.
    [PENDING: example here]
  * The permalink must not have a trailing slash. (Otherwise, the link checker won't find issues.)
  * (Are there analytics consequences?)

About

Source for Dart website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.3%
  • Dart 22.9%
  • Ruby 13.1%
  • HTML 9.6%
  • CSS 9.5%
  • Shell 0.9%
  • Other 0.7%
0