Skip to content

Commit

Permalink
change name of monthBlog
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin.moutte.etu committed Jul 5, 2024
1 parent 5ad9dfb commit 0ce56f0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 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
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 0ce56f0

Please sign in to comment.