Skip to content

Conversation

@uatach
Copy link
Contributor

@uatach uatach commented Jun 26, 2024

Fixes #808

It seems that enabling the toc extension and its permalink option should enable anchors in the section headers as per https://python-markdown.github.io/extensions/toc/#usage

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!
Were you able to manually run the doc server with these changes? It would be great to see if this will create anchors in the docs website.

Here's how to run the doc server
https://github.com/apache/iceberg-python/tree/main/mkdocs

@uatach
Copy link
Contributor Author

uatach commented Jun 26, 2024

Yes, I was able to run it locally and it worked.

@kevinjqliu
Copy link
Contributor

Thank you! Do you mind adding a screenshot of the local docs server with the anchor?

@uatach
Copy link
Contributor Author

uatach commented Jun 26, 2024

Yes, sure, no problem!

image

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution and the screenshot confirming the anchor.
LGTM!

@Fokko
Copy link
Contributor

Fokko commented Jun 26, 2024

Thanks @uatach for fixing this! I always used the menu on the right hand side to get an anchored link, which is very awkward. Thanks @kevinjqliu for the great review!

@Fokko Fokko merged commit 4049971 into apache:main Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add anchors to sections in "Configuration" documentation page

3 participants