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

fix: replace gh-md-toc with custom generate_toc #352

Merged
merged 13 commits into from
Sep 23, 2023

Conversation

cgrindel
Copy link
Owner

  • Remove gh-md-toc which relies on GitHub service.
  • Introduce generate_toc tool that uses a Go library to parse markdown files.

Closes #350.

@cgrindel cgrindel merged commit b694ee0 into main Sep 23, 2023
57 checks passed
@cgrindel cgrindel deleted the fix_markdown_toc_ci_error branch September 23, 2023 18:38
cgrindel-self-hosted-renovate bot added a commit to cgrindel/github_snippets that referenced this pull request Sep 23, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib)
| http_archive | minor | `v0.17.0` -> `v0.18.0` |

---

### Release Notes

<details>
<summary>cgrindel/bazel-starlib (cgrindel_bazel_starlib)</summary>

###
[`v0.18.0`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.18.0)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.17.0...v0.18.0)

#### What's Changed

- chore: update README.md for v0.17.0 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#343
- fix(deps): update module golang.org/x/net to v0.14.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#344
- chore(deps): update actions/checkout action to v4 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#345
- fix(deps): update module golang.org/x/net to v0.15.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#347
- chore(deps): update actions/checkout digest to
[`72f2cec`](https://togithub.com/cgrindel/bazel-starlib/commit/72f2cec)
by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#346
- chore(deps): update dependency bazel_gazelle to v0.33.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#348
- chore(deps): update tibdex/github-app-token action to v2 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#349
- fix: replace `gh-md-toc` with custom `generate_toc` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#352

**Full Changelog**:
cgrindel/bazel-starlib@v0.17.0...v0.18.0

#### Bazel Module Snippet

```python
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0")
```

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "dfa423dbf5aac0a5217d3780b295abd3ea1c633d5f9198712b23f0f14f2e8d92",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.18.0/bazel-starlib.v0.18.0.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM2LjEwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
cgrindel-self-hosted-renovate bot added a commit to cgrindel/rules_swiftformat that referenced this pull request Sep 23, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| cgrindel_bazel_starlib | bazel_dep | minor | `0.17.0` -> `0.18.0` |
| [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib)
| http_archive | minor | `v0.17.0` -> `v0.18.0` |

---

### Release Notes

<details>
<summary>cgrindel/bazel-starlib (cgrindel_bazel_starlib)</summary>

###
[`v0.18.0`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.18.0)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.17.0...v0.18.0)

#### What's Changed

- chore: update README.md for v0.17.0 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#343
- fix(deps): update module golang.org/x/net to v0.14.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#344
- chore(deps): update actions/checkout action to v4 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#345
- fix(deps): update module golang.org/x/net to v0.15.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#347
- chore(deps): update actions/checkout digest to
[`72f2cec`](https://togithub.com/cgrindel/bazel-starlib/commit/72f2cec)
by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#346
- chore(deps): update dependency bazel_gazelle to v0.33.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#348
- chore(deps): update tibdex/github-app-token action to v2 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#349
- fix: replace `gh-md-toc` with custom `generate_toc` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#352

**Full Changelog**:
cgrindel/bazel-starlib@v0.17.0...v0.18.0

#### Bazel Module Snippet

```python
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0")
```

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "dfa423dbf5aac0a5217d3780b295abd3ea1c633d5f9198712b23f0f14f2e8d92",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.18.0/bazel-starlib.v0.18.0.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM2LjEwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
renovate bot added a commit to bazel-contrib/rules_bazel_integration_test that referenced this pull request Sep 25, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| cgrindel_bazel_starlib | bazel_dep | minor | `0.17.0` -> `0.18.0` |
| [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib)
| http_archive | minor | `v0.17.0` -> `v0.18.0` |

---

### Release Notes

<details>
<summary>cgrindel/bazel-starlib (cgrindel_bazel_starlib)</summary>

###
[`v0.18.0`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.18.0)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.17.0...v0.18.0)

##### What's Changed

