Skip to content

Conversation

@stm2
Copy link

@stm2 stm2 commented Aug 16, 2025

Der Shortcode crmap kann einen CR als SVG anzeigen, klickbar mit (teilweise) Regions- und Einheitsdetails.

Außerdem enthalten:

  • pagination für die Übersichtsseiten
  • author tag
  • korrektere tags für Übersichtsseiten
  • README für Tutorialautoren
  • Beispielpartei (templates)

stm2 added 14 commits August 14, 2025 09:15
- created nogoblins directory (going to rename it to template)
- added template/ to .eleventyignore
- added pagination to base layout
- added author field
- updated README file for Tutorial authors
crmap, crmap_rdetails and crmap_udetails are separate now; you may even
create your own element manually
option for map id, map without details, caption, map layer (Astralraum)
refactored code to produce descriptions outside of the svg file
Copilot AI review requested due to automatic review settings August 16, 2025 11:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a comprehensive CR (Computer Report) map visualization system for displaying Eressea game reports as interactive SVG maps. The main addition is a new crmap shortcode that can render CR files as clickable maps with region and unit details.

  • Adds a complete CR parsing and SVG rendering system with interactive tooltips and detail panels
  • Implements pagination for tutorial overview pages
  • Adds author attribution and improved semantic markup for blog posts

Reviewed Changes

Copilot reviewed 13 out of 246 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
crs/crs.js Core CR parsing and SVG map generation engine with shortcode implementations
crs/crs.css Styling for CR map tooltips, unit lists, and interactive elements
crs/crs-passthrough.js Client-side JavaScript for map interactivity and detail panels
goblins/index.njk Updated semantic markup (article→section, h1→h2) and added page title
aquarians/index.njk Same semantic markup updates as goblins
goblins/goblins.json Added author metadata
aquarians/aquarians.json Added author metadata
_includes/post-layout.njk Added CR script inclusion, author display, and tags footer
_includes/base-layout.njk Added dynamic title, CR CSS, and pagination navigation
css/site.css Added styling for author tags, navigation lists, and comment formatting
README.md Complete rewrite with tutorial authoring instructions and CR map usage
.eleventyignore Added template directory exclusion
.eleventy.js Integrated CR map functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

stm2 added 3 commits August 18, 2025 14:18
- crid tracked by page, no global state
- argument to to crmap is now always a JSON string
- use of reg.id removed
- use of unit.faction is fine
- use of ellipsis is fine
@stm2
Copy link
Author

stm2 commented Aug 18, 2025

Review addressed; css/js only included if actually needed.

@stm2
Copy link
Author

stm2 commented Aug 20, 2025

Two new features:

  • orderfile displays order files with wiki links, and processes markdown in comments
  • readnr/shownr displays NR; can display just a section, a region, a unit, or a line rage, for example {% shownr 'intro' %} {%shownr 'region_12_-10' %} {%shownr 'Kämpfe' %}

- show sections of the nr like the intro, events, a region, a unit
- you can even display line ranges of arbitrary text files
- with or without line numbers
- see template/Auswertung_01.md for usage examples
@stm2
Copy link
Author

stm2 commented Aug 24, 2025

Geschlossen zugunsten von #6 und #7.

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