Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

実行出来るサンプルに目印を付ける #122

Closed
azu opened this issue Jun 11, 2014 · 2 comments
Closed

実行出来るサンプルに目印を付ける #122

azu opened this issue Jun 11, 2014 · 2 comments
Labels
Type: Feature New Feature

Comments

@azu
Copy link
Owner

azu commented Jun 11, 2014

実行可能なサンプルコードには .executable のクラスを付ける。

[role="executable"]
[source,js]
----
include::embed/embed-promise-all-xhr.js[]
// 実行例
main().then(function (value) {
    console.log(value);
}).catch(function(error){
    console.log(error);
});
----

このクラスに対してのみエディタを追加する形にする。

また、サンプルコードと実行例を分けて書かれてるので、
そこを調整するときに文章も結構変更が必要な箇所が出てくる気がする。

@azu
Copy link
Owner Author

azu commented Jun 12, 2014

[role="executable"] じゃないと上手くclassつかなかった

azu added a commit that referenced this issue Jun 12, 2014
azu added a commit that referenced this issue Jun 12, 2014
IE9 - はDOMContentLoadedもサポートしてるため

 
fixes #122
azu added a commit that referenced this issue Jun 12, 2014
@azu azu closed this as completed in 402fc5d Jun 12, 2014
azu added a commit that referenced this issue Jun 12, 2014
実行出来るサンプルコードにroleを付加する

close #122
@azu
Copy link
Owner Author

azu commented Jun 12, 2014

ついた http://azu.github.io/promises-book/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New Feature
Projects
None yet
Development

No branches or pull requests

1 participant