Skip to content

Commit

Permalink
Merge pull request #789 from moufort/changeMonthBlogName
Browse files Browse the repository at this point in the history
change name of monthBlog
  • Loading branch information
Ducasse authored Jul 5, 2024
2 parents 5ad9dfb + c404941 commit 36fe5be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Microdown-Blog-Tests/MicBlogCreatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ MicBlogCreatorTest >> testCreateHtmlGroupFileAt [
at: (Month year: 2019 month: 'January').

self assert:
(fileSystem / 'html' / '_monthBlog' / 'January_2019.html') exists
(fileSystem / 'html' / 'monthBlog' / 'January_2019.html') exists
]

{ #category : 'tests' }
Expand Down Expand Up @@ -215,7 +215,7 @@ MicBlogCreatorTest >> testInitializeMonthList [

blog initializeMonthList: listSingleSummarizer.

self assert: (fileSystem / 'html' / '_monthBlog') allFiles size equals: 2
self assert: (fileSystem / 'html' / 'monthBlog') allFiles size equals: 2
]

{ #category : 'tests' }
Expand Down
12 changes: 6 additions & 6 deletions src/Microdown-Blog-Tests/MicMonthListCreatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ MicMonthListCreatorTest >> testGenerateMicListBlockOfLinkDate [
self
assert: dateList children size equals: self numberOfMonthSince2014;
assert: dateList children first children first plainText
equals: '[January 2014](/_monthBlog/January_2014.html)';
equals: '[January 2014](/monthBlog/January_2014.html)';
assert: dateList children last children first plainText
equals: '[' , Date today month asString , '](/_monthBlog/'
equals: '[' , Date today month asString , '](/monthBlog/'
, Date today month name , '_' , Date today year asString , '.html)'
]

Expand All @@ -84,9 +84,9 @@ MicMonthListCreatorTest >> testGenerateMicListBlockOfLinkDateWith [
self
assert: dateList children size equals: self numberOfMonthSince2014;
assert: dateList children first children first plainText
equals: '[January 2014](/_monthBlog/January_2014.html)';
equals: '[January 2014](/monthBlog/January_2014.html)';
assert: dateList children last children first plainText
equals: '[' , Date today month asString , '](/_monthBlog/'
equals: '[' , Date today month asString , '](/monthBlog/'
, Date today month name , '_' , Date today year asString , '.html)'
]

Expand All @@ -111,8 +111,8 @@ MicMonthListCreatorTest >> testGenerateMicListBlockOfLinkDateWithRootPath [
self
assert: dateList children size equals: self numberOfMonthSince2014;
assert: dateList children first children first plainText
equals: '[January 2014](', ressources genericNonEmptyRootPath ,'/_monthBlog/January_2014.html)';
equals: '[January 2014](', ressources genericNonEmptyRootPath ,'/monthBlog/January_2014.html)';
assert: dateList children last children first plainText
equals: '[' , Date today month asString , '](', ressources genericNonEmptyRootPath ,'/_monthBlog/'
equals: '[' , Date today month asString , '](', ressources genericNonEmptyRootPath ,'/monthBlog/'
, Date today month name , '_' , Date today year asString , '.html)'
]
3 changes: 1 addition & 2 deletions src/Microdown-Blog/MicBlogCreator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ MicBlogCreator >> createHtmlGroupFile: aMicRoot at: aMonth [
visitor := (MicHTMLVisitor new visit: aMicRoot) first.
self
write: visitor
to: '_monthBlog' asFileReference / (aMonth name , '_'
, aMonth year asString , '.html')
to: 'monthBlog' asFileReference / (aMonth name, '_', aMonth year asString , '.html')
]

{ #category : 'rendering' }
Expand Down
2 changes: 1 addition & 1 deletion src/Microdown-Blog/MicMonthListCreator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ MicMonthListCreator >> generateMicListBlockOfLinkDateWith: aMonthList [
listElement := MicListItemBlock new.
link := self
makeALink: each asString
to: FileReference / '_monthBlog'
to: FileReference / 'monthBlog'
/ (each name , '_' , each year asString , '.html').
link parent: listElement.
listElement parent: unorderedList ].
Expand Down

0 comments on commit 36fe5be

Please sign in to comment.