Update styles
This commit is contained in:
parent
b0f23d3c80
commit
8930ac3541
|
@ -103,12 +103,6 @@
|
||||||
h2 {
|
h2 {
|
||||||
margin-top: 3em;
|
margin-top: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
|
||||||
border-right: solid 1px #eef3fa;
|
|
||||||
border-bottom: solid 1px #c7d7ee;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -179,14 +173,6 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre.light {
|
|
||||||
background: #fdfdff;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre + pre {
|
|
||||||
margin-top: -1.7em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.key-codes code {
|
.key-codes code {
|
||||||
background: #fdfdff;
|
background: #fdfdff;
|
||||||
padding: 3px 8px 3px 8px;
|
padding: 3px 8px 3px 8px;
|
||||||
|
@ -205,8 +191,3 @@ pre + pre {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 + pre,
|
|
||||||
h3 + table {
|
|
||||||
margin-top: -1em;
|
|
||||||
}
|
|
||||||
|
|
|
@ -10,12 +10,12 @@ This is a mocha template that loads js/css from cdn.
|
||||||
<title>Mocha</title>
|
<title>Mocha</title>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link href="https://cdn.rawgit.com/visionmedia/mocha/1.21.4/mocha.css" rel="stylesheet" />
|
<link href="https://cdn.rawgit.com/visionmedia/mocha/2.2.4/mocha.css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="mocha"></div>
|
<div id="mocha"></div>
|
||||||
<script src="https://cdn.rawgit.com/visionmedia/mocha/1.21.4/mocha.js"></script>
|
<script src="https://cdn.rawgit.com/visionmedia/mocha/2.2.4/mocha.js"></script>
|
||||||
<script src="https://cdn.rawgit.com/chaijs/chai/1.9.2/chai.js"></script>
|
<script src="https://cdn.rawgit.com/chaijs/chai/2.3.0/chai.js"></script>
|
||||||
<script src="../index.js"></script>
|
<script src="../index.js"></script>
|
||||||
<script>mocha.setup('bdd')</script
|
<script>mocha.setup('bdd')</script
|
||||||
<script src="tests.js"></script>
|
<script src="tests.js"></script>
|
||||||
|
|
18
pry.md
18
pry.md
|
@ -4,7 +4,7 @@ title: Pry
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
### cd / ls
|
### cd
|
||||||
|
|
||||||
> cd Array
|
> cd Array
|
||||||
|
|
||||||
|
@ -12,6 +12,10 @@ layout: default
|
||||||
Array.methods: [] try_convert
|
Array.methods: [] try_convert
|
||||||
Array#methods: & * + abbrev assoc at ...
|
Array#methods: & * + abbrev assoc at ...
|
||||||
|
|
||||||
|
> show-source
|
||||||
|
|
||||||
|
### ls
|
||||||
|
|
||||||
> ls # All
|
> ls # All
|
||||||
|
|
||||||
> ls -m # Methods
|
> ls -m # Methods
|
||||||
|
@ -36,11 +40,15 @@ Commands with `.` are shell commands
|
||||||
|
|
||||||
pry(main)> .cat hello.txt
|
pry(main)> .cat hello.txt
|
||||||
|
|
||||||
### Inspection
|
### Code
|
||||||
|
|
||||||
> show-method Array#select
|
> show-method Array#select
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
|
||||||
|
> ri Array
|
||||||
> ri Array#each
|
> ri Array#each
|
||||||
|
|
||||||
> cd Gem
|
> cd Gem
|
||||||
> show-doc try_activate
|
> show-doc try_activate
|
||||||
|
|
||||||
|
@ -77,6 +85,12 @@ Finding
|
||||||
> view User.all
|
> view User.all
|
||||||
> view User.all, fields: %w[id name email]
|
> view User.all, fields: %w[id name email]
|
||||||
|
|
||||||
|
### Rails
|
||||||
|
|
||||||
|
> show-models
|
||||||
|
> show-routes
|
||||||
|
> show-middleware
|
||||||
|
|
||||||
### Reference
|
### Reference
|
||||||
|
|
||||||
* [Pry](https://github.com/pry/pry)
|
* [Pry](https://github.com/pry/pry)
|
||||||
|
|
|
@ -76,6 +76,7 @@ en:
|
||||||
time:
|
time:
|
||||||
formats:
|
formats:
|
||||||
default: "%a, %d %b %Y %H:%M:%S %z"
|
default: "%a, %d %b %Y %H:%M:%S %z"
|
||||||
|
long: "%B %d, %Y %H:%M"
|
||||||
short: "%d %b %H:%M"
|
short: "%d %b %H:%M"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -90,8 +91,9 @@ l(Date.today)
|
||||||
en:
|
en:
|
||||||
date:
|
date:
|
||||||
formats:
|
formats:
|
||||||
default: "%Y-%m-%d"
|
default: "%Y-%m-%d" # 2015-06-25
|
||||||
short: "%b %d"
|
long: "%B %d, %Y" # June 25, 2015
|
||||||
|
short: "%b %d" # Jun 25
|
||||||
```
|
```
|
||||||
|
|
||||||
## ActiveRecord
|
## ActiveRecord
|
||||||
|
@ -293,3 +295,4 @@ I18n.localize date # aka, I18n.l
|
||||||
* http://guides.rubyonrails.org/i18n.html
|
* http://guides.rubyonrails.org/i18n.html
|
||||||
* http://rails-i18n.org/wiki
|
* http://rails-i18n.org/wiki
|
||||||
* https://github.com/svenfuchs/i18n
|
* https://github.com/svenfuchs/i18n
|
||||||
|
* https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en.yml
|
||||||
|
|
51
rdoc.md
51
rdoc.md
|
@ -27,4 +27,55 @@ layout: default
|
||||||
# [foo] also
|
# [foo] also
|
||||||
# [bar] like this
|
# [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://rdoc.rubyforge.org/RDoc/Markup.html
|
||||||
|
http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md
|
||||||
|
|
Loading…
Reference in New Issue