Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add permalink to mkdocs headings #1032

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

mdelapenya
Copy link
Collaborator

@mdelapenya mdelapenya commented Apr 3, 2023

What does this PR do?

It adds a configuration to mkdocs to render a permalink next to each section from the table of contents. See https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/?h=toc#+toc.permalink

Render URL: https://deploy-preview-1032--testcontainers-go.netlify.app/

Why is it important?

It's possible to get the permalink from the TOC (right sidenav) but many times it's handy to copy a permalink from the content itself.

@mdelapenya mdelapenya requested a review from a team as a code owner April 3, 2023 13:37
@mdelapenya mdelapenya added the documentation Docs, docs, docs. label Apr 3, 2023
@mdelapenya mdelapenya self-assigned this Apr 3, 2023
@netlify
Copy link

netlify bot commented Apr 3, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit b8ae319
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/642ad6a3591647000893326c
😎 Deploy Preview https://deploy-preview-1032--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarcloud
Copy link

sonarcloud bot commented Apr 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya mdelapenya merged commit f95ac1e into testcontainers:main Apr 3, 2023
@mdelapenya mdelapenya deleted the mkdocs-permalink branch May 8, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Docs, docs, docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant