Skip to content

Commit 761c4ff

Browse files
committed
PR #6 Follow-up: Update docs site and slightly clean up README.
1 parent 5fb247b commit 761c4ff

File tree

2 files changed

+48
-13
lines changed

2 files changed

+48
-13
lines changed

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,28 @@ only Debian packages with apt-get.
4646

4747
#### On a Raspberry Pi:
4848
```
49-
Either
50-
$ curl https://github.com/geerlingguy/rpi-clone/blob/master/install | sudo bash
49+
$ curl https://github.com/geerlingguy/rpi-clone/blob/master/install | sudo bash
50+
```
5151

52-
or
53-
$ git clone https://github.com/geerlingguy/rpi-clone.git
54-
$ cd rpi-clone
55-
$ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
52+
You can also manually clone the project and copy the scripts into place, if you don't want to use the `curl | sudo bash` install method:
53+
54+
```
55+
$ git clone https://github.com/geerlingguy/rpi-clone.git
56+
$ cd rpi-clone
57+
$ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
5658
```
57-
Make sure /usr/local/sbin is in your $PATH and then run
58-
rpi-clone or rpi-clone-setup with no args to print usage.
59+
Make sure `/usr/local/sbin` is in your $PATH and then run
60+
`rpi-clone` or `rpi-clone-setup` with no args to print usage.
5961

60-
rpi-clone-setup is for setting the hostname in /etc/hostname and /etc/hosts
61-
files. It is run automatically by rpi-clone if -s args are given,
62-
but before your first clone using a -s option, test run rpi-clone-setup with:
62+
`rpi-clone-setup` is for setting the hostname in `/etc/hostname` and `/etc/hosts`
63+
files. It is run automatically by `rpi-clone` if `-s` args are given,
64+
but before your first clone using a `-s` option, test run `rpi-clone-setup` with:
6365
```
6466
$ sudo rpi-clone-setup -t testhostname
6567
```
66-
And check the files under /tmp/clone-test to be sure the files have been
68+
And check the files under `/tmp/clone-test` to be sure the files have been
6769
edited correctly. If you need additional customizations to a clone,
68-
add them to the rpi-clone-setup script.
70+
add them to the `rpi-clone-setup` script.
6971

7072
#### On other OS:
7173
To install on another OS, rpi-clone may be renamed to suit. For example,

docs/_includes/header.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<header class="site-header">
2+
3+
<div class="wrapper">
4+
{%- assign default_paths = site.pages | map: "path" -%}
5+
{%- assign page_paths = site.header_pages | default: default_paths -%}
6+
{%- assign titles_size = 1 -%}
7+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
8+
9+
{%- if titles_size > 0 -%}
10+
<nav class="site-nav">
11+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
12+
<label for="nav-trigger">
13+
<span class="menu-icon">
14+
<svg viewBox="0 0 18 15" width="18px" height="15px">
15+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
16+
</svg>
17+
</span>
18+
</label>
19+
20+
<div class="trigger">
21+
<a class="page-link" href="/">Home</a>
22+
<a class="page-link" href="https://github.com/geerlingguy/rpi-clone">Source Code</a>
23+
{%- for path in page_paths -%}
24+
{%- assign my_page = site.pages | where: "path", path | first -%}
25+
{%- if my_page.title -%}
26+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
27+
{%- endif -%}
28+
{%- endfor -%}
29+
</div>
30+
</nav>
31+
{%- endif -%}
32+
</div>
33+
</header>

0 commit comments

Comments
 (0)