Skip to content

Byg302gkafli15 - #241

Open
dhsigurdar wants to merge 2 commits into
mainfrom
byg302gkafli15
Open

Byg302gkafli15#241
dhsigurdar wants to merge 2 commits into
mainfrom
byg302gkafli15

Conversation

@dhsigurdar

@dhsigurdar dhsigurdar commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Endurheimta og hefja vinnu við kafla 15

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive Icelandic chapter on cement.
    • Covers Portland cement production, clinker phases, hydration, hydration products, and strength development.
    • Explains cement types, water-to-cement ratio, admixtures, and supplementary cementitious materials.
    • Includes chemical reactions, explanatory lists, figures, and tables.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Changes

Cement chapter

Layer / File(s) Summary
Cement concepts and production
projects/byg302g/kafli15.rst
Adds an Icelandic chapter on cement fundamentals, Portland cement production, clinker phases, hydration, strength development, cement types, water-to-cement ratio, admixtures, and supplementary cementitious materials. It also adds equations, figures, tables, and explanatory lists.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: benediktmag

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title identifies the restored chapter 15 and matches the main change in the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch byg302gkafli15

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

📚 PR Documentation Deployed

Your PR documentation is available with enhanced build performance:

🔗 PR Documentation: https://edbook.github.io/haskoli-islands/byg302gkafli15/
🔗 Individual Projects: Available at https://edbook.github.io/haskoli-islands/byg302gkafli15/[project-name]/

✨ Performance Features:

  • ⚡ Parallel builds (4x faster)
  • 💾 Intelligent caching
  • 🏗️ Optimized Sphinx configuration
  • 📊 Build statistics included

Version: 26.08.05.1330+6dabfe5

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@projects/byg302g/kafli15.rst`:
- Around line 8-10: Add a concise, meaningful :alt: option to the figure
directive at the shown location and to every other figure or nested image
directive identified in this document, accurately describing each diagram or
photo for screen-reader users. Preserve the existing alignment, width, and image
references.
- Around line 8-10: Update the image reference in the kafli15 documentation to
match the existing case-sensitive asset name Hitamyndum.png, preserving the
current relative path and figure settings so the build resolves the image.
- Around line 20-23: Update the Portland cement raw-material list in the section
around “Portland sement er framleitt úr” to identify limestone and shell sand as
CaCO_3 carbonate sources rather than CaO. Format the chemical formulas using
LaTeX in the appropriate Sphinx math directive, while retaining the existing
silica, alumina, and iron oxide components.
- Line 6: Proofread and correct the prose in kafli15.rst by updating the
specific wording issues called out in the affected paragraphs: fix the phrase in
the opening sentence from “áður að” to “áður en”, correct the misspellings
“stearki” and “styrkaukingin” in the later cement-strength discussion, add the
missing space before the :math:`C_2S` reference, repair the malformed “eins
oglLignosulfonatefni” text, and adjust the agreement in “þessi sement hvarfast”
to the grammatically correct form. Keep the surrounding content and structure
unchanged while applying these edits in the relevant sections.
- Around line 107-123: Correct the cement hydration equations and phase formulas
in the Monosulfoaluminat, Tetracalcium aluminat hydrate, and Ettringít sections
by using the complete ettringite formula consistently and preserving matching
monosulfoaluminate notation. Wrap every reaction in a Sphinx math role with
consistent LaTeX notation. Update the gypsum setting-control explanation and
reaction near the C3S/C3A discussion to identify rapid C3A hydration and
prevention of flash setting, not C3S.
- Line 275: Fix the unmatched asterisk in the strength-loss statement by
removing the stray markup or replacing it with a valid defined reference,
ensuring the rendered RST does not contain an unintended asterisk.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b8d0509a-0884-4ce0-a2d1-9a1d334c8ede

📥 Commits

Reviewing files that changed from the base of the PR and between 8ce624d and 8e57c72.

⛔ Files ignored due to path filters (20)
  • projects/byg302g/myndir/kafli15/28dagar.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/7dagat.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/C3SogC2S.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/Hitamyndum.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/flot.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/holrymd2.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/holrymi.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/hraðarar.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/hugtök.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/hvörfun.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/hvörfunogtími.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/iaukar.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/klinkerhörðnun.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/loftblendni1.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/loftblendni2.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/porur.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/samsetningsteypu1.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/vatnspararar.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/votaðferð.png is excluded by !**/*.png
  • projects/byg302g/myndir/kafli15/þurraðferð.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • projects/byg302g/kafli15.rst


Sement er fínmalað bindiefni sem hvarfast þegar það blandast vatni og harðnar.
Lýsa má sementi sem líminu í steinsteypu þar sem það límir saman fylliefnakornin.
En áður að við förum að fjalla meira um sement eru nokkur hugtök sem eru gott að þekkja.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Proofread the changed prose before merge.

Correct the clear wording issues in these lines:

  • Line 6: áður aðáður en.
  • Line 71: stearkisterkari.
  • Line 73: styrkaukinginstyrkaukningin.
  • Line 141: add a space before :math:\C_2S``.
  • Line 290: correct eins oglLignosulfonatefni.
  • Line 362: review the agreement in þessi sement hvarfast.

These corrections will improve clarity for students.

As per path instructions: “The content is free of spelling and grammatical errors.”

Also applies to: 71-73, 141-141, 290-292, 362-362

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/byg302g/kafli15.rst` at line 6, Proofread and correct the prose in
kafli15.rst by updating the specific wording issues called out in the affected
paragraphs: fix the phrase in the opening sentence from “áður að” to “áður en”,
correct the misspellings “stearki” and “styrkaukingin” in the later
cement-strength discussion, add the missing space before the :math:`C_2S`
reference, repair the malformed “eins oglLignosulfonatefni” text, and adjust the
agreement in “þessi sement hvarfast” to the grammatically correct form. Keep the
surrounding content and structure unchanged while applying these edits in the
relevant sections.

