Skip to content

Chore/update node version #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/

- name: npm install, lint
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/

- name: npm install, build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install dependencies
Expand Down
98,760 changes: 71,089 additions & 27,671 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"postinstall": "husky install"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.6",
"@docusaurus/core": "^2.0.0-rc.1",
"@docusaurus/preset-classic": "2.0.0-beta.6",
"@giscus/react": "^2.0.6",
"@headlessui/react": "^1.4.1",
"@heroicons/react": "^1.0.4",
"@mdx-js/react": "^1.6.21",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContextSwitcher.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ContextSwitcher = ({ className }) => {
aria-hidden="true"
alt={context.name}
/>
<span className="lv0_link block truncate text-text text-base">
<span className="lv0_link block truncate text-base text-text">
{context.name}
</span>
<span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
Expand Down
18 changes: 18 additions & 0 deletions src/theme/DocPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import clsx from 'clsx';
import styles from './styles.module.css';
import { ThemeClassNames, docVersionSearchTag } from '@docusaurus/theme-common';
import Head from '@docusaurus/Head';
import Giscus from '@giscus/react';
import { ChevronRightIcon } from '@heroicons/react/outline';

function DocPageContent({ currentDocRoute, versionMetadata, children }) {
Expand Down Expand Up @@ -105,6 +106,23 @@ function DocPageContent({ currentDocRoute, versionMetadata, children }) {
)}
>
<MDXProvider components={MDXComponents}>{children}</MDXProvider>
<div className={styles.docsComments}>
<Giscus
id="comments"
repo="LionCubFrontEnd/docs"
repoId="R_kgDOHL7zqw"
category="General"
categoryId="DIC_kwDOHL7zq84CQRaM"
mapping="pathname"
term="学如逆水行舟,不进则退!"
reactionsEnabled="1"
emitMetadata="1"
inputPosition="top"
theme="light"
lang="zh-CN"
loading="lazy"
/>
</div>
</div>
</main>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/theme/DocPage/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
}

@media (min-width: 997px) {
.docsComments {
max-width: 75%;
}

.docMainContainer {
flex-grow: 1;
max-width: calc(100% - var(--doc-sidebar-width));
Expand Down
28,994 changes: 15,137 additions & 13,857 deletions yarn.lock

Large diffs are not rendered by default.