[docs.gitea.io] Feature request: add anchors to sections #3398

Closed
opened 2025-11-02 05:11:45 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @slonopotamus on GitHub (May 30, 2019).

Currently, sections on https://docs.gitea.io/en-us/ do not have <a name="...">, so it is impossible to link to particular documentation section.

Hugo docs have anchors, though I failed to find how this can be enabled in Hugo.

Originally created by @slonopotamus on GitHub (May 30, 2019). Currently, sections on https://docs.gitea.io/en-us/ do not have `<a name="...">`, so it is impossible to link to particular documentation section. Hugo docs [have anchors](https://gohugo.io/templates/introduction/#access-a-predefined-variable), though I failed to find how this can be enabled in Hugo.
GiteaMirror added the issue/confirmedtype/docs labels 2025-11-02 05:11:45 -06:00
Author
Owner

@techknowlogick commented on GitHub (Jun 5, 2019):

It is currently possible to link to specific sections, ex https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui. However there is still no easy way to discover the specific anchor for each heading (to find the link I just pasted I had to view source).

@techknowlogick commented on GitHub (Jun 5, 2019): It is currently possible to link to specific sections, ex https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui. However there is still no easy way to discover the specific anchor for each heading (to find the link I just pasted I had to view source).
Author
Owner

@slonopotamus commented on GitHub (Jun 5, 2019):

Oh. I didn't know headers with id="..." can also be linked with anchor. Okay, then you're right, the only missing piece is human-friendly way of discovering a link.

@slonopotamus commented on GitHub (Jun 5, 2019): Oh. I didn't know headers with `id="..."` can also be linked with anchor. Okay, then you're right, the only missing piece is human-friendly way of discovering a link.
Author
Owner

@jolheiser commented on GitHub (Jun 5, 2019):

I was thinking of using a combination of Hugo shortcodes and the anchorize method.

anchorize docs
shortcodes docs

@jolheiser commented on GitHub (Jun 5, 2019): I was thinking of using a combination of Hugo shortcodes and the `anchorize` method. [anchorize docs](https://gohugo.io/functions/anchorize/) [shortcodes docs](https://gohugo.io/content-management/shortcodes/)
Author
Owner

@stale[bot] commented on GitHub (Aug 4, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 4, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@jolheiser commented on GitHub (Dec 6, 2019):

Okay, I got back to this. There is a PR over on gitea.com
https://gitea.com/gitea/theme/pulls/78

@jolheiser commented on GitHub (Dec 6, 2019): Okay, I got back to this. There is a PR over on gitea.com https://gitea.com/gitea/theme/pulls/78
Author
Owner

@lunny commented on GitHub (Dec 8, 2019):

Closing this since https://gitea.com/gitea/theme/pulls/78 merged.

@lunny commented on GitHub (Dec 8, 2019): Closing this since https://gitea.com/gitea/theme/pulls/78 merged.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3398