Skip to content

Commit 7ef85d6

Browse files
authored
Merge branch 'master' into lynettemiles/sc-142988/ci-cd-for-fluent-markdownlint
Signed-off-by: Lynette Miles <[email protected]>
2 parents 1d6e8d9 + 27a883d commit 7ef85d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+246
-195
lines changed

.github/workflows/pr-lint.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ jobs:
3232
with:
3333
github_token: ${{ secrets.GITHUB_TOKEN }}
3434
reporter: github-pr-review # Change reporter. (Only `github-pr-check` is supported at the moment).
35+
vale:
36+
name: runner / vale
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: errata-ai/[email protected]
41+
with:
42+
files: all
43+
fail_on_error: true

.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IgnoredScopes = tt, code
55
[formats]
66
mdx = md
77

8-
[*.{md,markdown,txt,htm,html}]
8+
[*.{md,markdown}]
99
BasedOnStyles = FluentBit
1010

1111
FluentBit.Terms = YES

CONTRIBUTING.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ within a few minutes.
4242
If you open a pull request that requires ongoing discussion or review, the Fluent Bit
4343
maintainers will add a `waiting-for-user` to your pull request. This tag means that
4444
we're blocked from moving forward until you reply. To keep contributions from going
45-
stale, we'll wait 45 days for your response, but we may close the pull request if we
45+
stale, we'll wait 45 days for your response, but we might close the pull request if we
4646
don't hear back from you by then.
4747

