Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to relearn theme #22

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
97 changes: 97 additions & 0 deletions knowledge-base/assets/css/theme-cecg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
:root{
--MAIN-TITLES-H1-font: 'Daikon', sans-serif; /* font-family of h1 titles */
--MAIN-TITLES-TEXT-font: 'Daikon', sans-serif; /* font-family of h2-h6 titles */
--MAIN-font: 'IBM Plex Sans', sans-serif; /* font-family of the main content */

--PRIMARY-color: #0303FF; /* brand primary color */
--SECONDARY-color: #37D8ED; /* brand secondary color */
--ACCENT-color: #F43180; /* brand accent color, used for search highlights */

--MAIN-LINK-color: #1C90F3; /* Color of links and anchors */
--MAIN-LINK-HOVER-color: #167ad0; /* Color of hovered links */

--MAIN-TEXT-color: #323232; /* text color of content and h1 titles */
--MAIN-TITLES-TEXT-color: #5e5e5e; /* text color of h2-h6 titles and transparent box titles */
--MAIN-BG-color: #FFFFFF; /* background color of content */

/* NOTE: THE HOME LINK IS DISABLED IN hugo.toml FOR CECG LEARN */
--MENU-HOME-LINK-color: rgb(204, 204, 204); /* home button color if configured */
--MENU-HOME-LINK-HOVER-color: rgb(255, 255, 255); /* hovered home button color if configured */

--MENU-HEADER-BG-color: #0303FF; /* Background color of menu header */
--MENU-HEADER-BORDER-color: #0303FF; /*Color of menu header border */

--MENU-SEARCH-color: #FFFFFF; /* text and icon color of search box */
--MENU-SEARCH-BG-color: #167ad0; /* Search field background color (by default borders + icons) */
--MENU-SEARCH-BOX-color: #33a1ff; /* Override search field border color */
--MENU-SEARCH-BOX-ICONS-color: #a1d2fd; /* Override search field icons color */
--MENU-SEARCH-BORDER-color: #33a1ff; /* border color of search box */

--MENU-SECTIONS-ACTIVE-BG-color: #20272b; /* Background color of the active section and its childs */
--MENU-SECTIONS-BG-color: #252c31; /* Background color of other sections */
--MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */
--MENU-SECTIONS-LINK-HOVER-color: #e6e6e6; /* Color of links in menu, when hovered */
--MENU-SECTION-ACTIVE-CATEGORY-color: #777; /* Color of active category text */
--MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */
--MENU-SECTION-SEPARATOR-color: #CCCCCC; /* separator color between menu sections and menu footer */

--MENU-VISITED-color: #33a1ff; /* Color of 'page visited' icons in menu */
--MENU-SECTION-HR-color: #20272b; /* Color of <hr> separator in menu */

--BOX-CAPTION-color: rgb(255, 255, 255); /* text color of colored box titles */
--BOX-BG-color: rgba(255, 255, 255, 0.83); /* background color of colored boxes */
--BOX-TEXT-color: #323232; /* the color of text in default boxes (also controls badges) */

--CODE-theme: relearn-light; /* name of the chroma stylesheet file */
--CODE-BLOCK-color: rgba( 39, 40, 34, 1 ); /* fallback text color of block code; should be adjusted to your selected chroma style */
--CODE-BLOCK-BG-color: rgba( 250, 250, 250, 1 ); /* fallback background color of block code; should be adjusted to your selected chroma style */
--CODE-BLOCK-BORDER-color: rgba( 216, 216, 216, 1 ); /* border color of block code */
--CODE-INLINE-color: rgba( 94, 94, 94, 1 ); /* text color of inline code */
--CODE-INLINE-BG-color: rgba( 255, 250, 233, 1 ); /* background color of inline code */
--CODE-INLINE-BORDER-color: rgba( 248, 232, 200, 1 ); /* border color of inline code */

--BROWSER-theme: light; /* name of the theme for browser scrollbars of the main section */
--MERMAID-theme: default; /* name of the default Mermaid theme for this variant, can be overridden in hugo.toml */
--OPENAPI-theme: light; /* name of the default OpenAPI theme for this variant, can be overridden in hugo.toml */
--OPENAPI-CODE-theme: idea; /* name of the default OpenAPI code theme for this variant, can be overridden in hugo.toml */
}

#R-sidebar ul li {
margin-left: 0.5rem;
}

/* add a horizontal padding around the chevrons in the collapsible menu*/
#R-sidebar ul.collapsible-menu > li > :is( a, span ), #R-sidebar ul.collapsible-menu li.active > a {
padding-left: calc(1.5rem - var(--bpx1)* 1px);
}

/* add some spacing after TOP LEVEL list items and nested lists */
#R-body-inner ul li,
#R-body-inner ol li,
#R-body-inner li ul,
#R-body-inner li ol{
margin-bottom: 0.1rem;
}

/* remove spacing after nested list items */
#R-body-inner ul li:last-child,
#R-body-inner ol li:last-child {
margin-bottom: 0;
}

/* remove spacing after nested list items */
#R-body-inner ul li li,
#R-body-inner ol li li {
margin-bottom: 0;
}

/* reduce margins around <p> inside <li> */
#R-body-inner li p {
margin-top: 0;
margin-bottom: 0.1rem;
}

/* slightly reduce the theme's default margin above headers */
h2, h3, .article-subheading, h4, h5, h6 {
margin: 1.5rem 0 1rem 0;
}
10 changes: 0 additions & 10 deletions knowledge-base/config.toml

This file was deleted.

26 changes: 26 additions & 0 deletions knowledge-base/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
baseURL = "https://learn.cecg.io/"
languageCode = "en-us"
title = "CECG Knowledge Base"
theme = "hugo-theme-relearn"
enableEmoji = true

[outputs]
home = [ "html", "rss", "print", "search", "searchpage"]
page = ['html', 'rss', 'print']
section = ['html', 'rss', 'print']

# Documentation for these params can be found here: https://mcshelby.github.io/hugo-theme-relearn/basics/configuration/index.html
[params]
themeVariant = "cecg"
editURL = "https://github.com/coreeng/knowledge-platform-internal/tree/main/knowledge-base/content/"
disableLandingPageButton = true
alwaysopen = false
collapsibleMenu = true
disableRootBreadcrumb = false
disableExplicitIndexURLs = false
mermaidZoom = true
# throw build error on broken links (warning for image linking as it's broken atm)
include.errorlevel = "warning"
link.errorlevel = "warning"
openapi.errorlevel = "warning"
image.errorlevel = "warning"
3 changes: 0 additions & 3 deletions knowledge-base/themes/hugo-theme-learn/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions knowledge-base/themes/hugo-theme-learn/.grenrc.yml

This file was deleted.

Loading