29 Commits

Author SHA1 Message Date
Steve Hollasch
e52678dc59 Improve code listing style
- Bigger font for print version code listings.
- More compact line height for print + online code listings.

Resolves #1595
2024-08-04 13:36:47 -07:00
Steve Hollasch
152bd65bfa CSS reformatting and fixes
- Inspired by https://github.com/RayTracing/gpu-tracing/pull/9, I'm
  adopting the CSS code style of having one selector per line with
  trailing commas for definitions that apply to multiple selectors.

- Corrected "Hilight.js" to "Highlight.js". There _is_ a hilight.js, but
  it looks like the syntax highlighting package used by Markdeep is
  highlight.js (https://highlightjs.org/).

- Fixed background-color syntax bug.
2024-05-27 12:41:33 -07:00
Steve Hollasch
6632111b8f Update all documentation for v4.0.0-alpha.1 2023-07-31 12:51:14 -07:00
Steve Hollasch
8bb3112bcc Move v3 content to v3/ directory, hoist alpha/
The v4 alpha release is already a large improvement over the v3 release,
so I'm using v4 as the primary project content, and moving the v3
content into its own directory.

All project documentation (changelog, readme, web index) still remains
to be updated before release.
2023-07-31 12:10:48 -07:00
Steve Hollasch
e7498df6d6 Move all v4-alpha content into alpha/ directory 2023-07-27 11:22:39 -07:00
Steve Hollasch
debf21d01d Figures to 800px width
Figure sizes were all over the map, but Markdeep renders them at a
constant width. This change resizes all figures to 800 pixels wide.

In addition, I tightly cropped all figures for consistency, and updated
the CSS style to ensure a good space before the figure caption.

Resolves #959
2023-07-25 11:21:53 -07:00
Steve Hollasch
ceb2131534 Change image number style to bold non-italic
To match figure and listing styles.

In addition, I caught and corrected all images with class 'pixel'. We
specified the class, but neglected to quote the class value in the HTML
markup.

Resolves #1009
2023-07-17 12:25:06 -07:00
Steve Hollasch
8829c9965c Update code style
There were some changes to code styling (via highlight.js) with the
update to Markdeep 1.15, plus we wanted to just revisit our code
styling, both in fenced blocks and inline.

Ultimately, I didn't find any improvement to our inline style.

For the general code style, I made preprocessor '#' characters and the
preprocessor keywords get the same styling. I also suppressed styling
for built-ins, parameters, types, and literals. I also tweaked the
background for deleted lines as well, to make it a bit more desaturated.

In addition, I've added book-highlight-test.css, which can be used to
identify the various syntactic elements for styling. See the header for
usage information.

Resolves #868
Resolves #1166
2023-07-17 12:13:20 -07:00
JC-ProgJava
543a3f40e1 Update book.css 2020-12-14 13:29:57 +08:00
JC-ProgJava
3eebacc461 Update book.css 2020-12-09 17:21:32 +08:00
Steve Hollasch
1980397d14 Add new rtw_image class to manage image files
- Honors RTW_IMAGES environment variable to locate RTW image directory
- If RTW_IMAGES is unset, searches for image files in several likely
  image directory locations.
- Separates image data management from diffuse texture map class.
- Better error reporting on image load failure.
- More robust getters in the face of absent image data.

Resolves #807
2020-11-23 01:14:35 -08:00
Steve Hollasch
689163db14 Update README for v3.2.1
This change also includes a small tweak to the website style -- I've
changed the background from pure white to a warm very-light gray.
2020-10-02 11:48:20 -07:00
Steve Hollasch
f013ef62d2 Book 2: updates for images 1-7 of 22 2020-06-14 14:16:39 -07:00
Steve Hollasch
7110e117b9 Rendered images use Markdeep class=pixel
Markdeep provides a `class=pixel` attribute for included images in order
to render with a point-sampled result. I didn't realize this when I
originally created CSS styling and an enclosing `div` element to do this
before. Switching the prior styling to now use Markdeep's feature.

Resolves #498
2020-05-02 14:11:12 -07:00
Steve Hollasch
819ef06eb5 Fix CSS code style
For both inline and fenced blocks.

Resolves #430
2020-04-06 20:18:39 -07:00
Steve Hollasch
661bda82cc Render images pixelated instead of smoothed
An incremental improvement to styling for rendered images. Smoothed
images don't match actual renderings, and tend to hide single-pixel
artifacts that may be important.

To achieve this, wrap Markdown image includes with `<div
class="render">`. Note that the div open and close tags must be
separated with blank lines from the `![...](...)` Markdown directive.

See #179
2020-03-31 20:07:27 -07:00
Steve Hollasch
606fa3d13c Refactor acknowledgments
- Removed credits section from project web page.
- Removed acknowledgments from the project README files.
- Added new, consistent acknowledgments section to the end of each book.
- Updated book bylines for editors, copyright, and version.

Resolves #262
2020-01-25 20:06:59 -08:00
Steve Hollasch
2ae3e6150f Fix listing + image caption styles 2019-12-11 00:51:23 -08:00
Steve Hollasch
16226f603b style: center all captions
Resolves #238
2019-11-05 08:56:31 -08:00
Steve Hollasch
622f75f7c6 Style for 96-column code line length
Code blocks are now flush left, full width of text, overflow visible.

Tested (display + print) on:
  - Windows/Chrome
  - Windows/Brave
  - Windows/Firefox
  - Windows/Edge
  - OSX/Chrome
  - OSX/Brave
  - OSX/Firefox

There are problems on OSX/Safari. Overflow:visible is not honored, but
you can scroll to the right. (Unfortunately, it does the Apple UI thing
where there's no scroll bar to advertise this capability until you
actually scroll.) There are worse problems, though -- images and figures
fail to show at all.
2019-11-05 08:42:17 -08:00
Steve Hollasch
48477cbb41 Update style CSS for listing captions 2019-10-28 22:09:20 +00:00
Steve Hollasch
c576081ee9 books: stop bolding function names in listings
Resolves #197
2019-10-21 06:38:26 +00:00
Steve Hollasch
7e2a8a1074 website: make subtle links from names in credits
The original links drew too much attention to names with hyperlinks.
The new style is obvious on hover, otherwise a subtle dark blue.
2019-10-07 22:10:31 +00:00
Steve Hollasch
e4a9f54ded website: final draft for v2 web release 2019-10-07 07:10:45 +00:00
Steve Hollasch
490e87ff56 Add styling for code highlighting
This adds styles for deleted lines and for highlighted (or new) lines.

Note that switching sub-styles in the middle of a code block will
swallow any leading blank line before, so in some cases you'll see two
blank lines in the tilde block where there would normally be one. This
will still render with a single blank line.

In addition to addressing existing cases, I've also found other cases
where highlighting illustrates incremental changes from one version to
the next, particularly in _Ray Tracing In One Weekend_ (book 1).

See issue #14
Resolves #11
2019-09-11 18:06:09 +00:00
Steve Hollasch
0a55da0f43 book print styling
Added @media print CSS queries for styling the printed version of the
book from the rendered HTML.

This change includes markup of the book content to hint which chunks
belong together on the same page. Look for `<div class='together'>`.

This includes minor fixes to book content.
2019-09-05 18:16:56 -07:00
Steve Hollasch
553bac07cd Book style pass
Resolves #16
2019-09-04 11:12:45 -07:00
Steve Hollasch
463d4b2e3a Book styling for images and captions
Resolves #12
2019-09-02 22:24:06 -07:00
Steve Hollasch
ef5ceb5817 Move book content to shared directories
- Books' Markdeep files move to root books/ directory.
- All images into a common images/ directory.
2019-09-02 19:13:00 -07:00