Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !32953

Replace AnchorJS with a Hugo render hook

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged XhmikosR requested to merge main-xmr-docs-render-heading into main Feb 01, 2021
  • Overview 9
  • Commits 6
  • Pipelines 0
  • Changes 5

TODO:

  • move the levels to config.yml
  • a11y
  • maybe use ::after?
  • add padding?
  • fix :focus if possible
  • test that there are no regressions

Idea taken from https://github.com/gohugoio/gohugoioTheme/pull/146

Pros:

  • No JS
  • ...

Cons:

  • Works only with Markdown headings, but on the other hand our ToC only works with Markdown already
  • ...

Preview: https://deploy-preview-32953--twbs-bootstrap.netlify.app/docs/5.1/getting-started/introduction/

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: main-xmr-docs-render-heading