Skip to content

Commit

Permalink
Docs: Overhaul of installation documentation (netdata#7841)
Browse files Browse the repository at this point in the history
* Initial commit to bring new branch up to speed with previous work

* Initial commit to bring new branch up to speed with previous work

* Pass through for grammar and typos

* Pass through for grammar and typos

* First additions

* Improvements to installation page plus new separate kickstart page

* Lots of new pages, lots of improvements

* Continued work

* Fixing the install grid

* Added methods to nav

* Fix typo and add kickstart to nav

* CSS cleanup

* Various cleanup

* Cleanup on update/uninstall pages

* Add responsiveness to install grid

* Update checking of the kickstart files MD5 checksusm.

This updates the CI script used to verify the MD5 checksums of the
kickstart files as being correct in the documentation to use the new
locations for the respective checksums.

This is more involved than a simple path update because the existing
script assumes that both checksums are listed in the same file, which is
no longer the case.

Any future updates that move the location of the checksums just need to
modify the lines in tests/installer/checksums.sh that start with
`check_checksum` to point to the correct files.

* Added Alpine package for James

* Add packages to top of installation page

* Fix for Chris

* Telemetry fixes

* Trying to fix CI

* Changing checksums

* Fix CI checks for kickstart checksums.

The changed wording was confusing the code that parsed the checksum out
of the documentation, this fixes the code to handle this new wording
correctly.

* Update kickstart-static64 checksum

* Update 64 checksum

Co-authored-by: Austin S. Hemmelgarn <[email protected]>
  • Loading branch information
joelhans and Ferroin authored Jan 27, 2020
1 parent a422345 commit 439f334
Show file tree
Hide file tree
Showing 20 changed files with 911 additions and 659 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ The above command will:
- Install any required packages on your system (it will ask you to confirm before doing so)
- Compile it, install it, and start it.

More installation methods and additional options can be found at the [installation page](packaging/installer/README.md).
More installation methods and additional options can be found at the [installation page](packaging/installer/).

To try Netdata in a docker container, run this:
To try Netdata in a Docker container, run this:

```sh
docker run -d --name=netdata \
Expand All @@ -155,7 +155,7 @@ docker run -d --name=netdata \
netdata/netdata
```

For more information about running Netdata with Docker, check the [docker installation page](packaging/docker/).
For more information about running Netdata in Docker, check the [docker installation page](packaging/docker/).

![image](https://user-images.githubusercontent.com/2662304/48304090-fd384080-e51b-11e8-80ae-eecb03118dda.png)

Expand Down
6 changes: 3 additions & 3 deletions backends/WALKTHROUGH.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ command to run (/bin/bash) and then chooses the base container images (centos:la
sitting inside the shell of the container.

After we have entered the shell we can install Netdata. This process could not be easier. If you take a look at [this
link](../packaging/installer/#installation), the Netdata devs give us several one-liners to install Netdata. I have not
had any issues with these one liners and their bootstrapping scripts so far (If you guys run into anything do share).
Run the following command in your container.
link](../packaging/installer/README.md), the Netdata devs give us several one-liners to install Netdata. I have not had
any issues with these one liners and their bootstrapping scripts so far (If you guys run into anything do share). Run
the following command in your container.

```sh
bash <(curl -Ss https://my-netdata.io/kickstart.sh) --dont-wait
Expand Down
16 changes: 14 additions & 2 deletions docs/generator/buildyaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,21 @@ echo -ne " - 'docs/what-is-netdata.md'
- 'docs/why-netdata/immediate-results.md'
- Installation:
- 'packaging/installer/README.md'
- 'packaging/docker/README.md'
- 'packaging/installer/UPDATE.md'
- Other methods:
- 'packaging/installer/methods/packages.md'
- 'packaging/installer/methods/kickstart.md'
- 'packaging/installer/methods/kickstart-64.md'
- 'packaging/docker/README.md'
- 'packaging/installer/methods/macos.md'
- 'packaging/installer/methods/freebsd.md'
- 'packaging/installer/methods/manual.md'
- 'packaging/installer/methods/offline.md'
- 'packaging/installer/methods/pfsense.md'
- 'packaging/installer/methods/synology.md'
- 'packaging/installer/methods/freenas.md'
- 'packaging/installer/methods/alpine.md'
- 'packaging/DISTRIBUTIONS.md'
- 'packaging/installer/UPDATE.md'
- 'packaging/installer/UNINSTALL.md'
- 'docs/getting-started.md'
"
Expand Down
132 changes: 113 additions & 19 deletions docs/generator/custom/css/netdata.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,68 @@ html [data-md-color-primary="blue-grey"] .md-nav--primary .md-nav__title--site {
margin: 0;
}

/* Custom styling for the installation page. */

.install-nav-buttons {
display: flex;
flex-flow: row wrap;
justify-content: space-around;
margin-top: 1.4rem;
}

.install-nav-buttons div {
flex: 1;
min-width: 300px;
}

.install-nav-buttons div:first-of-type {
flex: 1 100%;
}

.install-nav-buttons div:first-of-type .inner {
max-width: 400px;
margin: 0 auto;
margin-bottom: 1rem;
}

.install-nav-buttons > div:last-of-type {
margin-left: 2rem;
}

/* Custom styling for the installation page. */

.install-nav-buttons {
display: flex;
flex-flow: row wrap;
justify-content: space-around;
margin-top: 1.4rem;
}

.install-nav-buttons div {
flex: 1;
min-width: 300px;
}

.install-nav-buttons div:first-of-type {
flex: 1 100%;
}

.install-nav-buttons div:first-of-type .inner {
max-width: 400px;
margin: 0 auto;
margin-bottom: 1rem;
}

.install-nav-buttons > div:last-of-type {
margin-left: 2rem;
}

.nav-button {
border: 2px solid black;
border-radius: 4px;
display: block;
font-weight: 700;
margin: 0 auto;
margin: 0 auto -0.4rem auto;
padding: 0.6rem 0;
text-align: center;
}
Expand All @@ -333,26 +389,13 @@ html [data-md-color-primary="blue-grey"] .md-nav--primary .md-nav__title--site {
word-break: normal;
}

/* Give code blocks a little more line height */
.md-typeset pre {
line-height: 1.6;
/* Make the clipboard button a little darker. */
.md-clipboard::before {
color: #546e7a;
}

/* Show line numbers. */
[data-linenos]:before {
border-right: .0625rem solid #ddd;
color: #999;
content: attr(data-linenos);
display: inline-block;
margin-left: -1.2rem;
margin-right: .7rem;
padding-left: 1.2rem;
}

.md-typeset .highlight .hll {
display: inline;
margin: 0;
padding: 0;
.md-clipboard:focus::before {
color: #546e7a;
}

/* Underline links, but not badges/icons. */
Expand Down Expand Up @@ -384,4 +427,55 @@ html [data-md-color-primary="blue-grey"] .md-nav--primary .md-nav__title--site {
/* Fix the font size of admonition and details sections. */
.md-typeset .admonition, .md-typeset details {
font-size: 0.75rem;
}

/*
Installer grid
*/

/* Installation / OS and method grid */
.installer-grid {
display: grid;
grid-template-columns: repeat(4, [col-start] 1fr);
grid-gap: 2rem;
}

.grid-item {
grid-column: span 2;
border-radius: 2px;
border: 1px solid black;
padding: 1rem;
}

@media only screen and (max-width:76.25em) {
.grid-item {
grid-column: span 4;
}
}

.md-typeset .grid-item img {
border: 0;
display: inline;
margin: 0 1rem 0 0;
max-height: 52px;
vertical-align: middle;
}

.grid-item h3 {
margin-top: 0;
}

.grid-item ul {
margin-bottom: 0;
}

.grid-item ul li {
list-style-type: disclosure-closed;
margin: 0;
}

.md-typeset .grid-item li a {
border-bottom: 0px !important;
text-decoration: none;
display: inline;
}
7 changes: 3 additions & 4 deletions docs/step-by-step/step-07.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ modal](https://user-images.githubusercontent.com/12263278/64876743-be957a00-d647

If an update is available, you'll see a modal similar to the one above.

When you use the [automatic one-line installer script](../../packaging/installer/README.md#one-line-installation),
Netdata will automatically attempt to update every day. If you choose to update it manually, there are [several
well-documented methods](../../packaging/installer/UPDATE.md) to achieve that. However, it is best practice for you to
first go over the [changelog](../../CHANGELOG.md).
When you use the [automatic one-line installer script](../../packaging/installer/README.md) attempt to update every day.
If you choose to update it manually, there are [several well-documented methods](../../packaging/installer/UPDATE.md) to
achieve that. However, it is best practice for you to first go over the [changelog](../../CHANGELOG.md).

## Export and import a snapshot

Expand Down
Loading

0 comments on commit 439f334

Please sign in to comment.