Minor renaming and tagging while splitting the document.
This commit is contained in:
parent
e73cbbb72a
commit
92760a54a9
@ -3,7 +3,7 @@ Extension { #name : #LePage }
|
|||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LePage >> asHtmlFile [
|
LePage >> asHtmlFile [
|
||||||
|
|
||||||
self asMarkdownFileWIthMetadataWrappers.
|
self asMarkdownFileWithMetadataWrappers.
|
||||||
self defaultPandocTemplate exists
|
self defaultPandocTemplate exists
|
||||||
ifFalse: [ MarkupFile installTemplate: 'https://mutabit.com/repos.fossil/mutabit/doc/trunk/plantillas/Pandoc/clean-menu-mod.html' into: self defaultPandocTemplate parent ].
|
ifFalse: [ MarkupFile installTemplate: 'https://mutabit.com/repos.fossil/mutabit/doc/trunk/plantillas/Pandoc/clean-menu-mod.html' into: self defaultPandocTemplate parent ].
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ LePage >> asMarkdown [
|
|||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LePage >> asMarkdownFileWIthMetadataWrappers [
|
LePage >> asMarkdownFileWithMetadataWrappers [
|
||||||
| folder |
|
| folder |
|
||||||
folder := self storage.
|
folder := self storage.
|
||||||
^ MarkupFile exportAsFileOn: folder / self markdownFileName containing: self asMarkdownWithMetadataWrappers contents
|
^ MarkupFile exportAsFileOn: folder / self markdownFileName containing: self asMarkdownWithMetadataWrappers contents
|
||||||
@ -316,8 +316,9 @@ LePage >> splitAdmonitionSnippets [
|
|||||||
nodeContent := node string.
|
nodeContent := node string.
|
||||||
nodeContent startsWithMarkdownAdmonition
|
nodeContent startsWithMarkdownAdmonition
|
||||||
ifTrue: [ | snippetCommand |
|
ifTrue: [ | snippetCommand |
|
||||||
snippetCommand := node splitSnippetCommandAtPosition: nodeContent admonitionEndingPosition.
|
snippetCommand := node splitSnippetCommandAtPosition: nodeContent admonitionEndingPosition.
|
||||||
snippetCommand execute
|
snippetCommand execute.
|
||||||
|
node tagWith: (nodeContent lines first trimBoth withoutPrefix: ':::')
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -62,7 +62,7 @@ LeTextSnippet >> parentId [
|
|||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LeTextSnippet >> taggedWith: aString [
|
LeTextSnippet >> tagWith: aString [
|
||||||
self tags add: aString.
|
self tags add: aString.
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user