From 510456d8e610af76d4899e80f21ccf8935dfd0fe Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Tue, 6 Jul 2021 09:36:57 +0200 Subject: [PATCH] chore: update docusaurus template (#2617) Signed-off-by: aeneasr Co-authored-by: aeneasr --- docs/scripts/gen-faq.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/scripts/gen-faq.js b/docs/scripts/gen-faq.js index 10d98b1ccc7..e90e4485f61 100644 --- a/docs/scripts/gen-faq.js +++ b/docs/scripts/gen-faq.js @@ -4,7 +4,7 @@ const fs = require('fs') const yaml = require('js-yaml') const { Remarkable } = require('remarkable') const path = require('path') -const yamlPath = path.resolve('./docs/faq.yaml') +const yamlPath = path.resolve('./faq.yaml') const prettier = require('prettier') const prettierStyles = require('ory-prettier-styles') const config = require('../contrib/config.js') @@ -62,7 +62,7 @@ faq.forEach((el) => { }) fs.writeFileSync( - path.resolve('./docs/docs/faq.mdx'), + path.resolve('./docs/faq.mdx'), prettier.format(markdownPage, { ...prettierStyles, parser: 'mdx' }) ) @@ -100,6 +100,6 @@ li.selected.${tag}~.question.${tag} { }) fs.writeFileSync( - './docs/src/theme/faq.gen.module.css', + './src/theme/faq.gen.module.css', prettier.format(generatedCSS, { ...prettierStyles, parser: 'css' }) )