Merge pull request #6318 from handlers/edit-this-page
Add 'Edit this page' links to `www` and `docs` websites
This commit is contained in:
commit
5bd805962d
|
@ -0,0 +1,10 @@
|
|||
all: build
|
||||
|
||||
init:
|
||||
bundle
|
||||
|
||||
dev: init
|
||||
bundle exec middleman server
|
||||
|
||||
build: init
|
||||
bundle exec middleman build
|
|
@ -14,13 +14,7 @@ requests like any normal GitHub project, and we'll merge it in.
|
|||
|
||||
## Running the Site Locally
|
||||
|
||||
Running the site locally is simple. Clone this repo and run the following
|
||||
commands:
|
||||
Running the site locally is simple. Clone this repo and run `make dev`.
|
||||
|
||||
```
|
||||
$ bundle
|
||||
$ bundle exec middleman server
|
||||
```
|
||||
|
||||
Then open up `localhost:4567`. Note that some URLs you may need to append
|
||||
Then open up `localhost:4567/v2`. Note that some URLs you may need to append
|
||||
".html" to make them work (in the navigation and such).
|
||||
|
|
|
@ -327,6 +327,8 @@
|
|||
<li><a href="https://docs.vagrantup.com/">Documentation</a></li>
|
||||
<li><a href="https://www.vagrantup.com/about">About</a></li>
|
||||
<li><a href="https://www.vagrantup.com/support">Support</a></li>
|
||||
<% github_link = 'https://github.com/mitchellh/vagrant/blob/master/' + current_page.source_file.match(/website.*/)[0] %>
|
||||
<li class="li-under"><a href="<%= github_link %>">Edit this page</a></li>
|
||||
<a href="https://www.vagrantup.com/downloads">
|
||||
<li class="button inline-button">Download</li>
|
||||
</a>
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
all: build
|
||||
|
||||
init:
|
||||
bundle
|
||||
|
||||
dev: init
|
||||
bundle exec middleman server
|
||||
|
||||
build: init
|
||||
bundle exec middleman build
|
|
@ -14,13 +14,7 @@ requests like any normal GitHub project, and we'll merge it in.
|
|||
|
||||
## Running the Site Locally
|
||||
|
||||
Running the site locally is simple. Clone this repo and run the following
|
||||
commands:
|
||||
|
||||
```
|
||||
$ bundle
|
||||
$ bundle exec middleman server
|
||||
```
|
||||
Running the site locally is simple. Clone this repo and run `make dev`.
|
||||
|
||||
Then open up `localhost:4567`. Note that some URLs you may need to append
|
||||
".html" to make them work (in the navigation and such).
|
||||
|
|
|
@ -60,6 +60,10 @@
|
|||
<li><a href="https://docs.vagrantup.com/">Documentation</a></li>
|
||||
<li><a href="/about.html">About</a></li>
|
||||
<li><a href="/support.html">Support</a></li>
|
||||
<% if current_page.url != "/" %>
|
||||
<% github_link = 'https://github.com/mitchellh/vagrant/blob/master/' + current_page.source_file.match(/website.*/)[0] %>
|
||||
<li class="li-under"><a href="<%= github_link %>">Edit this page</a></li>
|
||||
<% end %>
|
||||
<a href="/downloads.html">
|
||||
<li class="button inline-button">Download</li>
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue