Skip to content

Commit

Permalink
chore: fix published docs pathes
Browse files Browse the repository at this point in the history
  • Loading branch information
daKmoR committed Apr 6, 2022
1 parent 24b2058 commit 974d087
Show file tree
Hide file tree
Showing 40 changed files with 57 additions and 50 deletions.
6 changes: 3 additions & 3 deletions docs/fundamentals/tools/singleton-manager/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Steps to reproduce:
2. Page B => "Blocked: false" (even when hitting the refresh button)

➡️ See [it on the example page](./example-fail/index.md). <br>
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/docs/tools/singleton-manager/example-fail/demo-app.js).
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js).

---

Expand Down Expand Up @@ -203,7 +203,7 @@ npm run start:singleton
```

➡️ See [it on the example page](./example-success/index.md). <br>
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/docs/tools/singleton-manager/example-success/demo-app.js).
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js).

---

Expand Down Expand Up @@ -244,7 +244,7 @@ npm run start:singleton-complex
```

➡️ See [it on the example page](./example-complex/index.md). <br>
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/docs/tools/singleton-manager/example-complex/demo-app.js).
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-complex/demo-app.js).

---

Expand Down
2 changes: 1 addition & 1 deletion packages-node/babel-plugin-extend-docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Babel Plugin Extend Docs

[=> See Source <=](../../docs/docs/node-tools/babel-plugin-extend-docs/overview.md)
[=> See Source <=](../../docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md)
2 changes: 1 addition & 1 deletion packages-node/babel-plugin-extend-docs/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Babel Plugin Extend Docs

[=> See Source <=](../../../docs/docs/node-tools/babel-plugin-extend-docs/overview.md)
[=> See Source <=](../../../docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md)
2 changes: 1 addition & 1 deletion packages-node/providence-analytics/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Providence

[=> See Source <=](../../docs/docs/node-tools/providence-analytics/overview.md)
[=> See Source <=](../../docs/fundamentals/node-tools/providence-analytics/overview.md)
2 changes: 1 addition & 1 deletion packages-node/providence-analytics/docs/Dashboard.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Dashboard

[=> See Source <=](../../../docs/docs/node-tools/providence-analytics/dashboard.md)
[=> See Source <=](../../../docs/fundamentals/node-tools/providence-analytics/dashboard.md)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Local configuration

[=> See Source <=](../../../docs/docs/node-tools/providence-analytics/LocalConfiguration.md)
[=> See Source <=](../../../docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md)
2 changes: 1 addition & 1 deletion packages-node/providence-analytics/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Providence

[=> See Source <=](../../../docs/docs/node-tools/providence-analytics/overview.md)
[=> See Source <=](../../../docs/fundamentals/node-tools/providence-analytics/overview.md)
23 changes: 15 additions & 8 deletions packages-node/publish-docs/src/PublishDocs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import fs from 'fs-extra';
import path from 'path';
import { listFiles } from './listFiles.js';
Expand Down Expand Up @@ -162,14 +163,20 @@ export class PublishDocs {
}
const rawImportFilePath = matches[1];
const importFilePath = path.join(path.dirname(file), rawImportFilePath);
let newFileContent = await fs.promises.readFile(importFilePath, 'utf8');

newFileContent = rewriteLinksInMdContent(newFileContent, importFilePath, {
gitHubUrl: this.options.gitHubUrl,
gitRootDir: this.options.gitRootDir,
});

