portosaurus 2.1.0 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/soymadip/portosaurus",
6
6
  "repository": {
@@ -360,7 +360,7 @@ export function buildDocuConfig(rawUserConfig, UserRoot) {
360
360
  const PortoPagesDir = path.resolve(PortoRoot, "src/theme/pages");
361
361
 
362
362
  // Theme overrides
363
- const PortoThemeDir = path.resolve(PortoRoot, "src/theme/overrides");
363
+ const PortoThemeDir = path.resolve(PortoRoot, "src/theme");
364
364
 
365
365
  // Sidebar config
366
366
  const sidebarPath = path.resolve(PortoRoot, "src/theme/config/sidebar.js");
@@ -626,7 +626,7 @@ export function buildDocuConfig(rawUserConfig, UserRoot) {
626
626
  module: {
627
627
  rules: [
628
628
  {
629
- test: /\\.[jt]sx?$/,
629
+ test: /\.[jt]sx?$/,
630
630
  include: [path.resolve(PortoRoot, "src")],
631
631
  use: [jsLoader],
632
632
  },
@@ -4,9 +4,9 @@ import Details from "@theme/Details";
4
4
  import Tabs from "@theme/Tabs";
5
5
  import TabItem from "@theme/TabItem";
6
6
 
7
- import { Pv, SrcPv } from "../components/Preview/index.js";
8
- import Tooltip from "../components/Tooltip/index.js";
9
- import NoteCards, { TopicList } from "../components/NoteIndex/index.js";
7
+ import { Pv, SrcPv } from "./components/Preview/index.js";
8
+ import Tooltip from "./components/Tooltip/index.js";
9
+ import NoteCards, { TopicList } from "./components/NoteIndex/index.js";
10
10
 
11
11
  const components = {
12
12
  ...MDXComponents,
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import BrowserOnly from "@docusaurus/BrowserOnly";
3
3
  import OriginalRoot from "@theme-original/Root";
4
- import { PreviewProvider, ViewerWindow } from "../components/Preview/index.js";
4
+ import { PreviewProvider, ViewerWindow } from "./components/Preview/index.js";
5
5
 
6
6
  /**
7
7
  * Wraps Docusaurus's original Root (which provides ColorModeProvider, etc.)
@@ -11,7 +11,7 @@ const consola = createConsola({
11
11
  });
12
12
 
13
13
  const format = (badge, color, ...args) => {
14
- const prefix = color.bold(badge.padEnd(10));
14
+ const prefix = color.bold(badge.padEnd(9));
15
15
  const message = args
16
16
  .map((arg) => (typeof arg === "string" ? arg : JSON.stringify(arg)))
17
17
  .join(" ");