@alauda/doom 1.17.0 → 1.17.2

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/lib/cli/export.js CHANGED
@@ -88,7 +88,8 @@ export const exportCommand = new Command('export')
88
88
  localStorage.setItem('rspress-visited', '1');
89
89
  },
90
90
  ],
91
- outlineContainerSelector: '.rspress-doc',
91
+ outlineContainerSelector: '.rp-doc',
92
+ outlineExcludeSelector: '.rp-toc-exclude *',
92
93
  },
93
94
  };
94
95
  const exportPdf = async (sidebarItems, lang = config.lang, options) => {
@@ -18,7 +18,7 @@ export const remarkAutoToc = function () {
18
18
  {
19
19
  type: 'mdxJsxAttribute',
20
20
  name: 'className',
21
- value: 'doom-auto-toc rspress-toc-exclude',
21
+ value: 'doom-auto-toc rp-toc-exclude',
22
22
  },
23
23
  ],
24
24
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.17.0",
3
+ "version": "1.17.2",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  "rspress-plugins"
41
41
  ],
42
42
  "dependencies": {
43
- "@alauda/doom-export": "^0.2.1",
43
+ "@alauda/doom-export": "^0.3.1",
44
44
  "@cspell/eslint-plugin": "^9.4.0",
45
45
  "@eslint-react/eslint-plugin": "^2.3.13",
46
46
  "@inquirer/prompts": "^8.1.0",
@@ -137,25 +137,24 @@ td {
137
137
  }
138
138
 
139
139
  @mixin print {
140
- .rspress {
140
+ .rp {
141
141
  &-nav,
142
- &-sidebar-menu,
143
- &-doc-footer {
142
+ &-doc-layout__menu,
143
+ &-doc-footer,
144
+ &-doc-layout__sidebar {
144
145
  display: none;
145
146
  }
146
147
 
147
- &-doc-container {
148
+ &-doc-layout__doc-container {
148
149
  padding: 0;
150
+ // https://github.com/web-infra-dev/rspress/issues/2909
151
+ min-height: unset;
149
152
  }
150
153
 
151
- &-directive-title::marker {
152
- content: none;
154
+ &-toc-item--active .rp-toc-item__text {
155
+ color: var(--rp-c-text-2);
153
156
  }
154
157
  }
155
-
156
- [class^='scroll-to-top_'] {
157
- display: none;
158
- }
159
158
  }
160
159
 
161
160
  .print:root {