Skip to content

Commit

Permalink
update Docusaurus to 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfornuto committed Nov 15, 2024
1 parent aa3420b commit d0aca57
Show file tree
Hide file tree
Showing 5 changed files with 1,337 additions and 496 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const config = {
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'json']
additionalLanguages: ['bash', 'docker', 'json', 'log', 'nginx', 'systemd', 'yaml',]
},
colorMode: {
defaultMode: "dark",
Expand Down
2 changes: 1 addition & 1 deletion kc
Submodule kc updated 169 files
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.3.2",
"@docusaurus/preset-classic": "^3.3.2",
"@docusaurus/core": "^3.6.1",
"@docusaurus/preset-classic": "^3.6.1",
"@giscus/react": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
Expand All @@ -26,8 +26,8 @@
"remark-github-admonitions-to-directives": "^1.0.4"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.3.2",
"@docusaurus/types": "^3.3.2"
"@docusaurus/module-type-aliases": "^3.6.1",
"@docusaurus/types": "^3.6.1"
},
"browserslist": {
"production": [
Expand Down
10 changes: 4 additions & 6 deletions src/theme/DocItem/Layout/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import clsx from 'clsx';
import {useWindowSize} from '@docusaurus/theme-common';
import {useDoc} from '@docusaurus/theme-common/internal';
import {useDoc} from '@docusaurus/plugin-content-docs/client';
import DocItemPaginator from '@theme/DocItem/Paginator';
import DocVersionBanner from '@theme/DocVersionBanner';
import DocVersionBadge from '@theme/DocVersionBadge';
Expand All @@ -10,7 +10,7 @@ import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile';
import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop';
import DocItemContent from '@theme/DocItem/Content';
import DocBreadcrumbs from '@theme/DocBreadcrumbs';
import Unlisted from '@theme/Unlisted';
import ContentVisibility from '@theme/ContentVisibility';
import styles from './styles.module.css';
import ExperimentalCallout from '@site/src/components/globalCallouts/experimental';
import GiscusComponent from '@site/src/components/GiscusComponent';
Expand All @@ -36,13 +36,11 @@ function useDocTOC() {
export default function DocItemLayout({children}) {
const docTOC = useDocTOC();
const {frontMatter} = useDoc();
const {
metadata: {unlisted},
} = useDoc();
const {metadata} = useDoc();
return (
<div className="row">
<div className={clsx('col', !docTOC.hidden && styles.docItemCol)}>
{unlisted && <Unlisted />}
<ContentVisibility metadata={metadata} />
<DocVersionBanner />
<div className={styles.docItemContainer}>
<article>
Expand Down
Loading

0 comments on commit d0aca57

Please sign in to comment.