MCPcopy
hub / github.com/nonebot/nonebot2 / createConfigAsync

Function createConfigAsync

website/docusaurus.config.ts:186–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184};
185
186export default async function createConfigAsync() {
187 return {
188 title: "NoneBot",
189 tagline: "跨平台 Python 异步机器人框架",
190 favicon: "icons/favicon.ico",
191
192 // Set the production url of your site here
193 url: "https://nonebot.dev",
194 // Set the /<baseUrl>/ pathname under which your site is served
195 // For GitHub pages deployment, it is often '/<projectName>/'
196 baseUrl: process.env.BASE_URL || "/",
197
198 // GitHub pages deployment config.
199 // If you aren't using GitHub pages, you don't need these.
200 organizationName: "nonebot", // Usually your GitHub org/user name.
201 projectName: "nonebot2", // Usually your repo name.
202
203 onBrokenLinks: "throw",
204 onBrokenMarkdownLinks: "warn",
205
206 // Even if you don't use internalization, you can use this field to set useful
207 // metadata like html lang. For example, if your site is Chinese, you may want
208 // to replace "en" with "zh-Hans".
209 i18n: {
210 defaultLocale: "zh-Hans",
211 locales: ["zh-Hans"],
212 },
213
214 headTags: [
215 // 百度搜索资源平台
216 // https://ziyuan.baidu.com/
217 {
218 tagName: "meta",
219 attributes: {
220 name: "baidu-site-verification",
221 content: "codeva-0GTZpDnDrW",
222 },
223 },
224 ],
225 scripts: [
226 // 百度统计
227 // https://tongji.baidu.com/
228 {
229 type: "text/javascript",
230 charset: "UTF-8",
231 src: "https://hm.baidu.com/hm.js?875efa50097818701ee681edd63eaac6",
232 async: true,
233 },
234 // 万维广告
235 // https://wwads.cn/
236 {
237 type: "text/javascript",
238 charset: "UTF-8",
239 src: "https://cdn.wwads.cn/js/makemoney.js",
240 async: true,
241 },
242 // uwu logo
243 {

Callers

nothing calls this directly

Calls 1

requireFunction · 0.85

Tested by

no test coverage detected