@dfinity/agent? Migrate to @icp-sdk/core!';
-
// https://astro.build/config
export default defineConfig({
site: 'https://js.icp.build/',
@@ -37,16 +34,33 @@ export default defineConfig({
exclude: [
`${packagesDir}/core`,
`${packagesDir}/migrate`,
+ `${packagesDir}/assets`,
+ `${packagesDir}/auth-client`,
+ `${packagesDir}/use-auth-client`,
],
},
frontmatter: {
editUrl: false,
next: true,
prev: true,
- banner: {
- content: UPGRADE_BANNER_CONTENT,
- },
},
+ prependSidebar: [
+ {
+ label: 'Getting Started',
+ items: [
+ { label: 'Overview', link: '/' },
+ { label: 'Installation', link: '/installation' },
+ { label: 'Quick Start', link: '/quick-start' },
+ { label: 'Typescript', link: '/typescript' },
+ ],
+ },
+ ],
+ appendSidebar: [
+ {
+ label: 'Upgrading',
+ autogenerate: { directory: 'upgrading', collapsed: true },
+ },
+ ],
}),
additionalFilesPlugin({
additionalFiles: [
@@ -58,9 +72,6 @@ export default defineConfig({
editUrl: false,
next: false,
prev: false,
- banner: {
- content: UPGRADE_BANNER_CONTENT,
- },
},
},
],
@@ -69,12 +80,6 @@ export default defineConfig({
versionsJsonPath: `${BASE_DOCS_PATH}/versions.json`,
}),
],
- sidebar: [
- {
- label: 'Upgrading',
- autogenerate: { directory: 'upgrading', collapsed: true },
- },
- ],
}),
],
});
diff --git a/docs/plugins/src/libs.ts b/docs/plugins/src/libs.ts
index 00ede3c0a..bafdd8163 100644
--- a/docs/plugins/src/libs.ts
+++ b/docs/plugins/src/libs.ts
@@ -1,18 +1,13 @@
-import fs from "node:fs/promises";
-import path from "node:path";
-import {
- Application,
- ProjectReflection,
- ReflectionKind,
- type TypeDocOptions,
-} from "typedoc";
-import type { StarlightPlugin } from "@astrojs/starlight/types";
-import { type PluginOptions as TypeDocMarkdownOptions } from "typedoc-plugin-markdown";
-
-import { DOCS_DIR, TMP_DIR } from "./utils/constants.ts";
-import { type Frontmatter } from "./utils/types.ts";
-import { titleFromFilename, titleFromIdCapitalized } from "./utils/string.ts";
-import { processMarkdown } from "./utils/markdown.ts";
+import fs from 'node:fs/promises';
+import path from 'node:path';
+import { Application, ProjectReflection, ReflectionKind, type TypeDocOptions } from 'typedoc';
+import type { StarlightPlugin } from '@astrojs/starlight/types';
+import { type PluginOptions as TypeDocMarkdownOptions } from 'typedoc-plugin-markdown';
+
+import { DOCS_DIR, TMP_DIR } from './utils/constants.ts';
+import type { Frontmatter, Sidebar } from './utils/types.ts';
+import { titleFromFilename, titleFromIdCapitalized } from './utils/string.ts';
+import { processMarkdown } from './utils/markdown.ts';
async function generateApiDocs({
baseDir,
@@ -20,16 +15,16 @@ async function generateApiDocs({
}: LibsLoaderOptions): Promise@dfinity/agent docs
+ @icp-sdk/core package
@dfinity/assets docs
+ @icp-sdk/core package
@dfinity/auth-client docs
+ @icp-sdk/core/agent docs
@dfinity/candid docs
+ @icp-sdk/core/candid docs
@dfinity/identity docs
- @dfinity/identity-secp256k1 docs
+ @icp-sdk/core/identity docs
@dfinity/principal docs
+ See @icp-sdk/core/principal docs
@dfinity/use-auth-client docs
-
+ If you're using @dfinity/agent version 3.x, you can migrate to
+ @icp-sdk/core with the help of our automated migration tools or manual migration
+ guide.
+
@icp-sdk/core
+
If you're still using @dfinity/agent version 2.x, you can migrate to 3.x with
the help of our migration guide.