docs: Hide “View page source” links¶
Description¶
Abstract¶
Apply “display: none” to “View page source” links
Motivation¶
The “View page source” links point to the source updated by the sphinxprettysearchresults sphinx extension so it was not the real sources.
In addition, I don’t see the point of having access to the RST sources.
Rationale¶
Instead of trying to remove them from the source, the chosen solution is a very easy one.
Info¶
- Hash
158f592794fc2b99dde316a09cbdb789a970767f
- Date
2020-09-25 23:37:12 +0200
- Parents
docs(source): Lighten source code pages [a94891ff] — 2020-09-25 23:36:45 +0200
- Children
docs(source): Add emphasis to the first line of docstrings [cc73cb6a] — 2020-09-25 23:37:34 +0200
- Branches
- Tags
(No tags)
Changes¶
docs/_static/css/custom.css¶
- Type
Modified
- Stats
+4 -0
@@ -1,3 +1,7 @@
+/* Hide "View page source" link (because it links to source used for search) */
+.wy-breadcrumbs-aside {
+ display: none !important;
+}
/* Hide class attributes because they are duplicate of the class vars found by napoleon plugins
and those vars are more detailed.
Side effect: If attributes are not defined in docstrings, they won't appear at all.