Skip to content

Commit

Permalink
Update generic pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mciszczon committed Oct 22, 2024
1 parent f9b49fc commit c484c63
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 379 deletions.
94 changes: 46 additions & 48 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,54 +1,52 @@
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

// https://astro.build/config
export default defineConfig({
site: 'https://onhive.io',
integrations: [starlight({
title: 'OnHive.io',
logo: {
src: './src/assets/hive.svg'
},
social: {
email: 'mailto:[email protected]',
github: 'https://github.com/instytutfi'
},
sidebar: [{
label: '[home] Home',
link: '/'
}, {
label: '[list] Features',
link: '/features/'
}, {
label: '[box] Guides',
autogenerate: {
directory: 'guides'
}
}, {
label: '[book] Reference',
autogenerate: {
directory: 'reference'
}
}],
components: {
ThemeProvider: './src/components/ThemeProvider.astro',
ThemeSelect: './src/components/ThemeSelect.astro',
SiteTitle: './src/components/SiteTitle.astro',
Sidebar: './src/components/Sidebar.astro',
Pagination: './src/components/Pagination.astro',
Hero: './src/components/Hero.astro',
Head: './src/components/Head.astro',
PageTitle: './src/components/PageTitle.astro'
},
customCss: [
'./src/styles/theme.css'
],
expressiveCode: {
themes: ['github-dark']
},
pagination: false,
lastUpdated: true
})],
site: "https://onhive.io",
integrations: [
starlight({
title: "OnHive.io",
logo: {
src: "./src/assets/hive.svg"
},
social: {
github: "https://github.com/instytutfi/onhive.io"
},
sidebar: [
{
label: "[home] Home",
link: "/"
},
{
label: "[rocket] Get Started",
link: "/get-started/"
},
{
label: "[book] Hive Coding School",
autogenerate: {
directory: "school"
}
}
],
components: {
ThemeProvider: "./src/components/ThemeProvider.astro",
ThemeSelect: "./src/components/ThemeSelect.astro",
SiteTitle: "./src/components/SiteTitle.astro",
Sidebar: "./src/components/Sidebar.astro",
Pagination: "./src/components/Pagination.astro",
Hero: "./src/components/Hero.astro",
Head: "./src/components/Head.astro",
PageTitle: "./src/components/PageTitle.astro"
},
customCss: ["./src/styles/theme.css"],
expressiveCode: {
themes: ["github-dark"]
},
pagination: false,
lastUpdated: true
})
],
output: "static"
});
1 change: 1 addition & 0 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const titleHTML = title.split(" ").map((titlePart: string) => {
}

.tagline {
max-width: 500px;
font-size: clamp(
var(--sl-text-base),
calc(0.0625rem + 2vw),
Expand Down
7 changes: 3 additions & 4 deletions src/components/Pagination.astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ const isRtl = dir === "rtl";
>
</div>
<div class="social-footer-icons">
<a
href="https://github.com/louisescher/starlight-ion-theme"
aria-label="GitHub Icon"><Icon name="github" size="1.25rem" /></a
>
<a href="https://github.com/instytutfi/onhive.io" aria-label="GitHub Icon">
<Icon name="github" size="1.25rem" />
</a>
</div>
</div>

Expand Down
270 changes: 0 additions & 270 deletions src/content/docs/features.mdx

This file was deleted.

Loading

0 comments on commit c484c63

Please sign in to comment.