You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENH: Automatically shorten links for GitHub/GitLab (#957)
* shorten links
* typo
* add icons scss
* add example
* check uri existence
* fix: docutil deprecation warning
* manage smaller links (user, repository, github itself)
* fix: workaround for reference without body
* set up the example as a link
* update the tests
* typo
* typo
* fix: test uses 1 space indentation
* test: add the gitlab link
* add a normal link
* use > instead of >= for tests
* parse_path cannot be called if platform is None
* Update docs/user_guide/theme-elements.md
Co-authored-by: Chris Holdgraf <[email protected]>
* Update docs/user_guide/theme-elements.md
Co-authored-by: Chris Holdgraf <[email protected]>
* Update src/pydata_sphinx_theme/__init__.py
Co-authored-by: Chris Holdgraf <[email protected]>
* Update src/pydata_sphinx_theme/__init__.py
Co-authored-by: Chris Holdgraf <[email protected]>
* refactor: new function names
* maint: use fontawesome 6
Co-authored-by: Chris Holdgraf <[email protected]>
Copy file name to clipboardExpand all lines: docs/user_guide/theme-elements.md
+6
Original file line number
Diff line number
Diff line change
@@ -143,3 +143,9 @@ For example, the admonition sidebar was created with the following markdown:
143
143
Some sidebar content.
144
144
```
145
145
````
146
+
147
+
## Link shortening for git repository services
148
+
149
+
Many projects have links back to their issues / PRs hosted on platforms like **GitHub** or **GitLab**. Instead of displaying these as raw links, this theme does some lightweight formatting for these platforms specifically. Here is an example from the issue requesting this feature: [https://github.com/pydata/pydata-sphinx-theme/issues/841](https://github.com/pydata/pydata-sphinx-theme/issues/841).
0 commit comments