Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extraPlugin/extra-plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const {configValidator} = require('../scully/bin');
const {configValidator, routeSplit} = require('../scully/bin');

console.log(__dirname)

Expand Down
6 changes: 4 additions & 2 deletions scully/fileHanderPlugins/asciidoc.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
const asciidoctor = require('asciidoctor.js')();
import {registerPlugin} from '../pluginManagement/pluginRepository';
const loggerManager = asciidoctor.LoggerManager
const memoryLogger = asciidoctor.MemoryLogger.create();
loggerManager.setLogger(memoryLogger);

const asciiDocPlugin = async (raw: string) => {
return asciidoctor.convert(raw);
return asciidoctor.convert(raw, {});
};

registerPlugin('fileHandler', 'adoc', {
alternateExtensions: ['asciidoc', 'asc'],
handler: asciiDocPlugin,
});

23 changes: 23 additions & 0 deletions scully/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.