Skip to content

Commit cbb1563

Browse files
authored
Add doctoc to automatically generate TOCs (#220)
1 parent c3e2daa commit cbb1563

File tree

4 files changed

+33
-18
lines changed

4 files changed

+33
-18
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ repos:
4949
hooks:
5050
- id: yamllint
5151

52+
- repo: https://github.com/thlorenz/doctoc
53+
rev: v2.2.0
54+
hooks:
55+
- id: doctoc
56+
args: [--update-only, --title, "## Table of Contents"]
57+
5258
ci:
5359
skip: [golangci-lint-full]
5460
autoupdate_schedule: quarterly # We use renovate for more frequent updates and there's no way to disable autoupdate

.yamllint.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
yaml-files:
3-
- "*.yaml"
4-
- "*.yml"
5-
62
ignore-from-file: .gitignore
73

84
extends: default

CONTRIBUTING.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
The following is a set of guidelines for contributing to the NGINX Telemetry Exporter. We really appreciate that you are
44
considering contributing!
55

6-
## Table Of Contents
7-
8-
[Ask a Question](#ask-a-question)
9-
10-
[Getting Started](#getting-started)
11-
12-
[Contributing](#contributing)
13-
14-
[Style Guides](#style-guides)
15-
16-
- [Git Style Guide](#git-style-guide)
17-
- [Go Style Guide](#go-style-guide)
18-
19-
[Code of Conduct](CODE_OF_CONDUCT.md)
6+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
7+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
8+
## Table of Contents
9+
10+
- [Ask a Question](#ask-a-question)
11+
- [Getting Started](#getting-started)
12+
- [Contributing](#contributing)
13+
- [Report a Bug](#report-a-bug)
14+
- [Suggest an Enhancement](#suggest-an-enhancement)
15+
- [Open a Pull Request](#open-a-pull-request)
16+
- [Issue lifecycle](#issue-lifecycle)
17+
- [F5 Contributor License Agreement (CLA)](#f5-contributor-license-agreement-cla)
18+
- [Style Guides](#style-guides)
19+
- [Git Style Guide](#git-style-guide)
20+
- [Go Style Guide](#go-style-guide)
21+
22+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2023

2124
## Ask a Question
2225

release-process.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
This document outlines the steps involved in the release process for the Telemetry Exporter project.
44

5+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
6+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
7+
## Table of Contents
8+
9+
- [Versioning](#versioning)
10+
- [Release Planning and Development](#release-planning-and-development)
11+
- [Releasing a New Version](#releasing-a-new-version)
12+
13+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
14+
515
## Versioning
616

717
The project follows [Semantic Versioning](https://semver.org/) for versioning.

0 commit comments

Comments
 (0)