@hestia-earth/guide 0.0.3 → 0.0.4

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.4](https://gitlab.com/hestia-earth/hestia-guide/compare/v0.0.3...v0.0.4) (2024-10-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * load content from current directory ([4d03fad](https://gitlab.com/hestia-earth/hestia-guide/commit/4d03fade5b6782dd49752a0276e90ab69aea1d66))
11
+
5
12
  ### [0.0.3](https://gitlab.com/hestia-earth/hestia-guide/compare/v0.0.2...v0.0.3) (2024-10-29)
6
13
 
7
14
 
package/dist/index.js CHANGED
@@ -26,9 +26,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.loadPage = exports.findPage = exports.listPages = exports.loadIndex = void 0;
29
- var contentDir = "../content";
30
29
  var loadIndex = function () {
31
- return require("".concat(contentDir, "/index.json"));
30
+ return require("./content/index.json");
32
31
  };
33
32
  exports.loadIndex = loadIndex;
34
33
  var listPages = function () { return flatPages((0, exports.loadIndex)()); };
@@ -45,6 +44,6 @@ var findPage = function (id) {
45
44
  exports.findPage = findPage;
46
45
  var loadPage = function (_a) {
47
46
  var jsonPath = _a.jsonPath;
48
- return require("".concat(contentDir, "/").concat(jsonPath));
47
+ return require("./content/".concat(jsonPath));
49
48
  };
50
49
  exports.loadPage = loadPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/guide",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Hestia Guide pages",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes