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

Fix miscellaneous styling issues. #272

Merged
merged 4 commits into from
May 6, 2021
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,30 @@
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"
/>
<link
rel="icon"
href="https://raw.githubusercontent.com/GoogleContainerTools/kpt/master/site/static/favicons/favicon.ico"
type="image/x-icon"
/>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: "kpt",
nameLink: "https://kpt.dev/",
nameLink: "https://kpt.dev/?id=overview",
search: {
maxAge: 43200000,
placeholder: "Search",
},
crossOriginLinks: ["https://kpt.dev/?id=overview"],
externalLinkTarget: "_self",
alias: {
"/.*/sidebar.md": "/sidebar.md",
},
Expand Down Expand Up @@ -110,13 +116,13 @@
// Change the GH icon to point to the current example if it exists.
if (currentEx) {
ghElement.href = examples[currentEx].RemoteExamplePath;
}
}
// If not on an example, change the GH icon to point to the current version if it exists.
else if (versionName) {
const exampleSuffix = /examples\/.+/;
ghElement.href = examples[exampleNames[0]].RemoteSourcePath;
}
// On every other page, point to the main catalog repo.
// On every other page, point to the main catalog repo.
else {
ghElement.href = window.$docsify.corner.url;
}
Expand Down Expand Up @@ -158,8 +164,13 @@
--sidebar-toggle-offset-top: unset;
--sidebar-width: 20rem;
}
.body {
line-height: var(--base-line-height) !important;
body {
line-height: unset;
font-family: unset;
font-size: unset;
}
h1 {
line-height: unset;
}

.dropdown-container {
Expand Down
10 changes: 5 additions & 5 deletions site/sidebar.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- TODO: Generate this in a build step before deploying. -->
- [Installation](https://kpt.dev/installation/)
- [Book](https://kpt.dev/book/)
- [Reference](https://kpt.dev/reference/)
- [Installation](https://kpt.dev/installation/ ':crossorgin')
- [Book](https://kpt.dev/book/ ':crossorgin')
- [Reference](https://kpt.dev/reference/ ':crossorgin')
- [Functions Catalog](/)
- [FAQ](https://kpt.dev/faq/)
- [Contact](https://kpt.dev/contact/)
- [FAQ](https://kpt.dev/faq/ ':crossorgin')
- [Contact](https://kpt.dev/contact/ ':crossorgin')