@journeyapps-labs/common-docs 0.0.1 → 0.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @journeyapps-labs/common-docs
2
+
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - d24429c: update deps
8
+
9
+ ## 0.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 4db754a: Initial
@@ -7,4 +7,4 @@ export interface Package {
7
7
  name: string;
8
8
  }
9
9
  export declare const generateTSDocPlugin: (options: Package) => (string | Partial<PluginOptions | TypeDocOptionMap>)[];
10
- export declare const generateTSDocSidebarEntry: (options: Package) => SidebarsConfig;
10
+ export declare const generateTSDocSidebarEntry: (options: Package, docs_dir: string) => SidebarsConfig;
@@ -25,7 +25,7 @@ export const generateTSDocPlugin = (options) => {
25
25
  }
26
26
  ];
27
27
  };
28
- export const generateTSDocSidebarEntry = (options) => {
28
+ export const generateTSDocSidebarEntry = (options, docs_dir) => {
29
29
  return {
30
30
  type: 'category',
31
31
  label: options.name,
@@ -33,6 +33,6 @@ export const generateTSDocSidebarEntry = (options) => {
33
33
  type: 'doc',
34
34
  id: `generated/${options.id}/index`
35
35
  },
36
- items: require(`../docs/generated/${options.id}/typedoc-sidebar.cjs`)
36
+ items: require(path.join(docs_dir, `generated/${options.id}/typedoc-sidebar.cjs`))
37
37
  };
38
38
  };