diff --git a/assets/style.css b/assets/style.css index a2f20254d..855211b47 100644 --- a/assets/style.css +++ b/assets/style.css @@ -103,12 +103,6 @@ h2 { margin-top: 3em; } - - pre { - border-right: solid 1px #eef3fa; - border-bottom: solid 1px #c7d7ee; - border-radius: 4px; - } } /* @@ -179,14 +173,6 @@ font-style: normal; } -pre.light { - background: #fdfdff; -} - -pre + pre { - margin-top: -1.7em; -} - .key-codes code { background: #fdfdff; padding: 3px 8px 3px 8px; @@ -205,8 +191,3 @@ pre + pre { box-shadow: none; margin: 0; } - -h3 + pre, -h3 + table { - margin-top: -1em; -} diff --git a/mocha-html.md b/mocha-html.md index 628aea53a..8a4b5ef3e 100644 --- a/mocha-html.md +++ b/mocha-html.md @@ -10,12 +10,12 @@ This is a mocha template that loads js/css from cdn. Mocha - +
- - + + diff --git a/pry.md b/pry.md index 964f73e93..750fa8914 100644 --- a/pry.md +++ b/pry.md @@ -4,7 +4,7 @@ title: Pry layout: default --- -### cd / ls +### cd > cd Array @@ -12,6 +12,10 @@ layout: default Array.methods: [] try_convert Array#methods: & * + abbrev assoc at ... + > show-source + +### ls + > ls # All > ls -m # Methods @@ -36,11 +40,15 @@ Commands with `.` are shell commands pry(main)> .cat hello.txt -### Inspection +### Code > show-method Array#select +### Docs + + > ri Array > ri Array#each + > cd Gem > show-doc try_activate @@ -77,6 +85,12 @@ Finding > view User.all > view User.all, fields: %w[id name email] +### Rails + + > show-models + > show-routes + > show-middleware + ### Reference * [Pry](https://github.com/pry/pry) diff --git a/rails-i18n.md b/rails-i18n.md index 18ab876ea..112f72e6c 100644 --- a/rails-i18n.md +++ b/rails-i18n.md @@ -76,6 +76,7 @@ en: time: formats: default: "%a, %d %b %Y %H:%M:%S %z" + long: "%B %d, %Y %H:%M" short: "%d %b %H:%M" ``` @@ -90,8 +91,9 @@ l(Date.today) en: date: formats: - default: "%Y-%m-%d" - short: "%b %d" + default: "%Y-%m-%d" # 2015-06-25 + long: "%B %d, %Y" # June 25, 2015 + short: "%b %d" # Jun 25 ``` ## ActiveRecord @@ -293,3 +295,4 @@ I18n.localize date # aka, I18n.l * http://guides.rubyonrails.org/i18n.html * http://rails-i18n.org/wiki * https://github.com/svenfuchs/i18n + * https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en.yml diff --git a/rdoc.md b/rdoc.md index b4244844e..eeaeaea03 100644 --- a/rdoc.md +++ b/rdoc.md @@ -27,4 +27,55 @@ layout: default # [foo] also # [bar] like this +### Inline + + *bold* + _emphasized_ + +code+ + + http://www.link.com + See Models::User@Examples + {Google}[http://google.com] + +### Skip + + def input # :nodoc: + + module MyModule # :nodoc: all + +### Return types + + # @return [String] + # @return [String, nil] the name + +### Callseq + + # :call-seq: + # ARGF.readlines(sep=$/) -> array + # ARGF.readlines(limit) -> array + # ARGF.readlines(sep, limit) -> array + # + # ARGF.to_a(sep=$/) -> array + # ARGF.to_a(limit) -> array + # ARGF.to_a(sep, limit) -> array + +### Category + + # :category: Utilities + +### Sections + + # :section: Expiry methods + # methods relating to expiring + + def expire! + def expired? + ... + +### Using tomdoc + + # :markup: TomDoc + # at the beginning ofthe file + http://rdoc.rubyforge.org/RDoc/Markup.html +http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md