chore: fix published docs pathes

This commit is contained in:
Thomas Allmer 2022-04-06 14:43:08 +02:00
parent 24b205837e
commit 974d0872a0
40 changed files with 55 additions and 48 deletions

View file

@ -160,7 +160,7 @@ Steps to reproduce:
2. Page B => "Blocked: false" (even when hitting the refresh button) 2. Page B => "Blocked: false" (even when hitting the refresh button)
➡️ See [it on the example page](./example-fail/index.md). <br> ➡️ 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).
--- ---
@ -203,7 +203,7 @@ npm run start:singleton
``` ```
➡️ See [it on the example page](./example-success/index.md). <br> ➡️ 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).
--- ---
@ -244,7 +244,7 @@ npm run start:singleton-complex
``` ```
➡️ See [it on the example page](./example-complex/index.md). <br> ➡️ 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).
--- ---

View file

@ -1,3 +1,3 @@
# Babel Plugin Extend Docs # 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)

View file

@ -1,3 +1,3 @@
# Babel Plugin Extend Docs # 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)

View file

@ -1,3 +1,3 @@
# Providence # Providence
[=> See Source <=](../../docs/docs/node-tools/providence-analytics/overview.md) [=> See Source <=](../../docs/fundamentals/node-tools/providence-analytics/overview.md)

View file

@ -1,3 +1,3 @@
# Dashboard # Dashboard
[=> See Source <=](../../../docs/docs/node-tools/providence-analytics/dashboard.md) [=> See Source <=](../../../docs/fundamentals/node-tools/providence-analytics/dashboard.md)

View file

@ -1,3 +1,3 @@
# Local configuration # Local configuration
[=> See Source <=](../../../docs/docs/node-tools/providence-analytics/LocalConfiguration.md) [=> See Source <=](../../../docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md)

View file

@ -1,3 +1,3 @@
# Providence # Providence
[=> See Source <=](../../../docs/docs/node-tools/providence-analytics/overview.md) [=> See Source <=](../../../docs/fundamentals/node-tools/providence-analytics/overview.md)

View file

@ -1,3 +1,4 @@
/* eslint-disable no-console */
import fs from 'fs-extra'; import fs from 'fs-extra';
import path from 'path'; import path from 'path';
import { listFiles } from './listFiles.js'; import { listFiles } from './listFiles.js';
@ -162,6 +163,7 @@ export class PublishDocs {
} }
const rawImportFilePath = matches[1]; const rawImportFilePath = matches[1];
const importFilePath = path.join(path.dirname(file), rawImportFilePath); const importFilePath = path.join(path.dirname(file), rawImportFilePath);
try {
let newFileContent = await fs.promises.readFile(importFilePath, 'utf8'); let newFileContent = await fs.promises.readFile(importFilePath, 'utf8');
newFileContent = rewriteLinksInMdContent(newFileContent, importFilePath, { newFileContent = rewriteLinksInMdContent(newFileContent, importFilePath, {
@ -170,6 +172,11 @@ export class PublishDocs {
}); });
await fs.promises.writeFile(file, newFileContent); await fs.promises.writeFile(file, newFileContent);
} catch (err) {
throw new Error(
[`Error in "${file}":`, `- Could not find import file ${importFilePath}`].join('\n'),
);
}
} }
} }
} }

View file

@ -1,3 +1,3 @@
# Rocket Preset Extend Lion Docs # 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)

View file

@ -1,3 +1,3 @@
# Rocket Preset Extend Lion Docs # 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)

View file

@ -1,3 +1,3 @@
# Lion Ajax # Lion Ajax
[=> See Source <=](../../docs/docs/tools/ajax/overview.md) [=> See Source <=](../../docs/fundamentals/tools/ajax/overview.md)

View file

@ -1,3 +1,3 @@
# Lion Ajax Overview # Lion Ajax Overview
[=> See Source <=](../../../docs/docs/tools/ajax/overview.md) [=> See Source <=](../../../docs/fundamentals/tools/ajax/overview.md)

View file

@ -1,3 +1,3 @@
# Lion Ajax Use Cases # Lion Ajax Use Cases
[=> See Source <=](../../../docs/docs/tools/ajax/use-cases.md) [=> See Source <=](../../../docs/fundamentals/tools/ajax/use-cases.md)

View file

@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group ajax", "debug": "cd ../../ && npm run debug -- --group ajax",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group ajax", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group ajax",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --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", "prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group ajax" "test": "cd ../../ && npm run test:browser -- --group ajax"
}, },

View file

@ -1,3 +1,3 @@
# Lion Core # Lion Core
[=> See Source <=](../../docs/docs/systems/core/overview.md) [=> See Source <=](../../docs/fundamentals/systems/core/overview.md)

View file

@ -1,3 +1,3 @@
# Principles # Principles
[=> See Source <=](../../../../../docs/guides/guides/principles/index.md) [=> See Source <=](../../../../../docs/guides/principles/index.md)

View file

@ -1,3 +1,3 @@
# Lion Core Overview # Lion Core Overview
[=> See Source <=](../../../docs/docs/systems/core/overview.md) [=> See Source <=](../../../docs/fundamentals/systems/core/overview.md)

View file

@ -1,3 +1,3 @@
# Side Effects # Side Effects
[=> See Source <=](../../../../docs/docs/rationales/side-effects.md) [=> See Source <=](../../../../docs/fundamentals/rationales/side-effects.md)

View file

