Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <choldgraf@gmail.com> * Update docs/user_guide/theme-elements.md Co-authored-by: Chris Holdgraf <choldgraf@gmail.com> * Update src/pydata_sphinx_theme/__init__.py Co-authored-by: Chris Holdgraf <choldgraf@gmail.com> * Update src/pydata_sphinx_theme/__init__.py Co-authored-by: Chris Holdgraf <choldgraf@gmail.com> * refactor: new function names * maint: use fontawesome 6 Co-authored-by: Chris Holdgraf <choldgraf@gmail.com>
- Loading branch information
Showing
9 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
Page 1 | ||
====== | ||
|
||
- here's a normal link: https://pydata-sphinx-theme.readthedocs.io/en/latest/ | ||
- Here's a github link: https://github.com/2i2c-org/infrastructure/issues/1329 | ||
- Here's a gitlab link: https://gitlab.com/gitlab-org/gitlab/-/issues/375583 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<a class="github reference external" href="https://github.com/2i2c-org/infrastructure/issues/1329"> | ||
2i2c-org/infrastructure#1329 | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<a class="gitlab reference external" href="https://gitlab.com/gitlab-org/gitlab/-/issues/375583"> | ||
gitlab-org/gitlab#375583 | ||
</a> |