Skip to content

Commit 09e29c4

Browse files
committed
docs: update documentation home page
1 parent b99698b commit 09e29c4

File tree

7 files changed

+73
-3
lines changed

7 files changed

+73
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.td-content {
2+
> h1 {
3+
color: $secondary
4+
}
5+
}
6+
.section-index {
7+
h5 {
8+
a {
9+
color: $secondary
10+
}
11+
}
12+
}

docs/config.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,19 @@ weight = 1
2020

2121
[markup]
2222
[markup.goldmark]
23+
[markup.goldmark.extensions]
24+
definitionList = true
25+
table = true
26+
typographer = false
2327
[markup.goldmark.renderer]
2428
unsafe = true
2529
[markup.highlight]
26-
style = "tango"
30+
lineNoStart = 1
31+
lineNos = false
32+
lineNumbersInTable = true
33+
noClasses = true
34+
style = "emacs"
35+
tabWidth = 2
2736

2837
[params]
2938
description = ""

docs/content/en/_index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,14 @@
22
title = "Watchdog"
33
linkTitle = "Watchdog"
44
+++
5+
6+
{{< blocks/cover title="Welcome to Watchdog" image_anchor="top" height="full" >}}
7+
<div class="mx-auto">
8+
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
9+
Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
10+
</a>
11+
<a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://github.com/groupe-edf/watchdog">
12+
Download <i class="fab fa-github ml-2 "></i>
13+
</a>
14+
</div>
15+
{{< /blocks/cover >}}

docs/content/en/docs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ menu:
77
---
88
Welcome to the Watchdog user guide! This guide shows you how to get started creating custom hooks declaratively using Watchdog.
99

10-
## What is Watchdog?
10+
## What is Watchdog?

docs/content/en/docs/deployment/promtail.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,25 @@ description: >
66
Configuring Promtail.
77
---
88

9-
Promtail is configured in a YAML file (usually referred to as config.yaml) which contains information on the Promtail server, where positions are stored, and how to scrape logs from files. See `deployments/promtail/watchdog.yaml`
9+
Promtail is configured in a YAML file (usually referred to as config.yaml) which contains information on the Promtail server, where positions are stored, and how to scrape logs from files.
10+
11+
```yaml
12+
server:
13+
http_listen_port: 9080
14+
grpc_listen_port: 0
15+
16+
positions:
17+
filename: /tmp/positions.yaml
18+
19+
clients:
20+
- url: http://localhost:3100/loki/api/v1/push
21+
22+
scrape_configs:
23+
- job_name: watchdog
24+
static_configs:
25+
- targets:
26+
- localhost
27+
labels:
28+
job: watchdog
29+
__path__: /var/log/watchdog/watchdog.log
30+
```
2.17 MB
Loading

docs/layouts/_default/baseof.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html lang="{{ .Site.Language.Lang }}" class="no-js">
3+
<head>
4+
{{ partial "head.html" . }}
5+
</head>
6+
<body class="td-{{ .Kind }}">
7+
<header>
8+
{{ partial "navbar.html" . }}
9+
</header>
10+
<div class="container-fluid td-default td-outer">
11+
<main role="main" class="td-main">
12+
{{ block "main" . }}{{ end }}
13+
</main>
14+
</div>
15+
{{ partialCached "scripts.html" . }}
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)