fix(dox): config

This commit is contained in:
cha0s 2022-03-07 06:22:26 -06:00
parent 8ecc254579
commit 5eeca95698
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ const makeFilenameRewriter = (filenameRewriters) => (filename, line, column) =>
); );
export const generateHookPage = (hooks, flecks) => { export const generateHookPage = (hooks, flecks) => {
const {filenameRewriters} = flecks.get('@flecks/dox'); const {filenameRewriters} = flecks.get('@flecks/dox/server');
const rewriteFilename = makeFilenameRewriter(filenameRewriters); const rewriteFilename = makeFilenameRewriter(filenameRewriters);
const source = []; const source = [];
source.push('# Hooks'); source.push('# Hooks');
@ -79,7 +79,7 @@ export const generateHookPage = (hooks, flecks) => {
}; };
export const generateTodoPage = (todos, flecks) => { export const generateTodoPage = (todos, flecks) => {
const {filenameRewriters} = flecks.get('@flecks/dox'); const {filenameRewriters} = flecks.get('@flecks/dox/server');
const rewriteFilename = makeFilenameRewriter(filenameRewriters); const rewriteFilename = makeFilenameRewriter(filenameRewriters);
const source = []; const source = [];
source.push('# TODO'); source.push('# TODO');

View File

@ -6,7 +6,7 @@ export default {
[Hooks]: { [Hooks]: {
'@flecks/core/commands': commands, '@flecks/core/commands': commands,
'@flecks/core/config': () => ({ '@flecks/core/config': () => ({
filenameRewriters: [], filenameRewriters: {},
}), }),
}, },
}; };