Skip to content

Commit

Permalink
chore: update docusaurus template (#778)
Browse files Browse the repository at this point in the history
Signed-off-by: aeneasr <aeneasr@users.noreply.github.com>

Co-authored-by: aeneasr <aeneasr@users.noreply.github.com>
  • Loading branch information
aeneasr and aeneasr committed Jul 6, 2021
1 parent 37d8d6a commit 2af2700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/scripts/gen-faq.js
Expand Up @@ -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')
Expand Down Expand Up @@ -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' })
)

Expand Down Expand Up @@ -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' })
)

0 comments on commit 2af2700

Please sign in to comment.