Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
bcc5daf
feat: remove breadcurmp and make body content center
Ayushjhawar8 Oct 7, 2025
96a90ba
Merge branch 'main' of https://github.com/Ayushjhawar8/docs into feat…
Ayushjhawar8 Oct 7, 2025
a249180
proper align
Ayushjhawar8 Oct 7, 2025
24ef7bd
Fix: Section Overview Grid Layout
Ayushjhawar8 Oct 7, 2025
8031f2e
format
Ayushjhawar8 Oct 7, 2025
432da59
Remove hash build
Ayushjhawar8 Oct 7, 2025
fbb3c19
remove dependecy on hash possibly
Ayushjhawar8 Oct 8, 2025
5b0a76d
Fix the subtitle moving left on smaller screens
Ayushjhawar8 Oct 8, 2025
3436142
Remove Kerning from subtitle
Ayushjhawar8 Oct 8, 2025
8e1d993
Reduce header and subheader size (h1,h2,h3,h4) to match mintlify
Ayushjhawar8 Oct 8, 2025
549b581
make icon smaller and match there height to the Title
Ayushjhawar8 Oct 8, 2025
c111081
fix pitch black color of left headers
Ayushjhawar8 Oct 8, 2025
3d5832d
feat: same length from left margin to the left sidebar content
Ayushjhawar8 Oct 8, 2025
0e4f823
Remove the on this page on mobile view
Ayushjhawar8 Oct 9, 2025
48966ee
Fix margin on mobile view left and right
Ayushjhawar8 Oct 9, 2025
d6ef34c
add top margin
Ayushjhawar8 Oct 9, 2025
baa0a87
Fix font style and line space looking more minltifyed
Ayushjhawar8 Oct 9, 2025
0f8e1ea
lighter blue for subtitle
Ayushjhawar8 Oct 9, 2025
502db1e
Use light color for Subtitle
Ayushjhawar8 Oct 9, 2025
c1e95e0
Fix text shadow whatsoever
Ayushjhawar8 Oct 9, 2025
90468c0
Add more space after intial header
Ayushjhawar8 Oct 9, 2025
c4309bf
Fix the Header icon positioning and spacing also fix the left side na…
Ayushjhawar8 Oct 9, 2025
6d53bee
Make section overview page tablular
Ayushjhawar8 Oct 9, 2025
d56ef56
Finally add proper padding to left navbar
Ayushjhawar8 Oct 9, 2025
0d511e4
Reduce hamburger icon size
Ayushjhawar8 Oct 9, 2025
c58e3b9
Remaining Icon size fixes
Ayushjhawar8 Oct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const config: Config = {
sidebarPath: "./sidebars.ts",
routeBasePath: "/", // Serve docs at root
editUrl: "https://github.com/tscircuit/docs/tree/main/",
breadcrumbs: false,
},
theme: {
customCss: "./src/css/custom.css",
Expand Down Expand Up @@ -177,13 +178,13 @@ const config: Config = {
{
href: "https://discord.com/invite/V7FGE5ZCbA",
position: "right",
className: "header-discord-link",
className: "header-discord-link header-icon-link",
html: '<img src="/img/discord.svg" alt="Discord" style="height: 18px; width: 18px; margin-bottom: -4px;" class="github-icon" />',
},
{
href: "https://github.com/tscircuit/tscircuit",
position: "right",
className: "header-github-link",
className: "header-github-link header-icon-link",
html: '<img src="/img/github.svg" alt="GitHub" style="height: 18px; width: 18px; margin-bottom: -4px; margin-right: 6px;" class="github-icon" />',
},
],
Expand Down
234 changes: 227 additions & 7 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
* work well for content-centric websites.
*/

@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&display=swap");

/* You can override the default Infima variables here. */
:root {
--ifm-font-family-base: "Google Sans", system-ui, -apple-system, sans-serif;
--ifm-heading-font-family: "Google Sans", system-ui, -apple-system, sans-serif;
--ifm-color-primary: #1877f2;
--ifm-color-primary-dark: #166bda;
--ifm-color-primary-darker: #1564ce;
Expand Down Expand Up @@ -234,39 +238,126 @@ figure img {
font-size: 14px;
}

/* Remove left padding from nested menu lists */
.menu__list .menu__list {
padding-left: 0 !important;
}

.navbar-sidebar__item {
padding: 1rem;
}

/* Make top navbar links smaller */
.navbar__link {
font-size: 14px;
}

/* Reduce navbar toggle button SVG size */
.navbar__toggle svg {
width: 20px !important;
height: 20px !important;
}

/* Reduce navbar close button SVG size */
.navbar-sidebar__close svg {
width: 15px !important;
height: 15px !important;
}

/* Reduce theme toggle button SVG size */
.toggleButton_gllP svg {
width: 20px !important;
height: 20px !important;
}

.navbar__brand {
margin-right: 0rem !important;
}

.navbar__items--right {
display: flex !important;
align-items: center !important;
gap: 0.5rem !important;
}

.navbar__items--right .navbar__item {
margin: 0 !important;
display: flex !important;
align-items: center !important;
}

.header-discord-link,
.header-github-link {
padding: 0.5rem !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
margin: 0 !important;
}

.header-github-link img,
.header-discord-link img {
margin: 0 !important;
display: block;
}

/* Ensure theme toggle aligns with icons */
.navbar__items--right > div,
.navbar__items--right button {
display: flex !important;
align-items: center !important;
margin: 0 !important;
}

/* Hide GitHub and Discord icons on mobile */
@media (max-width: 770px) {
.navbar__item.header-icon-link {
display: none !important;
}
}
/* Sidebar section styling - only for top-level categories */
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible {
margin-left: 12px;
margin-left: 0;
}

/* Add 8px padding to each top-level section and its dropdown contents */
@media (min-width: 1000px) {
.theme-doc-sidebar-item-category-level-1 {
padding-left: 8px;
padding-right: 8px;
}
}

.theme-doc-sidebar-item-category-level-1
> .menu__list-item-collapsible
> .menu__link {
font-weight: 600;
color: #000000;
color: #181c1a;
}
[data-theme="dark"]
.theme-doc-sidebar-item-category-level-1
> .menu__list-item-collapsible
> .menu__link {
color: #ffffff;
color: #cbd5e0;
}

/* Add icons to top-level sidebar sections only */
.theme-doc-sidebar-item-category-level-1
> .menu__list-item-collapsible
> .menu__link {
display: flex !important;
align-items: center !important;
}

.theme-doc-sidebar-item-category-level-1
> .menu__list-item-collapsible
> .menu__link::before {
content: "";
display: inline-block;
width: 18px;
height: 18px;
margin-right: 12px;
vertical-align: middle;
flex-shrink: 0;
width: 14px;
height: 14px;
margin-right: 10px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -446,6 +537,15 @@ figure img {
.menu__list-item .menu__link {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 16px !important;
padding-right: 16px !important;
}

/* Ensure hover and active states maintain padding */
.menu__link:hover,
.menu__link--active {
padding-left: 16px !important;
padding-right: 16px !important;
}

@media (max-width: 768px) {
Expand Down Expand Up @@ -493,6 +593,67 @@ body {
overflow-x: hidden;
}

.doc-section-subtitle {
font-size: 1rem;
font-weight: 700;
color: var(--ifm-color-primary-light);
margin-bottom: 0.5rem;
margin-top: 1.8rem;
line-height: 1.2;
text-align: left;
white-space: nowrap;
max-width: 970px;
margin-left: auto;
margin-right: auto;
padding-left: 4rem;
padding-right: 2rem;
box-sizing: border-box;
}

@media (max-width: 768px) {
.doc-section-subtitle {
padding-left: 2rem;
padding-right: 1rem;
}
}

[data-theme="dark"] .doc-section-subtitle {
color: var(--ifm-color-primary-lightest);
}

article header h1 {
text-align: left !important;
font-size: 1.9rem !important;
font-weight: 600 !important;
text-shadow: 0 0 0.1px currentColor;
letter-spacing: -0.025em;
margin-bottom: 0.6rem !important;
}

article h2 {
font-size: 1.5rem !important;
font-weight: 630 !important;
letter-spacing: -0.025em;
margin-bottom: 0.8rem !important;
}

article h3 {
font-size: 1.25rem !important;
font-weight: 600 !important;
text-shadow: 0 0 0.1px currentColor;
letter-spacing: -0.025em;
}

article h4 {
font-size: 1.1rem !important;
font-weight: 600 !important;
letter-spacing: -0.025em;
}

.markdown > p:first-of-type {
margin-bottom: 2rem !important;
}

.skeleton-container {
width: 100%;
height: 600px;
Expand Down Expand Up @@ -534,6 +695,58 @@ body {
}
}

/* Hide table of contents sidebar */
.col.col--3 {
display: none !important;
}

.table-of-contents,
.theme-doc-toc-desktop,
.theme-doc-toc-mobile {
display: none !important;
}

/* Force center all documentation content */
.col:not(.col--3) {
max-width: 1000px !important;
margin-left: auto !important;
margin-right: auto !important;
}

/* Force section overview to center - using stable attribute selector */
[class*="generatedIndexPage"] {
max-width: 980px;
margin: 0 auto;
float: none;
}

[class*="generatedIndexPage"] .row .col--6 {
flex: 0 0 100% !important;
max-width: 100% !important;
}

[class*="generatedIndexPage"] .row {
display: flex !important;
flex-direction: column !important;
gap: 1rem !important;
align-items: stretch !important;
}

article,
.markdown {
max-width: 100% !important;
padding-left: 2rem !important;
padding-right: 2rem !important;
}

@media (max-width: 768px) {
article,
.markdown {
padding-left: 0.9rem !important;
padding-right: 0.9rem !important;
}
}

.tscircuit-iframe {
display: block;
width: 100%;
Expand Down Expand Up @@ -564,3 +777,10 @@ body {
);
}
}

@media (max-width: 768px) {
[class*="generatedIndexPage"] .row .col--6 {
flex: 0 0 100% !important;
max-width: 100% !important;
}
}
20 changes: 20 additions & 0 deletions src/theme/DocItem/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react"
import DocItem from "@theme-original/DocItem"
import type DocItemType from "@theme/DocItem"
import type { WrapperProps } from "@docusaurus/types"
import { useCurrentSidebarCategory } from "@docusaurus/theme-common/internal"
type Props = WrapperProps<typeof DocItemType>

export default function DocItemWrapper(props: Props): React.JSX.Element {
const currentCategory = useCurrentSidebarCategory() as
| { label: string }
| undefined
return (
<>
{currentCategory && (
<div className="doc-section-subtitle">{currentCategory.label}</div>
)}
<DocItem {...props} />
</>
)
}