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

chore: footer github url change #69

Merged
merged 3 commits into from
Dec 13, 2023
Merged
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
208 changes: 104 additions & 104 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,153 +8,153 @@ const baseUrl = "/";

/** @type {import('@docusaurus/types').Config} */
const config = {
title: "KubeArmor",
tagline: "Runtime Security Enforcement",
favicon: "img/favicon.ico",
title: 'KubeArmor',
tagline: 'Runtime Security Enforcement',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: "https://kubearmor.io",
url: 'https://kubearmor.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "kubearmor", // Usually your GitHub org/user name.
projectName: "kubearmor.io", // Usually your repo name.
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
organizationName: 'kubearmor', // Usually your GitHub org/user name.
projectName: 'kubearmor.io', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
trailingSlash: false,
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
defaultLocale: 'en',
locales: ['en'],
},

presets: [
[
"classic",
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
blogTitle: "Blogs",
blogDescription: "A KubeArmor powered blog!",
postsPerPage: "ALL",
blogTitle: 'Blogs',
blogDescription: 'A KubeArmor powered blog!',
postsPerPage: 'ALL',
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],

headTags: [
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/Poppins/Poppins-Regular.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/Poppins/Poppins-Regular.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/Poppins/Poppins-Medium.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/Poppins/Poppins-Medium.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/Poppins/Poppins-SemiBold.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/Poppins/Poppins-SemiBold.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/Poppins/Poppins-Bold.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/Poppins/Poppins-Bold.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/RobotoMono/RobotoMono-Regular.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/RobotoMono/RobotoMono-Regular.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/RobotoMono/RobotoMono-Bold.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/RobotoMono/RobotoMono-Bold.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/SourceCodePro/SourceCodePro-SemiBold.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/SourceCodePro/SourceCodePro-SemiBold.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
{
tagName: "link",
tagName: 'link',
attributes: {
rel: "preload",
href: "/font/SourceCodePro/SourceCodePro-Medium.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
rel: 'preload',
href: '/font/SourceCodePro/SourceCodePro-Medium.ttf',
as: 'font',
type: 'font/ttf',
crossorigin: 'anonymous',
},
},
],
stylesheets: ["./src/css/custom.css"],
stylesheets: ['./src/css/custom.css'],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: "img/kubearmor/kubearmor-social-card.jpg",
image: 'img/kubearmor/kubearmor-social-card.jpg',
navbar: {
logo: {
alt: "KubeArmor Logo",
src: "img/kubearmor/kubearmor-light-bg.svg",
alt: 'KubeArmor Logo',
src: 'img/kubearmor/kubearmor-light-bg.svg',
},
items: [
// {
Expand All @@ -164,76 +164,76 @@ const config = {
// label: "Tutorial",
// },
{
to: "/",
label: "Home",
position: "left",
to: '/',
label: 'Home',
position: 'left',
},
{ to: "https://github.com/kubearmor/KubeArmor/wiki", label: "Blog", position: "left" },
{ to: 'https://github.com/kubearmor/KubeArmor/wiki', label: 'Blog', position: 'left' },
{
to: "https://docs.kubearmor.io/kubearmor/",
label: "Documentation",
position: "left",
to: 'https://docs.kubearmor.io/kubearmor/',
label: 'Documentation',
position: 'left',
},
{ to: "/community", label: "Community", position: "left" },
{ to: '/community', label: 'Community', position: 'left' },
{
type: "custom-GitHubStarButton",
position: "right",
type: 'custom-GitHubStarButton',
position: 'right',
itemProp: 44,
anotherProp: "xyz",
anotherProp: 'xyz',
},
{
type: "custom-SlackIconButton",
position: "right",
type: 'custom-SlackIconButton',
position: 'right',
itemProp: 45,
anotherProp: "abc",
anotherProp: 'abc',
},
],
},
footer: {
style: "dark",
style: 'dark',
logo: {
alt: "KubeArmor Official Logo",
src: "img/kubearmor/kubearmor-dark-bg.svg",
alt: 'KubeArmor Official Logo',
src: 'img/kubearmor/kubearmor-dark-bg.svg',
href: `${url + baseUrl}`,
width: 160,
height: 51,
},
links: [
{
title: "Organization",
title: 'Organization',
items: [
{
label: "Blog",
to: "https://github.com/kubearmor/KubeArmor/wiki",
label: 'Blog',
to: 'https://github.com/kubearmor/KubeArmor/wiki',
},
{
label: "Documentation",
to: "https://docs.kubearmor.io/kubearmor/",
label: 'Documentation',
to: 'https://docs.kubearmor.io/kubearmor/',
},
{
label: "Community",
label: 'Community',
to: `${url + baseUrl}/community`,
},
],
},
{
title: "Socials",
title: 'Socials',
items: [
{
label: "Twitter",
to: "https://twitter.com/KubeArmor",
label: 'Twitter',
to: 'https://twitter.com/KubeArmor',
},
{
label: "GitHub",
to: "https://github.com/facebook/docusaurus",
label: 'GitHub',
to: 'https://github.com/kubearmor/kubearmor.io',
},
{
label: "Slack",
to: "https://join.slack.com/t/kubearmor/shared_invite/zt-1ltmqdbc6-rSHw~LM6MesZZasmP2hAcA/",
label: 'Slack',
to: 'https://join.slack.com/t/kubearmor/shared_invite/zt-1ltmqdbc6-rSHw~LM6MesZZasmP2hAcA/',
},
{
label: "LinkedIn",
to: "https://www.linkedin.com/company/kubearmor/",
label: 'LinkedIn',
to: 'https://www.linkedin.com/company/kubearmor/',
},
],
},
Expand All @@ -245,7 +245,7 @@ const config = {
darkTheme: darkCodeTheme,
},
colorMode: {
defaultMode: "light",
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
Expand Down