Skip to content

Commit 107aa66

Browse files
authored
Remove the external link icon for links in submodules (#1916)
Remove the external link icon from Plone Sphinx Theme for links in submodules that refer to Plone 6 Documentation via Intersphinx. Although these links have `external` in their class, they are actually internal to Plone 6 Documentation. For example, see the index page of Volto UI. https://6.docs.plone.org/volto/ And see that the external link icon for "Plone content management system" is correct, but the link for "First-time contributors" is actually internal but has the external link icon.
1 parent fa8c090 commit 107aa66

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/_static/documentation.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
Remove the external link icon from Plone Sphinx Theme for links
3+
in submodules that refer to Plone 6 Documentation via Intersphinx.
4+
Although these links have `external` in their class, they are
5+
actually internal to Plone 6 Documentation.
6+
*/
7+
.reference.external::after {
8+
all: unset;
9+
}
10+
a:not([title="(in Plone Documentation v6)"]).reference.external::after {
11+
margin-left: .3em;
12+
display: inline-block;
13+
content: var(--pst-icon-external-link);
14+
white-space: nowrap;
15+
font: var(--fa-font-solid);
16+
font-size: .75em;
17+
}

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
# If false, no index is generated.
279279
html_use_index = True
280280

281-
html_css_files = [("print.css", {"media": "print"})]
281+
html_css_files = ["documentation.css", ("print.css", {"media": "print"})]
282282
html_js_files = []
283283

284284
html_extra_path = [

0 commit comments

Comments
 (0)