kobsio / kobs

Kubernetes Observability Platform
https://kobs.io
MIT License
153 stars 10 forks source link

[techdocs] Fix Heading #635

Closed ricoberger closed 6 months ago

ricoberger commented 6 months ago

Fix the renderHeading function, which was still using the level property which isn't available anymore. We are now using the node.tagName property to render the element.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.72%. Comparing base (e682198) to head (a3b8ff8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #635 +/- ## ======================================= Coverage 71.72% 71.72% ======================================= Files 442 442 Lines 65056 65056 Branches 2871 2872 +1 ======================================= Hits 46663 46663 Misses 18095 18095 Partials 298 298 ``` | [Flag](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | Coverage Δ | | |---|---|---| | [go](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `68.29% <ø> (ø)` | | | [node-app](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `0.00% <ø> (ø)` | | | [node-azure](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `94.57% <ø> (ø)` | | | [node-core](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `42.10% <ø> (ø)` | | | [node-datadog](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `92.77% <ø> (ø)` | | | [node-elasticsearch](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `91.68% <ø> (ø)` | | | [node-flux](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `65.99% <ø> (ø)` | | | [node-github](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `98.30% <ø> (ø)` | | | [node-grafana](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `89.65% <ø> (ø)` | | | [node-harbor](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `94.88% <ø> (ø)` | | | [node-helm](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `99.15% <ø> (ø)` | | | [node-jaeger](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `90.96% <ø> (ø)` | | | [node-jira](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `95.66% <ø> (ø)` | | | [node-kiali](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `89.98% <ø> (ø)` | | | [node-klogs](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `93.41% <ø> (ø)` | | | [node-mongodb](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `95.89% <ø> (ø)` | | | [node-opsgenie](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `83.77% <ø> (ø)` | | | [node-prometheus](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `88.14% <ø> (ø)` | | | [node-rss](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `96.16% <ø> (ø)` | | | [node-runbooks](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `96.36% <ø> (ø)` | | | [node-signalsciences](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `97.47% <ø> (ø)` | | | [node-sonarqube](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `96.12% <ø> (ø)` | | | [node-sql](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `88.80% <ø> (ø)` | | | [node-techdocs](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `93.14% <100.00%> (ø)` | | | [node-velero](https://app.codecov.io/gh/kobsio/kobs/pull/635/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio) | `80.71% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kobsio#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.