Skip to content

Commit

Permalink
Remove version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed May 28, 2024
1 parent 3ffad44 commit 8901c54
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 144 deletions.
8 changes: 3 additions & 5 deletions packages/docs/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import starlight from '@astrojs/starlight';
import { defineConfig } from 'astro/config';
import remarkDirective from 'remark-directive';
import { base } from './config.js';
import { fixInternalLinks } from './remark/fixInternalLinks.ts';
import { transformDirectives } from './remark/transformDirectives.ts';
import type { ExpressiveCodeTheme } from '@astrojs/starlight/expressive-code';
Expand All @@ -13,7 +12,7 @@ const setForeground = (theme: ExpressiveCodeTheme, scope: string, value: string)

export default defineConfig({
site: 'https://knip.dev',
base,
base: '/',
// @ts-expect-error TODO
sitemap: false,
trailingSlash: 'never',
Expand All @@ -29,18 +28,17 @@ export default defineConfig({
replacesTitle: true,
},
social: {
github: 'https://github.com/webpro/knip',
github: 'https://github.com/webpro-nl/knip',
discord: 'https://discord.gg/r5uXTtbTpc',
'x.com': 'https://x.com/webprolific',
},
components: {
Head: './src/components/Head.astro',
Header: './src/components/Header.astro',
Footer: './src/components/Footer.astro',
},
customCss: ['./src/styles/custom.css', './src/fonts/font-face.css'],
editLink: {
baseUrl: 'https://github.com/webpro/knip/edit/v3/packages/docs/',
baseUrl: 'https://github.com/webpro-nl/knip/edit/v4/packages/docs/',
},
sidebar: [
{
Expand Down
9 changes: 0 additions & 9 deletions packages/docs/config.ts

This file was deleted.

4 changes: 1 addition & 3 deletions packages/docs/scripts/generate-plugin-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import remarkParse from 'remark-parse';
import remarkStringify from 'remark-stringify';
import { unified } from 'unified';
import { u } from 'unist-builder';
import { base } from '../config.js';
import type { Plugin } from '../../knip/src/types/plugins.js';
import type { Root } from 'mdast';
import type { Node } from 'unist';
Expand Down Expand Up @@ -118,8 +117,7 @@ const tree = u('root', [
{ spread: false, ordered: false },
plugins.map(plugin =>
u('listItem', [
// @ts-expect-error reusable
u('link', { title: plugin[0], url: (base === '/' ? '' : base) + `/reference/plugins/${plugin[1]}` }, [
u('link', { title: plugin[0], url: `/reference/plugins/${plugin[1]}` }, [
u('text', plugin[0]),
]),
])
Expand Down
114 changes: 0 additions & 114 deletions packages/docs/src/components/Header.astro

This file was deleted.

13 changes: 0 additions & 13 deletions packages/docs/vercel.json

This file was deleted.

0 comments on commit 8901c54

Please sign in to comment.