Source: Path instructions

Comment on lines +8 to +10
.. figure:: ./myndir/kafli15/hugtök.png
:align: center
:width: 100%

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift

Add meaningful alternative text to every image.

All figure and nested image directives lack :alt: text. Add a concise description for each diagram and photo. This is required for screen-reader users to access the educational content. (docutils.sourceforge.io)

As per path instructions: “The content is accessible and follows web accessibility guidelines (e.g., proper heading structure, alt text for images).”

Also applies to: 40-43, 75-77, 85-87, 128-130, 146-148, 170-173, 254-259, 281-284, 310-313, 333-335

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/byg302g/kafli15.rst` around lines 8 - 10, Add a concise, meaningful
:alt: option to the figure directive at the shown location and to every other
figure or nested image directive identified in this document, accurately
describing each diagram or photo for screen-reader users. Preserve the existing
alignment, width, and image references.

Source: Path instructions


🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

rst="projects/byg302g/kafli15.rst"

python - "$rst" <<'PY'
from pathlib import Path
import re
import sys

rst = Path(sys.argv[1])
refs = []

for line in rst.read_text(encoding="utf-8").splitlines():
    match = re.search(r"\.\.\s+(?:figure|image)::\s+(\S+)", line)
    if match:
        refs.append(match.group(1))

missing = []
for ref in refs:
    path = (rst.parent / ref).resolve()
    if not path.is_file():
        missing.append((ref, path))

for ref, path in missing:
    print(f"Missing: {ref} -> {path}")

if missing:
    raise SystemExit(1)

print(f"Checked {len(refs)} image references.")
PY

Repository: edbook/haskoli-islands

Length of output: 270


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

rst="projects/byg302g/kafli15.rst"

printf 'Referenced figure/image paths:\n'
python - "$rst" <<'PY'
from pathlib import Path
import re
import sys

rst = Path(sys.argv[1])
for i, line in enumerate(rst.read_text(encoding="utf-8").splitlines(), 1):
    match = re.search(r"\.\.\s+(?:figure|image)::\s+(\S+)", line)
    if match:
        ref = match.group(1)
        path = (rst.parent / ref).resolve()
        print(f"{i}: {ref} -> {path} exists={path.is_file()} ")
PY

printf '\nExisting myndir/kafli15 entries:\n'
find projects/byg302g/myndir/kafli15 -maxdepth 1 -type f 2>/dev/null | sort | sed 's#^##' | head -80

Repository: edbook/haskoli-islands

Length of output: 3112


Fix the missing hitamyndum.png image reference.

projects/byg302g/kafli15.rst references ./myndir/kafli15/hitamyndum.png, but the file in projects/byg302g/myndir/kafli15/ is named Hitamyndum.png. Either rename the image to match this reference or update the reference to Hitamyndum.png so the build can resolve the asset.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/byg302g/kafli15.rst` around lines 8 - 10, Update the image reference
in the kafli15 documentation to match the existing case-sensitive asset name
Hitamyndum.png, preserving the current relative path and figure settings so the
build resolves the image.

