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

handle when there is an uncreated chapter #31

Conversation

joelmccracken
Copy link
Contributor

This fixes the issue that is currently plaguing #28 (and, I suspect, #29 as well)


If the file _data/contents.yml had reference to a chapter which does not
exist for the default languge, this code would error. Commenting out the
three which did not exist fixed the problem.

at time of writing, these were:

  • types
  • algebraic-data-types
  • lists-tuples
  • pattern-matching-control-flow

instead fo commenting those out though, I decided to make the code a
little more robust to handle this case.

If the file _data/contents.yml had reference to a chapter which does not
exist for the default languge, this code would error. Commenting out the
three which did not exist fixed the problem.

at time of writing, these were:
  - types
  - algebraic-data-types
  - lists-tuples
  - pattern-matching-control-flow

instead fo commenting those out though, I decided to make the code a
little more robust to handle this case.
Copy link
Contributor

@Kleidukos Kleidukos left a comment

Choose a reason for hiding this comment

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

Fantastic, thanks

@Kleidukos Kleidukos merged commit 1580136 into haskellfoundation:development Sep 6, 2021
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