- chore: update README.md for v0.17.0 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#343
- fix(deps): update module golang.org/x/net to v0.14.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#344
- chore(deps): update actions/checkout action to v4 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#345
- fix(deps): update module golang.org/x/net to v0.15.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#347
- chore(deps): update actions/checkout digest to
[`72f2cec`](https://togithub.com/cgrindel/bazel-starlib/commit/72f2cec)
by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#346
- chore(deps): update dependency bazel_gazelle to v0.33.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#348
- chore(deps): update tibdex/github-app-token action to v2 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#349
- fix: replace `gh-md-toc` with custom `generate_toc` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#352

**Full Changelog**:
cgrindel/bazel-starlib@v0.17.0...v0.18.0

##### Bazel Module Snippet

```python
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0")
```

##### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "dfa423dbf5aac0a5217d3780b295abd3ea1c633d5f9198712b23f0f14f2e8d92",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.18.0/bazel-starlib.v0.18.0.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/bazel-contrib/rules_bazel_integration_test).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi45Ny4xIiwidXBkYXRlZEluVmVyIjoiMzYuOTcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
cgrindel-self-hosted-renovate bot added a commit to cgrindel/rules_swift_package_manager that referenced this pull request Sep 26, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| cgrindel_bazel_starlib | bazel_dep | minor | `0.17.0` -> `0.18.0` |
| [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib)
| http_archive | minor | `v0.17.0` -> `v0.18.0` |

---

### Release Notes

<details>
<summary>cgrindel/bazel-starlib (cgrindel_bazel_starlib)</summary>

###
[`v0.18.0`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.18.0)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.17.0...v0.18.0)

#### What's Changed

- chore: update README.md for v0.17.0 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#343
- fix(deps): update module golang.org/x/net to v0.14.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#344
- chore(deps): update actions/checkout action to v4 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#345
- fix(deps): update module golang.org/x/net to v0.15.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#347
- chore(deps): update actions/checkout digest to
[`72f2cec`](https://togithub.com/cgrindel/bazel-starlib/commit/72f2cec)
by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#346
- chore(deps): update dependency bazel_gazelle to v0.33.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#348
- chore(deps): update tibdex/github-app-token action to v2 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#349
- fix: replace `gh-md-toc` with custom `generate_toc` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#352

**Full Changelog**:
cgrindel/bazel-starlib@v0.17.0...v0.18.0

#### Bazel Module Snippet

```python
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0")
```

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "dfa423dbf5aac0a5217d3780b295abd3ea1c633d5f9198712b23f0f14f2e8d92",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.18.0/bazel-starlib.v0.18.0.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM2LjEwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
cgrindel pushed a commit to k1nkreet/rules_bazel_integration_test that referenced this pull request Sep 27, 2023
…el-contrib#210)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| cgrindel_bazel_starlib | bazel_dep | minor | `0.17.0` -> `0.18.0` |
| [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib)
| http_archive | minor | `v0.17.0` -> `v0.18.0` |

---

### Release Notes

<details>
<summary>cgrindel/bazel-starlib (cgrindel_bazel_starlib)</summary>

###
[`v0.18.0`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.18.0)

[Compare
Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.17.0...v0.18.0)

##### What's Changed

- chore: update README.md for v0.17.0 by
[@&#8203;cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator)
in
[cgrindel/bazel-starlib#343
- fix(deps): update module golang.org/x/net to v0.14.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#344
- chore(deps): update actions/checkout action to v4 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#345
- fix(deps): update module golang.org/x/net to v0.15.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#347
- chore(deps): update actions/checkout digest to
[`72f2cec`](https://togithub.com/cgrindel/bazel-starlib/commit/72f2cec)
by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#346
- chore(deps): update dependency bazel_gazelle to v0.33.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#348
- chore(deps): update tibdex/github-app-token action to v2 by
[@&#8203;cgrindel-self-hosted-renovate](https://togithub.com/cgrindel-self-hosted-renovate)
in
[cgrindel/bazel-starlib#349
- fix: replace `gh-md-toc` with custom `generate_toc` by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[cgrindel/bazel-starlib#352

**Full Changelog**:
cgrindel/bazel-starlib@v0.17.0...v0.18.0

##### Bazel Module Snippet

```python
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0")
```

##### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_bazel_starlib",
    sha256 = "dfa423dbf5aac0a5217d3780b295abd3ea1c633d5f9198712b23f0f14f2e8d92",
    urls = [
        "https://github.com/cgrindel/bazel-starlib/releases/download/v0.18.0/bazel-starlib.v0.18.0.tar.gz",
    ],
)

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

load("@&#8203;bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/bazel-contrib/rules_bazel_integration_test).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi45Ny4xIiwidXBkYXRlZEluVmVyIjoiMzYuOTcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix markdown TOC failure in CI
1 participant