Source: Path instructions

Comment on lines +20 to +23
Portland sement er framleitt úr:

* Kalkstein (CaO) og leir (SiO2, Al2O3, Fe2O3) venjulega
* Skeljasandi (CaO) og líparíti (SiO2, Al2O3, Fe2O3) hér áður fyrr

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Correct the raw-material formulas.

CaO is the oxide produced during calcination. Limestone and shell-derived feed are carbonate sources, so use CaCO_3 for the raw materials, or state explicitly that the listed values are target oxide contributions after calcination. The current text can teach students that limestone and shell sand are already calcium oxide. (pubs.usgs.gov)

As per path instructions: “Mathematical equations are correctly formatted using LaTeX syntax within the appropriate Sphinx directives.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/byg302g/kafli15.rst` around lines 20 - 23, Update the Portland
cement raw-material list in the section around “Portland sement er framleitt úr”
to identify limestone and shell sand as CaCO_3 carbonate sources rather than
CaO. Format the chemical formulas using LaTeX in the appropriate Sphinx math
directive, while retaining the existing silica, alumina, and iron oxide
components.

Source: Path instructions

Comment on lines +107 to +123
**Monosulfoaluminat**, :math:`C_4A \bar{S} H_{12}`

* Svipað og CH hvað varðar styrk
* Er u.þ.b. 10% af rúmmáli í harðnaðri sementsefju

Tríkalsíumálat (:math:`C_3A`) + gifs (:math:`C \bar{S} H_2`) + vatn (:math:`H_2O`) → ettringít (:math:`C_6 A \bar{S} H`)

Ettringít (:math:`C_6 A \bar{S} H`) + tríkalsíumálat (:math:`C_3A`) + vatn (:math:`H_2O`) → monosulfoaluminat (:math:`C_4 A \bar{S} H_{12}`)

**Tetracalcium aluminat hydrate**, :math:`C_4(A,F)H_{13}`

* Skylt monosulfoaluminati að uppbyggingu
* Veitir ekki styrk

Ferrít (:math:`C_4AF`) + kalísum hydroxíð (:math:`CH`) + vatn (:math:`H_2O`) → tetracalcium aluminat hydrate (:math:`C_4(A,F)H_{13}`) + ferric-aluminum hydroxíð :math:`(A,F)H_3`

**Ettringít**, :math:`C_6A \bar{S} _3H`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Correct the hydration chemistry and notation.

The ettringite formula is incomplete in Lines 112, 114, 123, 157, and 159. Use the complete phase formula, such as :math:\C_6A\bar{S}3H{32}`, and keep monosulfoaluminate notation consistent. Also, Line 153 assigns gypsum’s setting-control role to C_3S; gypsum primarily controls the rapid hydration of C_3Aand prevents flash setting. Put each reaction in a:math:` role and use one notation throughout. (fhwa.dot.gov)

As per path instructions: “Mathematical equations are correctly formatted using LaTeX syntax within the appropriate Sphinx directives.”

Also applies to: 152-159

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/byg302g/kafli15.rst` around lines 107 - 123, Correct the cement
hydration equations and phase formulas in the Monosulfoaluminat, Tetracalcium
aluminat hydrate, and Ettringít sections by using the complete ettringite
formula consistently and preserving matching monosulfoaluminate notation. Wrap
every reaction in a Sphinx math role with consistent LaTeX notation. Update the
gypsum setting-control explanation and reaction near the C3S/C3A discussion to
identify rapid C3A hydration and prevention of flash setting, not C3S.

