Skip to content

Commit

Permalink
Update styles and configuration to latest.
Browse files Browse the repository at this point in the history
- Update styles from upstream Sphinx Book Theme.
- In todo directive, replace pencil icon with a clipboard list icon.
- For video directive, limit the width to 100% of the page content container.
- Add YouTube social icon to configuration.
- Rename Twitter social icon to X (formerly Twitter).
  • Loading branch information
stevepiercy committed Nov 12, 2024
1 parent de3f661 commit ce1a32b
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 8 deletions.
23 changes: 17 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@
}
},
{
"name": "Twitter",
"url": "https://twitter.com/plone",
"icon": "fa-brands fa-square-twitter",
"name": "Mastodon",
"url": "https://plone.social/@plone",
"icon": "fa-brands fa-mastodon",
"type": "fontawesome",
"attributes": {
"target": "_blank",
Expand All @@ -203,9 +203,20 @@
}
},
{
"name": "Mastodon",
"url": "https://plone.social/@plone",
"icon": "fa-brands fa-mastodon",
"name": "YouTube",
"url": "https://www.youtube.com/@PloneCMS",
"icon": "fa-brands fa-youtube",
"type": "fontawesome",
"attributes": {
"target": "_blank",
"rel": "noopener me",
"class": "nav-link custom-fancy-css"
}
},
{
"name": "X (formerly Twitter)",
"url": "https://x.com/plone",
"icon": "fa-brands fa-square-x-twitter",
"type": "fontawesome",
"attributes": {
"target": "_blank",
Expand Down
6 changes: 6 additions & 0 deletions news/36.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Update styles and configuration to latest. @stevepiercy
- Update styles from upstream Sphinx Book Theme.
- In todo directive, replace pencil icon with a clipboard list icon.
- For video directive, limit the width to 100% of the page content container.
- Add YouTube social icon to configuration.
- Rename Twitter social icon to X (formerly Twitter).
5 changes: 5 additions & 0 deletions src/plone_sphinx_theme/assets/styles/extensions/_todo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Add Font Awesome 5 icon for todo */
:root {
--pst-icon-clipboard-list: '\f46d';
--pst-icon-admonition-todo: var(--pst-icon-clipboard-list);
}
4 changes: 4 additions & 0 deletions src/plone_sphinx_theme/assets/styles/extensions/_video.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Prevent videos from overlapping the main content */
video {
width: 100%;
}
3 changes: 3 additions & 0 deletions src/plone_sphinx_theme/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@
@import "components/title";

@import "content/code";

@import "extensions/todo";
@import "extensions/video";

Large diffs are not rendered by default.

0 comments on commit ce1a32b

Please sign in to comment.