Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync docs to website #2378

Merged
merged 6 commits into from
Jul 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: publish_docs

on:
push:
branches:
- master
paths:
- 'docs/sources/**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Build Website
run: |
docker run -v ${PWD}/docs/sources:/hugo/content/docs/loki/latest --rm grafana/docs-base:latest /bin/bash -c 'mkdir -p content/docs/grafana/latest/ && touch content/docs/grafana/latest/menu.yaml && make prod'
sync:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v1
- run: git clone --single-branch --no-tags --depth 1 -b master https://grafanabot:${{ secrets.GH_BOT_ACCESS_TOKEN }}@github.com/grafana/website-sync ./.github/actions/website-sync
- name: publish-to-git
uses: ./.github/actions/website-sync
id: publish
with:
repository: grafana/website
branch: master
host: github.com
github_pat: '${{ secrets.GH_BOT_ACCESS_TOKEN }}'
source_folder: docs/sources
target_folder: content/docs/loki/latest
- shell: bash
run: |
test -n "${{ steps.publish.outputs.commit_hash }}"
test -n "${{ steps.publish.outputs.working_directory }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ dlv
rootfs/
dist
coverage.txt
.DS_Store
11 changes: 11 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
IMAGE = grafana/docs-base:latest

.PHONY: docs
docs:
docker pull ${IMAGE}
docker run -v ${PWD}/sources:/hugo/content/docs/loki/latest -p 3002:3002 --rm $(IMAGE) /bin/bash -c 'mkdir -p content/docs/grafana/latest/ && touch content/docs/grafana/latest/menu.yaml && make server'

.PHONY: docs-test
docs-test:
docker pull ${IMAGE}
docker run -v ${PWD}/sources:/hugo/content/docs/loki/latest -p 3002:3002 --rm $(IMAGE) /bin/bash -c 'mkdir -p content/docs/grafana/latest/ && touch content/docs/grafana/latest/menu.yaml && make prod'
95 changes: 47 additions & 48 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Loki Documentation

<p align="center"> <img src="logo_and_name.png" alt="Loki Logo"> <br>
<p align="center"> <img src="sources/logo_and_name.png" alt="Loki Logo"> <br>
<small>Like Prometheus, but for logs!</small> </p>

Grafana Loki is a set of components that can be composed into a fully featured
Expand All @@ -14,50 +14,49 @@ simplifies the operation and significantly lowers the cost of Loki.

## Table of Contents

