-
Notifications
You must be signed in to change notification settings - Fork 121
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
Restructure IRB's documentation #1053
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
/docs/ | ||
Gemfile.lock | ||
_site/ |
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,2 @@ | ||
page_dir: doc | ||
warn_missing_rdoc_ref: 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 |
---|---|---|
|
@@ -45,8 +45,8 @@ end | |
task :default => :test | ||
|
||
RDoc::Task.new do |rdoc| | ||
rdoc.title = "IRB" | ||
rdoc.rdoc_dir = "docs" | ||
rdoc.main = "README.md" | ||
rdoc.options.push("--copy-files", "LICENSE.txt") | ||
rdoc.title = "IRB Documentation" | ||
rdoc.main = "Index.md" | ||
rdoc.rdoc_dir = "_site" | ||
rdoc.options.push("lib") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We also need this task because we now need to use |
||
end |
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 @@ | ||
*.md |
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,69 @@ | ||
# Index of Command-Line Options | ||
|
||
These are the \IRB command-line options, with links to explanatory text: | ||
|
||
- `-d`: Set `$DEBUG` and {$VERBOSE}[rdoc-ref:IRB@Verbosity] | ||
to `true`. | ||
- `-E _ex_[:_in_]`: Set initial external (ex) and internal (in) | ||
{encodings}[rdoc-ref:IRB@Encodings] (same as `ruby -E`). | ||
- `-f`: Don't initialize from {configuration file}[rdoc-ref:IRB@Configuration+File]. | ||
- `-I _dirpath_`: Specify {$LOAD_PATH directory}[rdoc-ref:IRB@Load+Modules] | ||
(same as `ruby -I`). | ||
- `-r _load-module_`: Require {load-module}[rdoc-ref:IRB@Load+Modules] | ||
(same as `ruby -r`). | ||
- `-U`: Set external and internal {encodings}[rdoc-ref:IRB@Encodings] to UTF-8. | ||
- `-w`: Suppress {warnings}[rdoc-ref:IRB@Warnings] (same as `ruby -w`). | ||
- `-W[_level_]`: Set {warning level}[rdoc-ref:IRB@Warnings]; | ||
0=silence, 1=medium, 2=verbose (same as `ruby -W`). | ||
- `--autocomplete`: Use {auto-completion}[rdoc-ref:IRB@Automatic+Completion]. | ||
- `--back-trace-limit _n_`: Set a {backtrace limit}[rdoc-ref:IRB@Tracer]; | ||
display at most the top `n` and bottom `n` entries. | ||
- `--colorize`: Use {color-highlighting}[rdoc-ref:IRB@Color+Highlighting] | ||
for input and output. | ||
- `--context-mode _n_`: Select method to create Binding object | ||
for new {workspace}[rdoc-ref:IRB@Commands]; `n` in range `0..4`. | ||
- `--echo`: Print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29]) | ||
return values. | ||
- `--extra-doc-dir _dirpath_`: | ||
Add a {documentation directory}[rdoc-ref:IRB@RI+Documentation+Directories] | ||
for the documentation dialog. | ||
- `--inf-ruby-mode`: Set prompt mode to {:INF_RUBY}[rdoc-ref:IRB@Pre-Defined+Prompts] | ||
(appropriate for `inf-ruby-mode` on Emacs); | ||
suppresses --multiline and --singleline. | ||
- `--inspect`: Use method `inspect` for printing ({echoing}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29]) | ||
return values. | ||
- `--multiline`: Use the multiline editor as the {input method}[rdoc-ref:IRB@Input+Method]. | ||
- `--noautocomplete`: Don't use {auto-completion}[rdoc-ref:IRB@Automatic+Completion]. | ||
- `--nocolorize`: Don't use {color-highlighting}[rdoc-ref:IRB@Color+Highlighting] | ||
for input and output. | ||
- `--noecho`: Don't print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29]) | ||
return values. | ||
- `--noecho-on-assignment`: Don't print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29]) | ||
result on assignment. | ||
- `--noinspect`: Don't se method `inspect` for printing ({echoing}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29]) | ||
return values. | ||
- `--nomultiline`: Don't use the multiline editor as the {input method}[rdoc-ref:IRB@Input+Method]. | ||
- `--noprompt`: Don't print {prompts}[rdoc-ref:IRB@Prompt+and+Return+Formats]. | ||
- `--noscript`: Treat the first command-line argument as a normal | ||
{command-line argument}[rdoc-ref:IRB@Initialization+Script], | ||
and include it in `ARGV`. | ||
- `--nosingleline`: Don't use the singleline editor as the {input method}[rdoc-ref:IRB@Input+Method]. | ||
- `--noverbose`: Don't print {verbose}[rdoc-ref:IRB@Verbosity] details. | ||
- `--prompt _mode_`, `--prompt-mode _mode_`: | ||
Set {prompt and return formats}[rdoc-ref:IRB@Prompt+and+Return+Formats]; | ||
`mode` may be a {pre-defined prompt}[rdoc-ref:IRB@Pre-Defined+Prompts] | ||
or the name of a {custom prompt}[rdoc-ref:IRB@Custom+Prompts]. | ||
- `--script`: Treat the first command-line argument as the path to an | ||
{initialization script}[rdoc-ref:IRB@Initialization+Script], | ||
and omit it from `ARGV`. | ||
- `--simple-prompt`, `--sample-book-mode`: | ||
Set prompt mode to {:SIMPLE}[rdoc-ref:IRB@Pre-Defined+Prompts]. | ||
- `--singleline`: Use the singleline editor as the {input method}[rdoc-ref:IRB@Input+Method]. | ||
- `--tracer`: Use {Tracer}[rdoc-ref:IRB@Tracer] to print a stack trace for each input command. | ||
- `--truncate-echo-on-assignment`: Print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29]) | ||
truncated result on assignment. | ||
- `--verbose`Print {verbose}[rdoc-ref:IRB@Verbosity] details. | ||
- `-v`, `--version`: Print the {IRB version}[rdoc-ref:IRB@Version]. | ||
- `-h`, `--help`: Print the {IRB help text}[rdoc-ref:IRB@Help]. | ||
- `--`: Separate options from {arguments}[rdoc-ref:IRB@Command-Line+Arguments] | ||
on the command-line. |
File renamed without changes.
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These settings can't be specified in RDoc's rake task so we need this file.