openstax / oer.exports

Converter to various book formats (PDF, epub, mobi)
2 stars 0 forks source link

dev math 2e: support be prepared answer solutions #3992

Closed openstaxalina closed 4 years ago

openstaxalina commented 4 years ago

What happened?

We will be adding solutions into the Be Prepared notes that occur at the beginning of most non-intro modules.

The note is class be-prepared.

This will be the markup for the Be Prepared exercises:

<note class=”be-prepared”>
  <exercise>
    <problem>...</problem>
    <solution>...</solution>
  </exercise>
</note>

<note class=”be-prepared”>
  <exercise>
    <problem>...</problem>
    <solution>...</solution>
  </exercise>
</note>

...

Acceptance Criteria

(modified 12/17 based on team discussions)

We are matching the PDF to what was done in cnx-recipes as part of https://github.com/openstax/cnx-recipes/issues/1453:

brittany-johnson commented 4 years ago

The be prepared solutions are not collating in the answer key in the oer PDF and I can't move them since it's not a recipe. I think we may need some collation instructions.

openstaxalina commented 4 years ago

@marcjeannott could you please add the following collation instruction in chs. 1 & 2 on easyvm5? <?cnx.answers class="be-prepared"?>

Please double-check that that is the exact class that is on the Be Prepared note. If there are any other classes on the note, those should also go in the collation instructions.

lwtchu commented 4 years ago

@helenemccarron here's the icon https://drive.google.com/open?id=1n-P991FxxT117_jd_m0gSe0qjMNn_mfN let me know if you need adjustments cause i dont have the original files 😬

Meet Google Drive – One place for all your files
Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.
openstaxalina commented 4 years ago

The test content -- chapters 1 & 2 only per dev request -- is here: https://easyvm5.cnx.org/contents/MDaDgCT2 (UUID 30368380-24f6-4c51-9c04-7c802622b040 on easyvm5)

OpenStax CNX
brittany-johnson commented 4 years ago
Screen Shot 2020-01-10 at 12 56 50 PM Screen Shot 2020-01-10 at 12 56 36 PM
lwtchu commented 4 years ago

@brittany-johnson looks like u need to download a font called roboto slab.

also i might be partially to blame since i just gave the icon and didn't write it out. were we going to style these like the try its? cc @helenemccarron

brittany-johnson commented 4 years ago

Downloaded the roboto slab font!

Screen Shot 2020-01-14 at 9 03 47 AM
brittany-johnson commented 4 years ago

Note for @omehes: When this issue is ready for testing, please also download Roboto Slab font to your system.

omehes commented 4 years ago

@brittany-johnson from the note above I assume that this is not testable yet, right?

helenemccarron commented 4 years ago

I believe downloading the font will not be necessary when generating the PDF on the server :D And no, @omehes I am currently trying to solve the last snag with this, we will let you know as soon as it's ready.

brittany-johnson commented 4 years ago

The "Be Prepared" notes should be styled like the "Try It" notes and the numbering of the "Be Prepared" notes should behave as described above under the acceptance criteria. The link to test content is above as well.

There is also a known issue with "Be Prepared" 1.1. In the current test content, the link at the bottom of the note is not displaying correctly and is causing the note to become unaligned. Once this is fixed in the content, it will display properly.

Be Prepared note 1.1 that is displaying incorrectly Screen Shot 2020-01-16 at 12 16 17 PM

Be Prepared note that should be styled like the Try It note Screen Shot 2020-01-16 at 12 16 07 PM

Example of Try It note Screen Shot 2020-01-16 at 12 25 52 PM

lwtchu commented 4 years ago

BELLISSIMO @brittany-johnson

omehes commented 4 years ago

verified "be prepared::" fix. the numbering after "be prepared::x.y is not of grey colour but blue. As discussed with @brittany-johnson, the colour should be grey.

the rest of fix is correct

beprep_colour

brittweinstein commented 4 years ago

@omehes does this need to go back to coding?

brittweinstein commented 4 years ago

@omehes this is ready for testing again! :)

brittany-johnson commented 4 years ago

Visual verification completed by @omehes on 1/17/20

Screen Shot 2020-01-21 at 8 52 30 AM
openstaxalina commented 4 years ago

The Answer Key collation is not working on staging.cnx.org. I am moving this into the next sprint.

brittany-johnson commented 4 years ago

Be prepared answer key

Testing: Please confirm that the Be Prepared solutions are displaying properly in the answer key

Screen Shot 2020-01-30 at 3 45 03 PM Screen Shot 2020-01-30 at 3 45 13 PM
lwtchu commented 4 years ago

Screen Shot 2020-01-31 at 2 34 09 PM Screen Shot 2020-01-31 at 2 37 26 PM

Vefiried on easyvm5

omehes commented 4 years ago

@brittany-johnson this seems to be tested. Do you want me to retest it?

openstaxalina commented 4 years ago

@omehes - I will ask the content management team to test this on staging.cnx.org. This should free up your time for other testing. @brittweinstein

lwtchu commented 4 years ago

Screen Shot 2020-02-07 at 3 53 24 PM Screen Shot 2020-02-07 at 3 54 54 PM

VERIFIED ON STAGING