Source: Path instructions

* Vinsol resin (grunnefni: trjákvoða, harpix)
* Tallolía (unnin úr fitusýrum sem eru aukaafurðir úr pappírsframleiðslu)
* Tensider (unnið úr olíu)
* Þess ber að geta að fyrir hvert 1% af loftblendi í steypu tapast 5% brotstyrkur steypunnar*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "File line count:"
wc -l projects/byg302g/kafli15.rst || true

echo
echo "Relevant lines around kafli15.rst:250-285:"
sed -n '250,285p' projects/byg302g/kafli15.rst | nl -ba -v250

echo
echo "Search for unmatched/double/single asterisks and footnote refs in kafli15.rst:"
python3 - <<'PY'
import re
from pathlib import Path
p=Path('projects/byg302g/kafli15.rst')
text=p.read_text(encoding='utf-8')
for i,line in enumerate(text.splitlines(),1):
    if '*' in line:
        print(f"{i}: {line!r}")
print("\nFootnote refs/targets:")
print(sorted(set(re.findall(r'\[\d+\]_|^\.\ \[\d+\]', text, re.M))))
PY

echo
echo "Neighboring footnote-related lines in kafli15.rst:"
rg -n "^\.\ \[|^\[\d+\]|\\*\\*|\\*\\*\\*|\\*" projects/byg302g/kafli15.rst -C 2

Repository: edbook/haskoli-islands

Length of output: 294


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p=Path('projects/byg302g/kafli15.rst')
lines=p.read_text(encoding='utf-8').splitlines()
print(f"total lines: {len(lines)}")
print()
print("Relevant lines 250-285:")
for i in range(249, min(len(lines), 285)):
    print(f"{i+1}: {lines[i]}")

print("\nFootnote refs/targets/all asterisk lines:")
import re
targets=set()
refs=set()
lines_asterisk=[]
for i,line in enumerate(lines,1):
    if '*' in line:
        lines_asterisk.append((i,line))
    if re.search(r'^\.\ \[\d+\]', line):
        targets.add(line.strip())
    for m in re.finditer(r'\[\d+\]_', line):
        refs.add(m.group(0))
print("targets =", sorted(targets))
print("refs =", sorted(refs))
print("asterisk lines:")
for i,line in lines_asterisk:
    print(f"{i}: {line!r}")

print("\nNearby RST footnote context:")
for idx,line in lines_asterisk:
    print(f"\n--- line {idx} context ---")
    start=max(1, idx-3); end=min(len(lines), idx+3)
    for j in range(start,end+1):
        print(f"{j}: {lines[j-1]}")
PY

Repository: edbook/haskoli-islands

Length of output: 38976


Remove or replace the stray asterisk on line 275.

* Þess ber að geta að fyrir hvert 1% af loftblendi í steypu tapast 5% brotstyrkur steypunnar* has an unmatched *; RST will leave it in the rendered text or warn. Remove it, or use an actual reference and define it for the strength-loss claim.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/byg302g/kafli15.rst` at line 275, Fix the unmatched asterisk in the
strength-loss statement by removing the stray markup or replacing it with a
valid defined reference, ensuring the rendered RST does not contain an
unintended asterisk.

Source: Path instructions

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.

1 participant