await fs.promises.writeFile(file, newFileContent);
try {
let newFileContent = await fs.promises.readFile(importFilePath, 'utf8');

newFileContent = rewriteLinksInMdContent(newFileContent, importFilePath, {
gitHubUrl: this.options.gitHubUrl,
gitRootDir: this.options.gitRootDir,
});

await fs.promises.writeFile(file, newFileContent);
} catch (err) {
throw new Error(
[`Error in "${file}":`, `- Could not find import file ${importFilePath}`].join('\n'),
);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages-node/rocket-preset-extend-lion-docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Rocket Preset Extend Lion Docs

[=> See Source <=](../../docs/docs/node-tools/rocket-preset-extend-lion-docs/overview.md)
[=> See Source <=](../../docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Rocket Preset Extend Lion Docs

[=> See Source <=](../../docs/docs/node-tools/rocket-preset-extend-lion-docs/overview.md)
[=> See Source <=](../../../docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md)
2 changes: 1 addition & 1 deletion packages/ajax/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Ajax

[=> See Source <=](../../docs/docs/tools/ajax/overview.md)
[=> See Source <=](../../docs/fundamentals/tools/ajax/overview.md)
2 changes: 1 addition & 1 deletion packages/ajax/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Ajax Overview

[=> See Source <=](../../../docs/docs/tools/ajax/overview.md)
[=> See Source <=](../../../docs/fundamentals/tools/ajax/overview.md)
2 changes: 1 addition & 1 deletion packages/ajax/docs/use-cases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Ajax Use Cases

[=> See Source <=](../../../docs/docs/tools/ajax/use-cases.md)
[=> See Source <=](../../../docs/fundamentals/tools/ajax/use-cases.md)
2 changes: 1 addition & 1 deletion packages/ajax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group ajax",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group ajax",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --group ajax",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/docs/tools/ajax/assets",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/fundamentals/tools/ajax/assets",
"prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group ajax"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Core

[=> See Source <=](../../docs/docs/systems/core/overview.md)
[=> See Source <=](../../docs/fundamentals/systems/core/overview.md)
2 changes: 1 addition & 1 deletion packages/core/docs/guides/principles/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Principles

[=> See Source <=](../../../../../docs/guides/guides/principles/index.md)
[=> See Source <=](../../../../../docs/guides/principles/index.md)
2 changes: 1 addition & 1 deletion packages/core/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Core Overview

[=> See Source <=](../../../docs/docs/systems/core/overview.md)
[=> See Source <=](../../../docs/fundamentals/systems/core/overview.md)
2 changes: 1 addition & 1 deletion packages/core/docs/rationales/side-effects.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Side Effects

[=> See Source <=](../../../../docs/docs/rationales/side-effects.md)
[=> See Source <=](../../../../docs/fundamentals/rationales/side-effects.md)
2 changes: 1 addition & 1 deletion packages/form-integrations/docs/styling.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Form System Styling

[=> See Source <=](../../../docs/docs/fundamentals/systems/form/styling.md)
[=> See Source <=](../../../docs/fundamentals/systems/form/styling.md)
2 changes: 1 addition & 1 deletion packages/form-integrations/docs/use-cases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Form System Use Cases

[=> See Source <=](../../../docs/docs/fundamentals/systems/form/use-cases.md)
[=> See Source <=](../../../docs/fundamentals/systems/form/use-cases.md)
2 changes: 1 addition & 1 deletion packages/form-integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group form-integrations",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group form-integrations",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --group form-integrations",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/docs/fundamentals/systems/form/assets",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/fundamentals/systems/form/assets",
"prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group form-integrations"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Helpers

[=> See Source <=](../../docs/docs/tools/helpers/overview.md)
[=> See Source <=](../../docs/fundamentals/tools/helpers/overview.md)
2 changes: 1 addition & 1 deletion packages/helpers/docs/action-logger.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Action Logger

[=> See Source <=](../../../docs/docs/tools/helpers/action-logger.md)
[=> See Source <=](../../../docs/fundamentals/tools/helpers/action-logger.md)
2 changes: 1 addition & 1 deletion packages/helpers/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Helpers

[=> See Source <=](../../../docs/docs/tools/helpers/overview.md)
[=> See Source <=](../../../docs/fundamentals/tools/helpers/overview.md)
2 changes: 1 addition & 1 deletion packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"debug": "cd ../../ && npm run debug -- --group icon",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group icon",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --group icon",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/components/icons/icon/assets",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/components/icon/assets",
"prepublishOnly": "npm run publish-docs && npm run custom-elements-manifest",
"test": "cd ../../ && npm run test:browser -- --group icon"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/localize/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Localize

[=> See Source <=](../../docs/docs/systems/localize/overview.md)
[=> See Source <=](../../docs/fundamentals/systems/localize/overview.md)
2 changes: 1 addition & 1 deletion packages/localize/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Localize System Overview

[=> See Source <=](../../../docs/docs/systems/localize/overview.md)
[=> See Source <=](../../../docs/fundamentals/systems/localize/overview.md)
2 changes: 1 addition & 1 deletion packages/localize/docs/rationale.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Localize System Rationale

[=> See Source <=](../../../docs/docs/systems/localize/rationale.md)
[=> See Source <=](../../../docs/fundamentals/systems/localize/rationale.md)
2 changes: 1 addition & 1 deletion packages/localize/docs/text.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Localize System Text

[=> See Source <=](../../../docs/docs/systems/localize/text.md)
[=> See Source <=](../../../docs/fundamentals/systems/localize/text.md)
2 changes: 1 addition & 1 deletion packages/localize/docs/use-cases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Localize System Use Cases

[=> See Source <=](../../../docs/docs/systems/localize/use-cases.md)
[=> See Source <=](../../../docs/fundamentals/systems/localize/use-cases.md)
2 changes: 1 addition & 1 deletion packages/localize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group localize",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group localize",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --group localize",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/docs/systems/localize/assets",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/fundamentals/systems/localize/assets",
"prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group localize"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/overlays/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Overlays

[=> See Source <=](../../docs/docs/systems/overlays/overview.md)
[=> See Source <=](../../docs/fundamentals/systems/overlays/overview.md)
2 changes: 1 addition & 1 deletion packages/overlays/docs/form-integration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Overlays Form Integration

[=> See Source <=](../../../docs/docs/systems/overlays/form-integration.md)
[=> See Source <=](../../../docs/fundamentals/systems/overlays/form-integration.md)
2 changes: 1 addition & 1 deletion packages/overlays/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Overlays Overview

[=> See Source <=](../../../docs/docs/systems/overlays/overview.md)
[=> See Source <=](../../../docs/fundamentals/systems/overlays/overview.md)
2 changes: 1 addition & 1 deletion packages/overlays/docs/rationale.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Overlays Rationale

[=> See Source <=](../../../docs/docs/systems/overlays/rationale.md)
[=> See Source <=](../../../docs/fundamentals/systems/overlays/rationale.md)
2 changes: 1 addition & 1 deletion packages/overlays/docs/scope.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Overlays Scope

[=> See Source <=](../../../docs/docs/systems/overlays/scope.md)
[=> See Source <=](../../../docs/fundamentals/systems/overlays/scope.md)
2 changes: 1 addition & 1 deletion packages/overlays/docs/use-cases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Lion Overlays Use Cases

[=> See Source <=](../../../docs/docs/systems/overlays/use-cases.md)
[=> See Source <=](../../../docs/fundamentals/systems/overlays/use-cases.md)
2 changes: 1 addition & 1 deletion packages/overlays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group overlays",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group overlays",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --group overlays",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/docs/systems/overlays/assets",
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../ --copy-dir docs/fundamentals/systems/overlays/assets",
"prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group overlays"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/singleton-manager/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Singleton Manager

[=> See Source <=](../../docs/docs/tools/singleton-manager/overview.md)
[=> See Source <=](../../docs/fundamentals/tools/singleton-manager/overview.md)
4 changes: 2 additions & 2 deletions packages/singleton-manager/docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Select Rich
# Singleton Manager

[=> See Source <=](../../../docs/docs/tools/singleton-manager/overview.md)
[=> See Source <=](../../../docs/fundamentals/tools/singleton-manager/overview.md)

0 comments on commit 974d087

Please sign in to comment.