@ -1,3 +1,3 @@
# Form System Styling # Form System Styling
[=> See Source <=](../../../docs/docs/fundamentals/systems/form/styling.md) [=> See Source <=](../../../docs/fundamentals/systems/form/styling.md)

View file

@ -1,3 +1,3 @@
# Form System Use Cases # Form System Use Cases
[=> See Source <=](../../../docs/docs/fundamentals/systems/form/use-cases.md) [=> See Source <=](../../../docs/fundamentals/systems/form/use-cases.md)

View file

@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group form-integrations", "debug": "cd ../../ && npm run debug -- --group form-integrations",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group form-integrations", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group form-integrations",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --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", "prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group form-integrations" "test": "cd ../../ && npm run test:browser -- --group form-integrations"
}, },

View file

@ -1,3 +1,3 @@
# Lion Helpers # Lion Helpers
[=> See Source <=](../../docs/docs/tools/helpers/overview.md) [=> See Source <=](../../docs/fundamentals/tools/helpers/overview.md)

View file

@ -1,3 +1,3 @@
# Action Logger # Action Logger
[=> See Source <=](../../../docs/docs/tools/helpers/action-logger.md) [=> See Source <=](../../../docs/fundamentals/tools/helpers/action-logger.md)

View file

@ -1,3 +1,3 @@
# Lion Helpers # Lion Helpers
[=> See Source <=](../../../docs/docs/tools/helpers/overview.md) [=> See Source <=](../../../docs/fundamentals/tools/helpers/overview.md)

View file

@ -28,7 +28,7 @@
"debug": "cd ../../ && npm run debug -- --group icon", "debug": "cd ../../ && npm run debug -- --group icon",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group icon", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group icon",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --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", "prepublishOnly": "npm run publish-docs && npm run custom-elements-manifest",
"test": "cd ../../ && npm run test:browser -- --group icon" "test": "cd ../../ && npm run test:browser -- --group icon"
}, },

View file

@ -1,3 +1,3 @@
# Lion Localize # Lion Localize
[=> See Source <=](../../docs/docs/systems/localize/overview.md) [=> See Source <=](../../docs/fundamentals/systems/localize/overview.md)

View file

@ -1,3 +1,3 @@
# Localize System Overview # Localize System Overview
[=> See Source <=](../../../docs/docs/systems/localize/overview.md) [=> See Source <=](../../../docs/fundamentals/systems/localize/overview.md)

View file

@ -1,3 +1,3 @@
# Localize System Rationale # Localize System Rationale
[=> See Source <=](../../../docs/docs/systems/localize/rationale.md) [=> See Source <=](../../../docs/fundamentals/systems/localize/rationale.md)

View file

@ -1,3 +1,3 @@
# Localize System Text # Localize System Text
[=> See Source <=](../../../docs/docs/systems/localize/text.md) [=> See Source <=](../../../docs/fundamentals/systems/localize/text.md)

View file

@ -1,3 +1,3 @@
# Localize System Use Cases # Localize System Use Cases
[=> See Source <=](../../../docs/docs/systems/localize/use-cases.md) [=> See Source <=](../../../docs/fundamentals/systems/localize/use-cases.md)

View file

@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group localize", "debug": "cd ../../ && npm run debug -- --group localize",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group localize", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group localize",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --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", "prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group localize" "test": "cd ../../ && npm run test:browser -- --group localize"
}, },

View file

@ -1,3 +1,3 @@
# Lion Overlays # Lion Overlays
[=> See Source <=](../../docs/docs/systems/overlays/overview.md) [=> See Source <=](../../docs/fundamentals/systems/overlays/overview.md)

View file

@ -1,3 +1,3 @@
# Lion Overlays Form Integration # Lion Overlays Form Integration
[=> See Source <=](../../../docs/docs/systems/overlays/form-integration.md) [=> See Source <=](../../../docs/fundamentals/systems/overlays/form-integration.md)

View file

@ -1,3 +1,3 @@
# Lion Overlays Overview # Lion Overlays Overview
[=> See Source <=](../../../docs/docs/systems/overlays/overview.md) [=> See Source <=](../../../docs/fundamentals/systems/overlays/overview.md)

View file

@ -1,3 +1,3 @@
# Lion Overlays Rationale # Lion Overlays Rationale
[=> See Source <=](../../../docs/docs/systems/overlays/rationale.md) [=> See Source <=](../../../docs/fundamentals/systems/overlays/rationale.md)

View file

@ -1,3 +1,3 @@
# Lion Overlays Scope # Lion Overlays Scope
[=> See Source <=](../../../docs/docs/systems/overlays/scope.md) [=> See Source <=](../../../docs/fundamentals/systems/overlays/scope.md)

View file

@ -1,3 +1,3 @@
# Lion Overlays Use Cases # Lion Overlays Use Cases
[=> See Source <=](../../../docs/docs/systems/overlays/use-cases.md) [=> See Source <=](../../../docs/fundamentals/systems/overlays/use-cases.md)

View file

@ -27,7 +27,7 @@
"debug": "cd ../../ && npm run debug -- --group overlays", "debug": "cd ../../ && npm run debug -- --group overlays",
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group overlays", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group overlays",
"debug:webkit": "cd ../../ && npm run debug:webkit -- --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", "prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group overlays" "test": "cd ../../ && npm run test:browser -- --group overlays"
}, },

View file

@ -1,3 +1,3 @@
# Singleton Manager # Singleton Manager
[=> See Source <=](../../docs/docs/tools/singleton-manager/overview.md) [=> See Source <=](../../docs/fundamentals/tools/singleton-manager/overview.md)

View file

@ -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)