Add css for publication page embedding && add json code highlighting

This commit is contained in:
Serafeim Chatzopoulos 2024-01-15 21:34:58 +02:00
parent 503a8db513
commit a69f06b618
2 changed files with 53 additions and 0 deletions

View File

@ -141,6 +141,9 @@ const config = {
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: [
'json'
]
},
matomo: {
matomoUrl: 'https://analytics.openaire.eu/',

View File

@ -72,3 +72,53 @@
height: var(--ifm-navbar-height);
}
/* custom css classes to embed publications pages in an iframel; adjusts look and feel with docusaurus-data-x query-string parameters */
html[data-embed-publications='true'] .navbar {
display: none;
}
html[data-embed-publications='true'] .theme-doc-toc-desktop {
display: none;
}
html[data-embed-publications='true'] .theme-doc-sidebar-container {
display: none;
}
html[data-embed-publications='true'] .theme-doc-breadcrumbs{
display: none;
}
html[data-embed-publications='true'] .theme-doc-version-badge {
display: none;
}
/* intended to remove header in publications */
html[data-embed-publications='true'] .theme-doc-markdown h1 {
display: none;
}
html[data-embed-publications='true'] .theme-doc-toc-mobile {
display: none;
}
html[data-embed-publications='true'] .pagination-nav {
display: none;
}
html[data-embed-publications='true'] .footer {
display: none;
}
html[data-embed-publications='true'] .container > .row > .col--3 {
display: none;
}
html[data-embed-publications='true'] {
--ifm-background-color: #fff;
}
html[data-embed-publications='true'] .theme-admonition-note {
background-color: #f5f5f5;
}