Skip to content

Commit

Permalink
Bump version to v1.1.0. Update getting started instructions in home p…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
jodosha committed Oct 25, 2017
1 parent 0a9aa5d commit c8a4a5c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def guides
@guides[version] = JSON.parse(yaml.to_json, object_class: OpenStruct)
end

def latest_stable_version_path
def latest_stable_version_guides_path
latest_stable_version = Dir.glob("#{GUIDES_ROOT}/*").each_with_object([]) do |version, result|
next unless ::File.directory?(version)
result << ::File.basename(version)
Expand Down Expand Up @@ -260,11 +260,11 @@ def encode_text(text)
end

def hanami_version
'1.0.0'
'1.1.0'
end

def hanami_release_date
Date.parse("2017-04-06").strftime("%B %-d, %Y")
Date.parse("2017-10-25").strftime("%B %-d, %Y")
end
end

Expand Down
4 changes: 2 additions & 2 deletions source/guides/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ layout: false
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hanami | Guides</title>
<meta http-equiv="refresh" content="0;URL='<%= latest_stable_version_path %>'" />
<meta http-equiv="refresh" content="0;URL='<%= latest_stable_version_guides_path %>'" />
</head>
<body>
<p>Please visit API docs for our <a href="<%= latest_stable_version_path %>">latest stable version</a>.</p>
<p>Please visit API docs for our <a href="<%= latest_stable_version_guides_path %>">latest stable version</a>.</p>
</body>
</html>
15 changes: 7 additions & 8 deletions source/layouts/home.erb
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,18 @@ Successfully installed hanami-<%= hanami_version %>
</code></pre>
</div>
<div role="tabpanel" class="tab-pane" id="develop">
<pre class="language-ruby plaintext"><code><span class="command">% cd bookshelf &amp;&amp; echo "ruby '2.3.0'" &gt;&gt; Gemfile &amp;&amp; bundle</span>
Bundle complete! 8 Gemfile dependencies, 49 gems now installed.
<pre class="language-ruby plaintext"><code><span class="command">% cd bookshelf &amp;&amp; echo "ruby '2.4.2'" &gt;&gt; Gemfile &amp;&amp; bundle</span>
Bundle complete! 8 Gemfile dependencies, 50 gems now installed.
<br>
<span class="command">% git add . &amp;&amp; git commit -m "Initial commit"</span>
[master (root-commit) ecb3a75] Initial commit
37 files changed, 527 insertions(+)
[master (root-commit) b6df611] Initial commit
38 files changed, 685 insertions(+)
</code></pre>
</div>
<div role="tabpanel" class="tab-pane" id="deploy">
<pre class="language-ruby plaintext"><code><span class="command">% heroku apps:create</span>
Creating cherry-blossom-1234... done, stack is cedar-14
Creating app... done, ⬢ Creating cherry-blossom-1234
https://cherry-blossom-1234.herokuapp.com/ | https://git.heroku.com/cherry-blossom-1234.git
Git remote heroku added
<br>
<span class="command">% heroku config:add SERVE_STATIC_ASSETS=true</span>
Setting SERVE_STATIC_ASSETS and restarting ⬢ cherry-blossom-1234... done, v2
Expand All @@ -134,7 +133,7 @@ To https://git.heroku.com/cherry-blossom-1234.git
* [new branch] master -&gt; master
<br>
<span class="command">% heroku run bundle exec hanami db migrate</span>
Running bundle exec hanami db migrate on ⬢ cherry-blossom-1234... up, run.7361 (Free)
Running bundle exec hanami db migrate on ⬢ cherry-blossom-1234... up, run.9274 (Free)
# ...
<br>
<span class="command">% heroku open</span>
Expand All @@ -149,7 +148,7 @@ Opening cherry-blossom-1234... done
</div>

<div class="callout-secondary">
<a href="/guides/getting-started" class="btn btn-sm btn-primary" target="_blank">Get started</a>
<a href="<%= latest_stable_version_guides_path %>/getting-started" class="btn btn-sm btn-primary" target="_blank">Get started</a>
</div>
</div>

Expand Down

0 comments on commit c8a4a5c

Please sign in to comment.