-
Notifications
You must be signed in to change notification settings - Fork 2
CRMap #4
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
CRMap #4
Conversation
- 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
There was a problem hiding this 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.
- 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
|
Review addressed; css/js only included if actually needed. |
|
Two new features:
|
- 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
package is not maintained fixed bug in directory mode fixed typos added "silent" option
Der Shortcode crmap kann einen CR als SVG anzeigen, klickbar mit (teilweise) Regions- und Einheitsdetails.
Außerdem enthalten: