forked from sass/sass-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sass#33 from oddbird/sass-implementations
Add 404 page, sass implementation pages, robots.txt, and humans.txt.
- Loading branch information
Showing
24 changed files
with
555 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
layout: has_no_sidebars | ||
title: Page Not Found | ||
permalink: '/404.html' | ||
eleventyExcludeFromCollections: true | ||
introduction: > | ||
Sorry, but the page you were trying to view does not exist. | ||
center_introduction: true | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Website Credits | ||
team: | ||
- name: Jina | ||
role: design lead, code, content | ||
twitter: jina | ||
- name: Natalie Weizenbaum | ||
role: code, content | ||
twitter: nex3 | ||
|
||
contributors: | ||
- name: Chris Eppstein | ||
role: code, content | ||
twitter: chriseppstein | ||
- name: Hampton Lintorn-Catlin | ||
role: code, content | ||
twitter: HamptonMakes | ||
- name: Michael Lintorn-Catlin | ||
role: content | ||
twitter: malrase | ||
- name: Bermon Painter | ||
role: design, code, content | ||
twitter: bermonpainter | ||
- name: Michael Parenteau | ||
role: design, code, content | ||
twitter: parenteau | ||
|
||
thanks: | ||
- name: All the people at SassConf that came to help with DNS and server-related issues. | ||
- name: To everyone who has contributed through pull requests. | ||
|
||
markup: | ||
- name: HTML5 | ||
- name: LiquidJS | ||
- name: Markdown | ||
|
||
style: | ||
- name: CSS3 | ||
- name: Sass | ||
- name: Normalize | ||
- name: Sanitize | ||
|
||
behavior: | ||
- name: Modernizr | ||
- name: jQuery | ||
|
||
misc: | ||
- name: Eleventy | ||
- name: HTML5 Boilerplate | ||
- name: GitHub | ||
- name: Netlify | ||
- name: Visual Studio Code | ||
- name: iTerm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<nav class="sl-l-medium-holy-grail__navigation" role="navigation" aria-label="Content navigation"> | ||
{{ contents | markdown }} | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
layout: base | ||
--- | ||
|
||
<div class="sl-l-medium-holy-grail"> | ||
<div class="sl-l-medium-holy-grail__body"> | ||
{% render 'navigation', contents: navigation %} | ||
|
||
<div class="sl-l-medium-holy-grail__main"> | ||
<div class="sl-l-medium-holy-grail"> | ||
<div class="sl-l-medium-holy-grail__body"> | ||
{% if complementary_content %} | ||
<div class="sl-l-large-holy-grail__complementary{% if table_of_contents %} sl-l-large-holy-grail__complementary--contents{% endif %}"> | ||
{{ complementary_content | markdown }} | ||
</div> | ||
{% endif %} | ||
|
||
<div class="sl-l-large-holy-grail__main docSearch-content"> | ||
{% assign is_typedoc = page | isTypedoc %} | ||
<div {% unless no_container or is_typedoc %}class="sl-l-container sl-l-container--small"{% endunless %}> | ||
{% render 'intro', before_introduction: before_introduction, introduction: introduction, center_introduction: center_introduction %} | ||
|
||
{{ content }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Please read: http://msdn.microsoft.com/en-us/library/ie/dn455106.aspx --> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square70x70logo src="tile.png"/> | ||
<square150x150logo src="tile.png"/> | ||
<wide310x150logo src="tile-wide.png"/> | ||
<square310x310logo src="tile.png"/> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
--- | ||
layout: has_no_sidebars | ||
title: Dart Sass | ||
no_container: true | ||
introduction: > | ||
Dart Sass is the primary implementation of Sass, which means it gets new | ||
features before any other implementation. It's fast, easy to install, and it | ||
compiles to pure JavaScript which makes it easy to integrate into modern web | ||
development workflows. Find out more or help out with its development on | ||
[GitHub](https://github.com/sass/dart-sass). | ||
--- | ||
|
||
<div class="sl-l-grid sl-l-grid--full sl-l-large-grid--fit sl-l-large-grid--gutters-large"> | ||
<div class="sl-l-grid__column"> | ||
|
||
## Command Line | ||
|
||
Dart Sass's stand-alone command-line executable uses the blazing-fast Dart VM to | ||
compile your stylesheets. To install Dart Sass on the command line, check out | ||
the [installation instructions](/install). Once you've got it running, you can | ||
use it compile files: | ||
|
||
```shell | ||
sass source/index.scss css/index.css | ||
``` | ||
|
||
See `sass --help` for additional information on the command-line interface. | ||
|
||
### Dart Library | ||
|
||
You can also use Dart Sass as a Dart library to get the speed of the Dart VM | ||
plus the ability to define your own functions and importers. To add it to an | ||
existing project: | ||
|
||
1. [Install the Dart SDK][install]. Make sure its `bin` directory is [on your | ||
`PATH`][path]. | ||
|
||
[install]: https://dart.dev/get-dart | ||
[path]: https://katiek2.github.io/path-doc/ | ||
|
||
2. Create a `pubspec.yaml` file like this: | ||
|
||
```yaml | ||
name: my_project | ||
dev_dependencies: | ||
sass: ^{{ releases['dart-sass'].version }} | ||
``` | ||
|
||
3. Run `dart pub get`. | ||
|
||
4. Create a `compile-sass.dart` file like this: | ||
|
||
```dart | ||
import 'dart:io'; | ||
import 'package:sass/sass.dart' as sass; | ||
void main(List<String> arguments) { | ||
var result = sass.compile(arguments[0]); | ||
new File(arguments[1]).writeAsStringSync(result); | ||
} | ||
``` | ||
|
||
5. You can now use this to compile files: | ||
|
||
```shell | ||
dart compile-sass.dart styles.scss styles.css | ||
``` | ||
|
||
6. Learn more about [writing Dart code][dart] (it's easy!) and about [Sass's | ||
Dart API][sass]. | ||
|
||
[dart]: https://www.dartlang.org/guides/language/language-tour | ||
[sass]: https://pub.dev/documentation/sass/latest/sass/compileToResult.html | ||
|
||
</div> | ||
<div class="sl-l-grid__column"> | ||
|
||
## JavaScript Library | ||
|
||
Dart Sass is also distributed as the pure JavaScript [`sass` | ||
package](https://www.npmjs.com/package/sass) on npm. The pure JS version is | ||
slower than the stand-alone executable, but it's easy to integrate into existing | ||
workflows and it allows you to define custom functions and importers in | ||
JavaScript. You can add it to your project using `npm install --save-dev sass` | ||
and `require()` it as a library: | ||
|
||
```js | ||
var sass = require('sass'); | ||
|
||
sass.render( | ||
{ | ||
file: scss_filename, | ||
}, | ||
function (err, result) { | ||
/* ... */ | ||
}, | ||
); | ||
|
||
// OR | ||
|
||
var result = sass.renderSync({ | ||
file: scss_filename, | ||
}); | ||
``` | ||
|
||
When installed via npm, Dart Sass supports a JavaScript API that aims to be | ||
compatible with [Node Sass](https://github.com/sass/node-sass#usage). Full | ||
compatibility is a work in progress, but Dart Sass currently supports the | ||
`render()` and `renderSync()` functions. Note however that by default, | ||
**`renderSync()` is more than twice as fast as `render()`**, due to the overhead | ||
of asynchronous callbacks. | ||
|
||
To avoid this performance hit, `render()` can use the [`fibers`][fibers] package | ||
to call asynchronous importers from the synchronous code path. To enable this, | ||
pass the `Fiber` class to the `fiber` option: | ||
|
||
[fibers]: https://www.npmjs.com/package/fibers | ||
|
||
```js | ||
var sass = require('sass'); | ||
var Fiber = require('fibers'); | ||
|
||
sass.render( | ||
{ | ||
file: 'input.scss', | ||
importer: function (url, prev, done) { | ||
// ... | ||
}, | ||
fiber: Fiber, | ||
}, | ||
function (err, result) { | ||
// ... | ||
}, | ||
); | ||
``` | ||
|
||
See [Dart Sass's documentation][js api] for more information about its | ||
JavaScript API. | ||
|
||
[js api]: https://github.com/sass/dart-sass#legacy-javascript-api | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
permalink: '/humans.txt' | ||
eleventyExcludeFromCollections: true | ||
--- | ||
# humanstxt.org/ | ||
# The humans responsible & technology colophon | ||
|
||
# TEAM | ||
{% for person in humans.team %} | ||
{{ person.name }} -- {{ person.role }} -- @{{ person.twitter }} | ||
{%- endfor %} | ||
|
||
# THANKS | ||
{% for person in humans.contributors %} | ||
{{ person.name }} -- {{ person.role }} -- @{{ person.twitter }} | ||
{%- endfor %} | ||
{%- for person in humans.thanks %} | ||
{{ person.name }} | ||
{%- endfor %} | ||
|
||
# TECHNOLOGY COLOPHON | ||
|
||
{% for tech in humans.markup %}{{ tech.name }}{% unless forloop.last %}, {% endunless %}{% endfor %} | ||
{% for tech in humans.style %}{{ tech.name }}{% unless forloop.last %}, {% endunless %}{% endfor %} | ||
{% for tech in humans.behavior %}{{ tech.name }}{% unless forloop.last %}, {% endunless %}{% endfor %} | ||
{% for tech in humans.misc %}{{ tech.name }}{% unless forloop.last %}, {% endunless %}{% endfor %} |
Oops, something went wrong.