@rspress/core 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -89,11 +89,11 @@
89
89
  "unist-util-visit-children": "^2.0.1",
90
90
  "yaml-front-matter": "^4.1.1",
91
91
  "rspack-plugin-virtual-module": "0.1.12",
92
- "@rspress/shared": "1.1.1",
93
- "@rspress/plugin-medium-zoom": "1.1.1",
94
- "@rspress/plugin-last-updated": "1.1.1",
95
- "@rspress/plugin-auto-nav-sidebar": "1.1.1",
96
- "@rspress/plugin-container-syntax": "1.1.1"
92
+ "@rspress/shared": "1.1.3",
93
+ "@rspress/plugin-medium-zoom": "1.1.3",
94
+ "@rspress/plugin-last-updated": "1.1.3",
95
+ "@rspress/plugin-auto-nav-sidebar": "1.1.3",
96
+ "@rspress/plugin-container-syntax": "1.1.3"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@modern-js/plugin-tailwindcss": "2.37.1",
@@ -47,10 +47,7 @@ export function DocLayout(props: DocLayoutProps) {
47
47
  // if in iframe, default value is false
48
48
  const defaultHasAside =
49
49
  typeof window === 'undefined' ? true : window.top === window.self;
50
- return (
51
- (frontmatter?.outline ?? themeConfig?.outline ?? defaultHasAside) &&
52
- headers.length > 0
53
- );
50
+ return frontmatter?.outline ?? themeConfig?.outline ?? defaultHasAside;
54
51
  };
55
52
  const [hasAside, setHasAside] = useState(getHasAside());
56
53