4848
## Submit a contribution
@@ -132,21 +132,29 @@ the prose of your pull requests and adds suggestions to improve style and clarit
132132
There is a [VSCode plugin for Vale](https://marketplace.visualstudio.com/items?itemName=ChrisChinchilla.vale-vscode)
133133
which outputs suggestions to the problems pane in the IDE.
134134

135+
The Fluent Bit repository runs Vale as a GitHub Action on updated text in new pull
136+
requests. Vale suggestions, errors, and warnings will display in GitHub on the
137+
**Files changed** page.
138+
135139
[See the Vale tests for Fluent Bit](https://github.com/fluent/fluent-bit-docs/tree/master/vale-styles).
136140

137141
Most Vale tests are at the `suggestion` level and won't block merging.
138142

139-
The following tests are at a `error` level and will prevent merging:
143+
The following tests are at `error` level and will cause a test failure:
140144

141145
- [AmSpelling](https://developers.google.com/style/word-list)
142146
- [Ampersand](https://developers.google.com/style/word-list#ampersand)
147+
- [Don'tUse](https://github.com/fluent/fluent-bit-docs/blob/master/vale-styles/FluentBit/DontUse.yml)
143148
- [Emdash](https://github.com/errata-ai/Google/blob/master/Google/EmDash.yml)
144149
- [Endash](https://github.com/errata-ai/Google/blob/master/Google/EmDash.yml)
145150
- [Exclamation](https://github.com/errata-ai/Google/blob/master/Google/Exclamation.yml)
146151
- [Gender](https://developers.google.com/style/pronouns#gender-neutral-pronouns)
147152
- [GenderBias](https://developers.google.com/style/inclusive-documentation)
153+
- [Hints](https://github.com/fluent/fluent-bit-docs/blob/master/vale-styles/FluentBit/Hints.yml) using `>`.
148154
- [HeadingPunctuation](https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings)
155+
- [Latin](https://developers.google.com/style/abbreviations)
149156
- [LyHyphens](https://developers.google.com/style/hyphens)
157+
- [MayMightCan](https://github.com/fluent/fluent-bit-docs/blob/master/vale-styles/FluentBit/MayMightCan.yml)
150158
- [NonStandardQuotes](https://github.com/fluent/fluent-bit-docs/blob/master/vale-styles/FluentBit/NonStandardQuotes.yml):
151159
[Use standard quotes](https://developers.google.com/style/quotation-marks#straight-and-curly-quotation-marks).
152160
By default, Google Docs and Microsoft Word turn standard straight quotes into "smart"
@@ -155,13 +163,21 @@ The following tests are at a `error` level and will prevent merging:
155163
in [Google Docs](https://support.google.com/docs/thread/217182974/can-i-turn-smart-quotes-off-in-a-google-doc?hl=en)
156164
or [Microsoft Word](https://support.microsoft.com/en-us/office/smart-quotes-in-word-and-powerpoint-702fc92e-b723-4e3d-b2cc-71dedaf2f343)
157165
to prevent this problem.
166+
- [Optional plurals](https://developers.google.com/style/plurals-parentheses)
158167
- [Ordinal](https://developers.google.com/style/numbers)
168+
- [Periods](https://developers.google.com/style/abbreviations)
169+
- [Ranges](https://developers.google.com/style/hyphens)
159170
- [Repetition](https://github.com/errata-ai/vale/blob/v3/testdata/styles/Markup/Repetition.yml):
160171
Checks for the same word used twice in succession.
172+
- [Slang](https://developers.google.com/style/abbreviations)
173+
- [Spacing](https://developers.google.com/style/sentence-spacing)
161174

162175
The following tests are at a `warning` level and won't prevent merging:
163176

164177
- [Ampersand](https://developers.google.com/style/word-list#ampersand)
178+
- [First person](https://developers.google.com/style/pronouns#personal-pronouns)
179+
- [Possessives](https://developers.google.com/style/possessives)
180+
- [Simplicity](https://developers.google.com/style/word-list#easy)
165181

166182
### Markdownlint
167183

MAINTAINERS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fluent Bit Documentation Maintainers
22

3-
Fluent Bit is developed and supported by many individuals and companies. The following table list the names of maintainers per components and the company supporting their work.
3+
Fluent Bit is developed and supported by many individuals and companies. The following table list the names of maintainers per components and the company supporting their work.
44

55
| Maintainer Name | Documentation portion | Company |
66
| :---------------------------------------------------- | ------------------------ | ------------------------------------------------- |
@@ -11,4 +11,3 @@ Fluent Bit is developed and supported by many individuals and companies. The fo
1111
| [Alexa Kreizinger](https://github.com/alexakreizinger) | All | [Chronosphere](https://chronosphere.io) |
1212
| [Paige Cruz](https://github.com/paigerduty) | All | [Chronosphere](https://chronosphere.io/) |
1313
| [Eric D. Schabell](https://github.com/eschabell) | All | [Chronosphere](https://chronosphere.io/) |
14-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ description: High Performance Telemetry Agent for Logs, Metrics and Traces
2424
- Connect nearly any source to nearly any destination using preexisting plugins
2525
- Extensibility:
2626
- Write input, filter, or output plugins in the C language
27-
- WASM: [WASM Filter Plugins](development/wasm-filter-plugins.md) or [WASM Input Plugins](development/wasm-input-plugins.md)
27+
- Wasm: [Wasm Filter Plugins](development/wasm-filter-plugins.md) or [Wasm Input Plugins](development/wasm-input-plugins.md)
2828
- Write [Filters in Lua](pipeline/filters/lua.md) or [Output plugins in Golang](development/golang-output-plugins.md)
2929
- [Monitoring](administration/monitoring.md): Expose internal metrics over HTTP in JSON and [Prometheus](https://prometheus.io/) format
3030
- [Stream Processing](stream-processing/introduction.md): Perform data selection and transformation using simple SQL queries

SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
* [Docker events](pipeline/inputs/docker-events.md)
9999
* [Docker metrics](pipeline/inputs/docker-metrics.md)
100100
* [Dummy](pipeline/inputs/dummy.md)
101-
* [Ebpf](pipeline/inputs/ebpf.md)
101+
* [eBPF](pipeline/inputs/ebpf.md)
102102
* [Elasticsearch](pipeline/inputs/elasticsearch.md)
103103
* [Exec WASI](pipeline/inputs/exec-wasi.md)
104104
* [Exec](pipeline/inputs/exec.md)

administration/configuring-fluent-bit/unit-sizes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Unit sizes
22

3-
Some configuration directives in [Fluent Bit](http://fluentbit.io) refer to unit sizes such as when defining the size of a buffer or specific limits. Plugins like [Tail Input](../../pipeline/inputs/tail), [Forward Input](../../pipeline/inputs/forward.md) or generic properties like [`Mem_Buf_Limit`](../backpressure) use unit sizes.
3+
Some configuration directives in [Fluent Bit](http://fluentbit.io) refer to unit sizes such as when defining the size of a buffer or specific limits. Plugins like [Tail Input](../../pipeline/inputs/tail.md), [Forward Input](../../pipeline/inputs/forward.md), or generic properties like [`Mem_Buf_Limit`](../backpressure.md) use unit sizes.
44

55
Fluent Bit v0.11.10 standardized unit sizes across the core and plugins. The following table describes the options that can be used and what they mean:
66

administration/configuring-fluent-bit/yaml/configuration-file.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: Learn about the YAML configuration file used by Fluent Bit
44

55
# YAML configuration file
66

7-
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=864c6f0e-8977-4838-8772-84416943548e" />
7+
<img referrerpolicy="no-referrer-when-downgrade"
8+
src="https://static.scarf.sh/a.png?x-pxid=864c6f0e-8977-4838-8772-84416943548e" alt="" />
89

910
One of the ways to configure Fluent Bit is using a YAML configuration file that works at a global scope.
1011

concepts/data-pipeline/parser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The parser converts unstructured data to structured data. As an example, conside
2626
192.168.2.20 - - [28/Jul/2006:10:27:10 -0300] "GET /cgi-bin/try/ HTTP/1.0" 200 3395
2727
```
2828

29-
This log line is a raw string without format. Structuring the log makes it easier to process the data later. If the [regular expression parser](../../pipeline/parsers/regular-expression) is used, the log entry could be converted to:
29+
This log line is a raw string without format. Structuring the log makes it easier to process the data later. If the [regular expression parser](../../pipeline/parsers/regular-expression.md) is used, the log entry could be converted to:
3030

3131
```javascript
3232
{

local-testing/validating-your-data-and-structure.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Fluent Bit supports multiple sources and formats. In addition, it provides filte
44

55
Fluent Bit users are encouraged to integrate data validation in their continuous integration (CI) systems.
66

7-
In a normal production environment, inputs, filters, and outputs are defined in configuration files. Fluent Bit provides the [Expect](../pipeline/filters/expect) filter, which you can use to validate keys and values from your records and take action when an exception is found.
7+
In a normal production environment, inputs, filters, and outputs are defined in configuration files. Fluent Bit provides the [Expect](../pipeline/filters/expect.md) filter, which you can use to validate keys and values from your records and take action when an exception is found.
88

99
A simplified view of the data processing pipeline is as follows:
1010

@@ -20,8 +20,8 @@ IS --> Fil --> OD
2020

2121
Consider the following pipeline, which uses a JSON file as its data source and has two filters:
2222

23-
- [Grep](../pipeline/filters/grep) to exclude certain records.
24-
- [Record Modifier](../pipeline/filters/record-modifier) to alter records' content by adding and removing specific keys.
23+
- [Grep](../pipeline/filters/grep.md) to exclude certain records.
24+
- [Record Modifier](../pipeline/filters/record-modifier.md) to alter records' content by adding and removing specific keys.
2525

2626
```mermaid
2727
flowchart LR
@@ -37,7 +37,7 @@ record --> stdout
3737

3838
Add data validation between each step to ensure your data structure is correct.
3939

40-
This example uses the [Expect](../pipeline/filters/expect) filter.
40+
This example uses the [Expect](../pipeline/filters/expect.md) filter.
4141

4242
```mermaid
4343
flowchart LR
@@ -164,7 +164,7 @@ The following is the Fluent Bit classic parsers file:
164164
{% endtab %}
165165
{% endtabs %}
166166

167-
If the JSON parser fails or is missing in the [Tail](../pipeline/inputs/tail) input (`parser json`), the Expect filter triggers the `exit` action.
167+
If the JSON parser fails or is missing in the [Tail](../pipeline/inputs/tail.md) input (`parser json`), the Expect filter triggers the `exit` action.
168168

169169
To extend the pipeline, add a Grep filter to match records that map `label` containing a key called `name` with value the `abc`, and add an Expect filter to re-validate that condition:
170170

0 commit comments

Comments
 (0)