1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Update style for alert messages at documentation pages (#1847)

* Update style for alert messages at documentation pages. [skip ci]
This commit is contained in:
Harry V. Kiselev 2017-02-24 20:42:49 +04:00 committed by Matt Brictson
parent 4c3f09524e
commit cb54892912
4 changed files with 38 additions and 14 deletions

View file

@ -95,6 +95,30 @@ h1, h2, h3, h4, h5, h6 {
margin-bottom: 1.25em; margin-bottom: 1.25em;
} }
.alert-box {
font-weight: normal;
color: black;
background-color: #d7ecfa;
border: none;
padding-left: 20px;
}
.alert-box.alert {
background-color: #f7e4e1;
color: black;
}
.alert-box.success {
background-color: #e1faea;
color: black;
}
.alert-box.secondary {
background-color: #eaeaea;
color: black;
}
/*p code, li code { /*p code, li code {
padding: 3px; padding: 3px;
background-color: #E6E6E6; background-color: #E6E6E6;

View file

@ -16,7 +16,7 @@ set :stage_config_path, 'cap/stages'
# previous variables MUST be set before 'capistrano/setup' # previous variables MUST be set before 'capistrano/setup'
require 'capistrano/setup' require 'capistrano/setup'
# default tasks path is `lib/capistrano/tasks/*.rake` # default tasks path is `lib/capistrano/tasks/*.rake`
# (note that you can also change the file extensions) # (note that you can also change the file extensions)
Dir.glob('cap/tasks/*.rb').each { |r| import r } Dir.glob('cap/tasks/*.rb').each { |r| import r }
``` ```
@ -34,7 +34,7 @@ Here is the corresponding capistrano configuration structure:
└── deploy.rb └── deploy.rb
``` ```
<div class="alert-box alert"> <p class="alert-box alert">
Be aware that you will have to provide an absolute path, if you want your "deploy_config_path" to be "capistrano/deploy.rb". Be aware that you will have to provide an absolute path, if you want your "deploy_config_path" to be "capistrano/deploy.rb".
See <a href="https://github.com/capistrano/capistrano/issues/1519#issuecomment-152357282">this issue</a> for more explanations and how to get an absolute path in Ruby. See <a href="https://github.com/capistrano/capistrano/issues/1519#issuecomment-152357282">this issue</a> for more explanations and how to get an absolute path in Ruby.
</div> </p>

View file

@ -8,10 +8,10 @@ Capistrano is bundled as a Ruby Gem. **It requires Ruby 2.0 or newer.**
Capistrano can be installed as a standalone Gem, or bundled into your Capistrano can be installed as a standalone Gem, or bundled into your
application. application.
<div class="alert"> <p class="alert-box alert">
It is recommended to fix the version number when using Capistrano, and is It is recommended to fix the version number when using Capistrano, and is
therefore recommended to use an appropriate bundler. therefore recommended to use an appropriate bundler.
</div> </p>
### General Usage ### General Usage

View file

@ -3,10 +3,10 @@ title: Preparing Your Application
layout: default layout: default
--- ---
<div class="alert-box radius"> <p class="alert-box">
This will focus on preparing a Rails application, but most ideas expressed This will focus on preparing a Rails application, but most ideas expressed
here have parallels in Python, or PHP applications here have parallels in Python, or PHP applications
</div> </p>
### 1. Commit your application to some externally available source control hosting provider. ### 1. Commit your application to some externally available source control hosting provider.
@ -18,12 +18,12 @@ There might be 3<sup>rd</sup> party plugins adding support for various other sys
### 2. Move secrets out of the repository. ### 2. Move secrets out of the repository.
<div class="alert-box alert"> <p class="alert-box alert">
If you've accidentally committed state secrets to the repository, you might If you've accidentally committed state secrets to the repository, you might
want to take want to take
<a href="https://help.github.com/articles/remove-sensitive-data">special steps</a> <a href="https://help.github.com/articles/remove-sensitive-data">special steps</a>
to erase them from the repository history for all time. to erase them from the repository history for all time.
</div> </p>
Ideally one should remove `config/database.yml` to something like Ideally one should remove `config/database.yml` to something like
`config/database.yml.example`. You and your team should copy the example file `config/database.yml.example`. You and your team should copy the example file
@ -34,7 +34,7 @@ configuration into place at deploy time.
The original `database.yml` should be added to the `.gitignore` (or your SCM's The original `database.yml` should be added to the `.gitignore` (or your SCM's
parallel concept of ignored files) parallel concept of ignored files)
```bash ```bash
$ cp config/database.yml{,.example} $ cp config/database.yml{,.example}
$ echo config/database.yml >> .gitignore $ echo config/database.yml >> .gitignore
``` ```
@ -136,14 +136,14 @@ server 'world.com', roles: [:web], user: 'hello'
server 'example.com', roles: [:web], port: 1234 server 'example.com', roles: [:web], port: 1234
``` ```
<div class="alert-box radius"> You can define a server or role using both syntaxes and the <p class="alert-box"> You can define a server or role using both syntaxes and the
properties will be merged. See the Properties Documentation for details properties will be merged. See the Properties Documentation for details
</div> </p>
<div class="alert-box alert"> If you define servers with either the simple or the extended <p class="alert-box alert"> If you define servers with either the simple or the extended
syntax and explicitly specify a user or a port number, the last definition will win. This syntax and explicitly specify a user or a port number, the last definition will win. This
is identical behaviour to scalar custom properties. In older versions of Capistrano, is identical behaviour to scalar custom properties. In older versions of Capistrano,
<b>multiple</b> servers were created and the merging was ill-defined. </div> <b>multiple</b> servers were created and the merging was ill-defined. </p>
### 5. Set the shared information in `deploy.rb`. ### 5. Set the shared information in `deploy.rb`.