documentationjs / documentationjs/documentation

slugifying produces duplicate `div` ids

Open
#1,477 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.8k
Forks
481
PR merge metrics
No merged PRs in 30d

Description

In a project that I am converting to documentation I have:
* `gdal.Group.arrays` property in `gdal.Group` class
* `gdal.GroupArrays` class

They both end up having a div id of `gdalgrouparrays` and the fragment links do not work

I propose that the slugifying is tracked:
* we always reuse the same instance of `GithubSlugger`
* every time a new slug is requested, it is checked against a list of existing slugs and only if it does not exist, a new one is requested from `GithubSlugger`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.