Open nvuillam opened 2 years ago
So you mean that I could build the issue title directly in my website code, then pass it to utterances ?
I could do that, but with the huge number of versioned documentations built with mkdocs, i thought it will be nice to do that within utterances, so it will save time to all the doc maintainers who will use you great tool :)
So you mean that I could build the issue title directly in my website code, then pass it to utterances ?
I could do that, but with the huge number of versioned documentations built with mkdocs, i thought it will be nice to do that within utterances, so it will save time to all the doc maintainers who will use you great tool :)
😄Whether to merge or not is determined by @jdanyow , but I think the probability of merger is small. "utterances" hasn't added new features for a long time.
@zsdycs i hope ot will be accepted, this will please for sure to all mkdocs / mike users :)
An alternative I would suggest is adding a regex option to capture whatever part you want from the string to search for the issue. That could work with other mapping
s as well, such as title
, og:title
, etc.
Shameless plug: I think that's something I would like to add to my project giscus :eyes:
@jdanyow any chance to see this PR merged someday ? :)
Fixes #567
New issue-term pathnameVersion, to remove first segment of pathname in case the documentation is versioned
Some documentations are versioned (mkdocs-material with mike, for example )
To not have different comments depending on versions, we need to be able to use
my/doc/page
as issue-term instead ofv5.0.1/my/doc/page
Example code to embed: