Skip to content

reorder Tour of Scala sections more logically #436

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

Merged
merged 1 commit into from
Jul 21, 2015
Merged

reorder Tour of Scala sections more logically #436

merged 1 commit into from
Jul 21, 2015

Conversation

SethTisue
Copy link
Member

thanks to Stephen Compall for suggesting this; his original
pull request (#307) couldn't be merged because too much time
had passed, but I have followed his suggested ordering here

I manually verified that all of the "next" and "previous" links are
correct.

thanks to Stephen Compall for suggesting this; his original
pull request (#307) couldn't be merged because too much time
had passed, but I have followed his suggested ordering here
@SethTisue
Copy link
Member Author

review by @heathermiller

@@ -5,11 +5,10 @@ title: Abstract Types
disqus: true

tutorial: scala-tour
num: 2
outof: 35
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why'd you remove the outof here? I see there's a second one (below) which doesn't agree with this one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are only 33 pieces to the tutorial, not 35. I don't even really know what effect outof has but I figured it should go in the first section.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha funny that we have 33 not 35. No comment there (I must be responsible). outof is used for generating indicies and TOCs... Liquid markup is not the smartest templating engine – last I checked you couldn't populate a data structure in it with a subset of pages you want, so we have to do a very dumb "x out of y" articles kind of thing to know when to stop looping through all pages in the site. Yeah. I know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just putting the outof in the first file alphabetically in the folder since, based on the filename, it wasn't clear which number which stub got.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Believe it or not this is actually somehow a little robust. It at least means no broken links...

@heathermiller
Copy link
Member

So I think we're good to merge this. I'd just like to merge and then revert the commit with the previous/next buttons and then do a follow up commit removing these bits from the YAML frontmatter afterwards. I don't think that the benefits provided by the next/previous buttons are worth the complication. I think the TOC is far more often used to navigate between tour articles anyway.

heathermiller added a commit that referenced this pull request Jul 21, 2015
reorder Tour of Scala sections more logically
@heathermiller heathermiller merged commit fa3fa87 into scala:master Jul 21, 2015
@SethTisue SethTisue deleted the reorder-tour branch July 21, 2015 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants