调整主题配置
continuous-integration/drone/push Build is passing Details

main
gitbobobo 1 year ago
parent b8c71ab263
commit 308252eb7f

@ -12,9 +12,6 @@ steps:
- npm config set registry https://registry.npmmirror.com
- npm install
- npm run build
# - pnpm config set registry https://registry.npmmirror.com
# - pnpm install
# - pnpm build
- cp -r build/ live-release/
- ls -al live-release
- name: upload

@ -0,0 +1,25 @@
以下代码可以在正文中生成当前页面层级下的所有页面卡片。
```md
import DocCardList from '@theme/DocCardList';
<DocCardList />
```
以下代码生成可展开的区块,其中`summary`是默认显示的内容:
```md
<details>
<summary>Toggle me!</summary>
<div>
<div>This is the detailed content</div>
<br/>
<details>
<summary>
Nested toggle! Some surprise inside...
</summary>
<div>😲😲😲😲😲</div>
</details>
</div>
</details>
```

@ -6,6 +6,10 @@ sidebar_position: 1
Docusaurus can manage multiple versions of your docs.
import DocCardList from '@theme/DocCardList';
<DocCardList />
## Create a docs version
Release a version 1.0 of your project:
@ -40,7 +44,7 @@ module.exports = {
],
},
},
};
}
```
The docs version dropdown appears in your navbar:

@ -6,20 +6,20 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'My Site',
title: '浮生绘',
tagline: 'Dinosaurs are cool',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://your-docusaurus-test-site.com',
url: 'https://live.aqzscn.cn/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'gitbobo', // Usually your GitHub org/user name.
projectName: 'live', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
@ -28,8 +28,8 @@ const config = {
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
presets: [
@ -45,13 +45,13 @@ const config = {
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
// blog: {
// showReadingTime: true,
// // Please change this to your repo.
// // Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// },
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
@ -65,7 +65,7 @@ const config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
title: '浮生绘',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
@ -99,7 +99,7 @@ const config = {
items: [
{
label: 'Tutorial',
to: '/docs/intro',
to: 'intro',
},
],
},

@ -17,7 +17,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to="/intro">
Docusaurus Tutorial - 5min
</Link>
</div>

Loading…
Cancel
Save