Skip to content

Commit f377f01

Browse files
committed
chore: Try using a commonjs package
1 parent 1b644d2 commit f377f01

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

markdown-confluence-sync.config.cjs

Lines changed: 0 additions & 13 deletions
This file was deleted.

markdown-confluence-sync.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/** @type {import('@tid-xcut/markdown-confluence-sync').Configuration} */
2+
3+
const DOCS_HOST = process.env.DOCS_HOST;
4+
5+
if (!DOCS_HOST) {
6+
throw new Error("DOCS_HOST environment variable is not set");
7+
}
8+
9+
module.exports = {
10+
confluence: {
11+
noticeTemplate: `NOTICE: This page is synced automatically with content from a commonjs package in <a href="${DOCS_HOST}/docs/{{relativePathWithoutExtension}}.html" target="_blank">${DOCS_HOST}/docs/{{relativePathWithoutExtension}}.html</a>. Changes made manually will be lost, you should <a href="https://github.com/Telefonica/cross-idp/edit/main/components/website-static/docs/{{relativePath}}" target="_blank">edit this page in Github</a> instead.`,
12+
},
13+
};

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "cross-confluence-tools",
33
"private": true,
44
"version": "1.0.0",
5-
"type": "module",
65
"description": "Cross-Cutting team Confluence",
76
"packageManager": "[email protected]",
87
"scripts": {

0 commit comments

Comments
 (0)