Commit graph

112 commits

Author SHA1 Message Date
Jordan Welch
0029890ead
Add colorScheme information to README 2023-09-19 19:04:05 -05:00
Shane Reustle
299f7800c3
Docs typo fix 2023-09-12 19:55:53 -04:00
Rodrigo Fernandes
657d48aac0 bump deps 2023-08-06 19:16:10 +01:00
Rodrigo Fernandes
dfe2eec8df fix badges 2023-08-06 19:09:07 +01:00
Rodrigo Fernandes
a2d34e195c fix badges 2023-08-06 19:06:31 +01:00
Eric Cornelissen
4dae65d5c7 feat: enable sticky file headers by default
Update the stickyFileHeaders default value to `true` so that it is
enabled by default. Also correct the name of this option in the
documentation by adding the missing trailing "s".
2022-10-31 09:47:31 +01:00
Eric Cornelissen
7d4a5dce6f feat: sticky file headers
Add support for sticky file headers by adding a `stickyFileHeaders`
option to the `Diff2HtmlUI`. By default this feature is disabled. Also
document this option in the README.

The feature is implemented through an optional CSS class on top of the
pre-existing `.d2h-file-header` class. The new class is added on all
file headers if the option is set to `true` (or the `stickyFileHeaders`
method is called).

This class, `.d2h-sticky-header`, has the minimum amount of styling to
get the desired effect. The `position` and `top` values make the headers
stick to the top as long as the wrapper is in the view. The `z-index`
value is needed to ensure the header is displayed over all other content
in the wrapper. In particular, from my testing in Firefox (106.0.2), the
line numbers would display over the header if the `z-index` value isn't
set.
2022-10-30 13:05:53 +01:00
Rodrigo Fernandes
5373ae180b add support for language override 2022-10-23 18:26:19 +01:00
Rodrigo Fernandes
e1f641748a fix markdown formatting 2022-01-30 17:35:12 +00:00
Rodrigo Fernandes
bc6ca55e8d
Update README.md 2022-01-28 23:14:42 +00:00
Rodrigo Fernandes
d7fbb14ac6 Add @dependabot-preview[bot] as a contributor 2021-10-29 22:59:56 +02:00
Rodrigo Fernandes
206919b836 Add @campersau as a contributor 2021-10-29 22:59:45 +02:00
Rodrigo Fernandes
a77a8def37 Update @escitalopram as a contributor 2021-10-29 22:58:18 +02:00
Rodrigo Fernandes
ac47539d09 Update @dickeylth as a contributor 2021-10-29 22:57:36 +02:00
Rodrigo Fernandes
295d1fe156 Update @sss0791 as a contributor 2021-10-29 22:57:22 +02:00
Rodrigo Fernandes
182250152f Update @pubkey as a contributor 2021-10-29 22:57:11 +02:00
Rodrigo Fernandes
1b4420cadd Update @romellem as a contributor 2021-10-29 22:57:02 +02:00
Rodrigo Fernandes
b141f14762 Update @wesssel as a contributor 2021-10-29 22:56:53 +02:00
Rodrigo Fernandes
ad2314549a Update @dsabanin as a contributor 2021-10-29 22:56:44 +02:00
Rodrigo Fernandes
c04489d624 Update @starpit as a contributor 2021-10-29 22:56:26 +02:00
Rodrigo Fernandes
db07f271d6 Update @kaishuu0123 as a contributor 2021-10-29 22:55:42 +02:00
Rodrigo Fernandes
60b7eb80f5 Add @timgates42 as a contributor 2021-10-29 22:55:13 +02:00
Rodrigo Fernandes
31318145e7 Add @xlith as a contributor 2021-10-29 22:54:56 +02:00
Rodrigo Fernandes
7a042fdd6b Update @Pierrci as a contributor 2021-10-29 22:54:45 +02:00
Rodrigo Fernandes
abb9064e11 Add @Pierrci as a contributor 2021-10-29 22:54:32 +02:00
Rodrigo Fernandes
bba6114a86 Add @charguer as a contributor 2021-10-29 22:54:14 +02:00
Rodrigo Fernandes
c8901b5796 Add @domdomegg as a contributor 2021-10-29 22:53:55 +02:00
Rodrigo Fernandes
45e6f9f266 Update @mohd-akram as a contributor 2021-10-29 22:53:23 +02:00
Rodrigo Fernandes
b49cad2290 Add @pgrimaud as a contributor 2021-10-29 22:52:46 +02:00
Rodrigo Fernandes
561a7f9efa doc: add apeckham to contributors 2021-10-29 22:51:40 +02:00
Aaron
c6ccf02623
Fix indentation in Diff2HtmlUI example 2021-10-20 15:51:39 -07:00
Pierre Grimaud
73f7d4304b
docs: fix typos 2021-08-10 13:01:33 +02:00
Rodrigo Fernandes
9987e7c695
doc: Add docs about the input format 2021-07-09 22:27:06 +01:00
Rodrigo Fernandes
4f5db83d30
style: Fix format 2021-05-10 12:05:19 +01:00
Rodrigo Fernandes
8c6ed5aa14
clean: Apply suggestions from code review 2021-05-10 11:56:14 +01:00
Adam Jones
78b9cb69ae
docs: Update configuration reference
- Add undocumented srcPrefix and dstPrefix options
- Better specify types and defaults
- Reorder options to match implementation
- Add example for rawTemplates
- Remove invalid 'inputFormat' option from examples
2021-05-10 11:26:35 +01:00
Rodrigo Fernandes
006d82c02b
clean: Improve README with suggestions 2021-04-04 12:29:44 +01:00
charguer
794bdb2e1c Update readme with fully worked-out plain html example 2021-03-31 16:26:34 +02:00
Pierric Cistac
a4e619efa4
feature: new diffMaxLineLength
Mark a file diff as too big if diff line length > threshold
2021-03-11 18:10:14 -05:00
Pierric Cistac
9aa2ea924e
doc: add diffMaxChanges and diffTooBigMessage in readme 2021-02-25 15:30:09 -05:00
Rafael Cortês
316803df77
feature: Hide viewed files 2021-01-23 15:07:14 +00:00
Tim Gates
ee43076fca
docs: Fix simple typo, exemples -> examples
There is a small typo in README.md.

Should read `examples` rather than `exemples`.
2020-04-17 07:38:27 +10:00
Rodrigo Fernandes
45632dd0e4
doc: Add jsdelivr cdn examples and fix broken links 2020-03-10 18:33:10 +00:00
Rodrigo Fernandes
ee58e2d700
feature: Implement smart selection in CSS 2020-02-09 16:08:58 +00:00
Rodrigo Fernandes
e772b26d1c
doc: Code wrap default value in README 2020-01-19 18:24:12 +00:00
Rodrigo Fernandes
1cac91c05d
doc: Fix drawFileList default in README 2020-01-19 18:21:20 +00:00
Rodrigo Fernandes
fd1a13c1e2
release: New major refactor of diff2html to Typescript
:breaking:
2020-01-19 16:25:10 +00:00
Rodrigo Fernandes
e284b58f5e
doc: Add table of contents in readme 2020-01-18 20:32:44 +00:00
Rodrigo Fernandes
1c8a9eefc0
Add @JoshuaKGoldberg as a contributor 2020-01-18 01:16:57 +00:00
Rodrigo Fernandes
eda3e66ce6
feature: Release in CircleCI 2020-01-18 01:11:05 +00:00