Skip to content

Commit

Permalink
chore: update site and docs deps (#2924)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az authored Sep 6, 2024
2 parents 9520bd3 + 0f30e68 commit 1f44a81
Show file tree
Hide file tree
Showing 13 changed files with 278 additions and 402 deletions.
2 changes: 1 addition & 1 deletion docs/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineConfig({
server: _ => ({ port: Number(PORT) }),
devToolbar: { enabled: ENABLE_DEV_TOOLBAR === "true" },
prefetch: { prefetchAll: true, defaultStrategy: "viewport" },
redirects: { "/feed": "/rss.xml", "/logo": "/union-logo.zip" },
redirects: { "/logo": "/union-logo.zip" },
vite: {
define: {
global: {}
Expand Down
7 changes: 4 additions & 3 deletions docs/docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
pkgsDeps = with pkgs; [ pkg-config ];
nodeDeps = with unstablePkgs; [ vips nodePackages_latest.nodejs ];
combinedDeps = pkgsDeps ++ nodeDeps;
packageJSON = lib.importJSON ./package.json;
in
{
packages = {
docs = mkCi false (unstablePkgs.buildNpmPackage {
npmDepsHash = "sha256-53vSl7xI61Hvtjnk0HZE9m5xoz4Otv23E0iA3+KoNZc=";
npmDepsHash = "sha256-MybxFSU+LWm4VjCsb/+6fqV8eRRr9ouQYS6BBZhQsZc=";
src = ./.;
srcs = [ ./. ./../evm/. ./../networks/genesis/. ./../versions/. ];
sourceRoot = "docs";
pname = "docs";
version = "0.0.1";
pname = packageJSON.name;
version = packageJSON.version;
nativeBuildInputs = combinedDeps;
buildInputs = combinedDeps;
installPhase = ''
Expand Down
336 changes: 172 additions & 164 deletions docs/package-lock.json

Large diffs are not rendered by default.

16 changes: 6 additions & 10 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^5.2.0",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/starlight": "^0.26.2",
"@astrojs/starlight": "^0.26.3",
"@astrojs/starlight-tailwind": "^2.0.3",
"@astrojs/svelte": "^5.7.0",
"@astrojs/tailwind": "^5.1.0",
"@expressive-code/plugin-collapsible-sections": "^0.36.1",
"astro": "^4.15.2",
"astro-capo": "^0.0.1",
"astro-font": "^0.1.81",
"astro-seo": "^0.8.4",
"astro": "^4.15.3",
"mermaid": "^11.1.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-katex": "^7.0.1",
Expand All @@ -35,7 +31,7 @@
"remark-smartypants": "^3.0.2",
"remark-toc": "^9.0.0",
"sharp": "^0.33.5",
"shiki": "^1.16.1",
"shiki": "^1.16.2",
"slugify": "^1.6.6",
"smartypants": "^0.2.2",
"svelte": "^4.2.19"
Expand All @@ -49,10 +45,10 @@
"@tailwindcss/typography": "^0.5.15",
"@total-typescript/ts-reset": "^0.6.1",
"@types/bun": "^1.1.8",
"@types/node": "^22.5.2",
"@types/node": "^22.5.4",
"@types/postcss-import": "^14.0.3",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.44",
"postcss": "^8.4.45",
"postcss-import": "^16.1.0",
"starlight-links-validator": "^0.11.0",
"tailwindcss": "^3.4.10",
Expand All @@ -61,7 +57,7 @@
"typed-query-selector": "^2.12.0",
"typescript": "^5.5.4",
"unist-util-visit": "^5.0.0",
"vite": "^5.4.2"
"vite": "^5.4.3"
},
"overrides": {
"sharp": "$sharp",
Expand Down
20 changes: 1 addition & 19 deletions docs/src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
import { defineCollection, z } from "astro:content"
import { defineCollection } from "astro:content"
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema"

const blogCollection = defineCollection({
type: "content",
schema: ({ image }) =>
z.object({
layout: z.string().optional(),
title: z.string(),
// yyyy-MM-dd
date: z.date(),
author: z.string().default("union_build"),
description: z.string().optional(),
cover: image().optional(),
editUrl: z.union([z.string().url(), z.boolean()]).optional().default(true),
lastUpdated: z.union([z.date(), z.boolean()]).optional(),
hidden: z.boolean().optional().default(false)
})
})

export const collections = {
blog: blogCollection,
docs: defineCollection({ schema: docsSchema() }),
i18n: defineCollection({ type: "data", schema: i18nSchema() })
}
26 changes: 0 additions & 26 deletions docs/src/pages/rss.xml.ts

This file was deleted.

6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@
./uniond/proto.nix
./app/app.nix
./docs/docs.nix
./docs/openapi.nix
./site/site.nix
./site/openapi.nix
./lib/near/near.nix
./typescript-sdk/typescript-sdk.nix
./light-clients/ethereum-light-client/ethereum-light-client.nix
Expand Down
104 changes: 0 additions & 104 deletions site/openapi.nix

This file was deleted.

Loading

0 comments on commit 1f44a81

Please sign in to comment.