Changes
7 changed files (+13/-5)
-
-
@@ -22,12 +22,14 @@ To use this link style, surround the target file name without file extension or- [[Overview]] - [[Overview#Arbitrary document tree]] - [[GitHub Flavored Markdown#^alert-callout-compat]] - [[#Block identifier]] ``` - [[Overview|Alternative Title]] - [[Overview]] - [[Overview#Arbitrary document tree]] - [[GitHub Flavored Markdown#^alert-callout-compat]] - [[#Block identifier]] ### Block identifier
-
-
-
@@ -1,6 +1,6 @@--- createdAt: 2024-04-15T23:00:00+09:00 updatedAt: 2024-05-26T13:10:00+09:00 updatedAt: 2024-05-26T18:50:00+09:00 --- ## v1.0
-
@@ -25,7 +25,7 @@ updatedAt: 2024-05-26T13:10:00+09:00- [x] CLI for opinionated build - [x] JSON/JSONC config for CLI - [x] Usage document for CLI - [ ] Wikilink internal hash reference - [x] Wikilink internal hash reference - [ ] Option to set base URL or path ## v0.1.1
-
-
-
@@ -79,6 +79,7 @@ export function embedHandlers(if (hasDocumentToken(node)) { const { document, fragments } = context.documentTree.exchangeToken( node.data.macanaDocumentToken, context.document, ); const hast = buildDocumentContent(document, fragments);
-
-
-
@@ -93,6 +93,7 @@ function getUrl(url: string, node: Mdast.Node, context: BuildContext): string {const { document, fragments } = context.documentTree.exchangeToken( node.data.macanaDocumentToken, context.document, ); const hash = fragments.length > 0
-
-
-
@@ -328,6 +328,7 @@ export class DefaultThemeBuilder implements PageBuilder {const { document, fragments } = context.documentTree .exchangeToken( node.file, target, ); return {
-
@@ -470,6 +471,7 @@ export class DefaultThemeBuilder implements PageBuilder {if (isDocumentToken(node.file)) { const { document, fragments } = tree.exchangeToken( node.file, item, ); return {
-
-
-
@@ -525,7 +525,7 @@ export class DefaultTreeBuilder implements TreeBuilder {nodes, defaultDocument, defaultLanguage: this.#defaultLanguage, exchangeToken: ((token) => { exchangeToken: ((token, importer) => { if (isAssetToken(token)) { const found = assetTokensToFiles.get(token); if (!found) {
-
@@ -545,7 +545,9 @@ export class DefaultTreeBuilder implements TreeBuilder {); } const doc = pathToDocuments.get(ref.internalPath); const doc = ref.internalPath ? pathToDocuments.get(ref.internalPath) : importer; if (!doc) { throw new Error( `DefaultTreeBuilder: No document at the path ${ref.internalPath}, referenced by token ${token}`,
-
-
-
@@ -159,7 +159,7 @@ export interface DocumentTree {* Get a document in exchange for the token. * Throws an error if the token is invalid or target document is missing. */ exchangeToken(token: DocumentToken): { exchangeToken(token: DocumentToken, importer?: Document): { document: Document; fragments: readonly string[]; };
-