1. [Overview](overview/README.md)
1. [Comparison to other Log Systems](overview/comparisons.md)
2. [Installation](installation/README.md)
1. [Installing with Tanka](installation/tanka.md)
2. [Installing with Helm](installation/helm.md)
3. [Installing with Docker](installation/docker.md)
4. [Installing locally](installation/local.md)
3. [Getting Started](getting-started/README.md)
1. [Grafana](getting-started/grafana.md)
2. [LogCLI](getting-started/logcli.md)
3. [Labels](getting-started/labels.md)
4. [Troubleshooting](getting-started/troubleshooting.md)
4. [Best Practices](best-practices/README.md)
1. [Current Best Practices](best-practices/current-best-practices.md)
5. [Configuration](configuration/README.md)
1. [Examples](configuration/examples.md)
6. [Clients](clients/README.md)
1. [Promtail](clients/promtail/README.md)
1. [Installation](clients/promtail/installation.md)
2. [Configuration](clients/promtail/configuration.md)
3. [Scraping](clients/promtail/scraping.md)
4. [Pipelines](clients/promtail/pipelines.md)
5. [Troubleshooting](clients/promtail/troubleshooting.md)
2. [Docker Driver](clients/docker-driver/README.md)
1. [Configuration](clients/docker-driver/configuration.md)
4. [Fluent Bit](../cmd/fluent-bit/README.md)
3. [Fluentd](clients/fluentd/README.md)
7. [LogQL](logql.md)
8. [Operations](operations/README.md)
1. [Authentication](operations/authentication.md)
2. [Observability](operations/observability.md)
3. [Scalability](operations/scalability.md)
4. [Storage](storage.md)
1. [Operations](operations/storage/README.md)
1. [Table Manager](operations/storage/table-manager.md)
2. [Retention](operations/storage/retention.md)
3. [BoltDB Shipper](operations/storage/boltdb-shipper.md)
5. [Multi-tenancy](operations/multi-tenancy.md)
6. [Loki Canary](operations/loki-canary.md)
9. [HTTP API](api.md)
10. [Architecture](architecture.md)
11. [Community](community/README.md)
1. [Governance](community/governance.md)
2. [Getting in Touch](community/getting-in-touch.md)
3. [Contributing to Loki](community/contributing.md)
12. [Loki Maintainers Guide](./maintaining/README.md)
1. [Releasing Loki](./maintaining/release.md)
1. [Overview](sources/overview/_index.md)
1. [Comparison to other Log Systems](sources/overview/comparisons.md)
2. [Installation](sources/installation/_index.md)
1. [Installing with Tanka](sources/installation/tanka.md)
2. [Installing with Helm](sources/installation/helm.md)
3. [Installing with Docker](sources/installation/docker.md)
4. [Installing locally](sources/installation/local.md)
3. [Getting Started](sources/getting-started/_index.md)
1. [Grafana](sources/getting-started/grafana.md)
2. [LogCLI](sources/getting-started/logcli.md)
3. [Labels](sources/getting-started/labels.md)
4. [Troubleshooting](sources/getting-started/troubleshooting.md)
4. [Best Practices](sources/best-practices/_index.md)
1. [Current Best Practices](sources/best-practices/current-best-practices.md)
5. [Configuration](sources/configuration/_index.md)
1. [Examples](sources/configuration/examples.md)
6. [Clients](sources/clients/_index.md)
1. [Promtail](sources/clients/promtail/_index.md)
1. [Installation](sources/clients/promtail/installation.md)
2. [Configuration](sources/clients/promtail/configuration.md)
3. [Scraping](sources/clients/promtail/scraping.md)
4. [Pipelines](sources/clients/promtail/pipelines.md)
5. [Troubleshooting](sources/clients/promtail/troubleshooting.md)
2. [Docker Driver](sources/clients/docker-driver/_index.md)
1. [Configuration](sources/clients/docker-driver/configuration.md)
4. [Fluent Bit](sources/../cmd/fluent-bit/_index.md)
3. [Fluentd](sources/clients/fluentd/_index.md)
7. [LogQL](sources/logql.md)
8. [Operations](sources/operations/_index.md)
1. [Authentication](sources/operations/authentication.md)
2. [Observability](sources/operations/observability.md)
3. [Scalability](sources/operations/scalability.md)
4. [Storage](sources/operations/storage/_index.md)
1. [Table Manager](sources/operations/storage/table-manager.md)
2. [Retention](sources/operations/storage/retention.md)
3. [BoltDB Shipper](sources/operations/storage/boltdb-shipper.md)
5. [Multi-tenancy](sources/operations/multi-tenancy.md)
6. [Loki Canary](sources/operations/loki-canary.md)
9. [HTTP API](sources/api.md)
10. [Architecture](sources/architecture.md)
11. [Community](sources/community/_index.md)
1. [Governance](sources/community/governance.md)
2. [Getting in Touch](sources/community/getting-in-touch.md)
3. [Contributing to Loki](sources/community/contributing.md)
12. [Loki Maintainers Guide](sources/./maintaining/_index.md)
1. [Releasing Loki](sources/./maintaining/release.md)
3 changes: 0 additions & 3 deletions docs/best-practices/README.md

This file was deleted.

29 changes: 0 additions & 29 deletions docs/clients/promtail/stages/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/community/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/getting-started/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/maintaining/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/operations/README.md

This file was deleted.

19 changes: 19 additions & 0 deletions docs/sources/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Loki Documentation
aliases:
- /docs/loki/
---

# Loki Documentation

<p align="center"> <img src="logo_and_name.png" alt="Loki Logo"> <br>
<small>Like Prometheus, but for logs!</small> </p>

Grafana Loki is a set of components that can be composed into a fully featured
logging stack.

Unlike other logging systems, Loki is built around the idea of only indexing
metadata about your logs: labels (just like Prometheus labels). Log data itself
is then compressed and stored in chunks in object stores such as S3 or GCS, or
even locally on the filesystem. A small index and highly compressed chunks
simplifies the operation and significantly lowers the cost of Loki.
Loading