nextstrain / sphinx-theme

A Sphinx theme for Nextstrain's documentation, based on Read The Docs' default theme.
https://docs.nextstrain.org/projects/sphinx-theme/
MIT License
0 stars 5 forks source link

Mark external links with a trailing icon #12

Closed tsibley closed 3 years ago

tsibley commented 3 years ago

Font Awesome (v4) is already included by the RTD theme and Sphinx already tags external links with a class in the HTML. Glue the two together with some CSS.

Resolves #3.

eharkins commented 3 years ago

I guess the build just failed because it's not on top of #11. Once we merge that, the build should work and we can preview it, correct?

tsibley commented 3 years ago

Yes, except we don't have any external links in the sidebar of this project to preview, I think. Something like the RTD theme's demo documentation showing how every thing renders would be useful here, but it was more work than I wanted to take on right now since I'm already several yaks deep.

tsibley commented 3 years ago

@eharkins Ok, so I shaved another yak (very small this time) and added a "demo doc" section showing the external link styling: https://nextstrain-sphinx-theme--12.org.readthedocs.build/en/12/index.html