Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change name of monthBlog #789

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading