Skip to content

Commit 1587071

Browse files
authored
Header -> Heading (#1603)
* Header -> Heading
1 parent 8cc62ab commit 1587071

File tree

23 files changed

+99
-76
lines changed

23 files changed

+99
-76
lines changed

_freeze/site_libs/revealjs/dist/theme/quarto-00ac2f6af1389919a18f42df5b7c0002.css

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_freeze/site_libs/revealjs/plugin/markdown/plugin.js

100644100755
File mode changed.

_freeze/site_libs/revealjs/plugin/quarto-support/support.js

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -281,36 +281,49 @@ window.QuartoSupport = function () {
281281
}
282282
}
283283

284+
// dispatch for htmlwidgets
285+
// they use slideenter event to trigger resize
286+
const fireSlideEnter = () => {
287+
const event = window.document.createEvent("Event");
288+
event.initEvent("slideenter", true, true);
289+
window.document.dispatchEvent(event);
290+
};
291+
292+
// dispatch for shiny
293+
// they use BS shown and hidden events to trigger rendering
294+
const distpatchShinyEvents = (previous, current) => {
295+
if (window.jQuery) {
296+
if (previous) {
297+
window.jQuery(previous).trigger("hidden");
298+
}
299+
if (current) {
300+
window.jQuery(current).trigger("shown");
301+
}
302+
}
303+
};
304+
284305
function handleSlideChanges(deck) {
285-
// dispatch for htmlwidgets
286-
const fireSlideEnter = () => {
287-
const event = window.document.createEvent("Event");
288-
event.initEvent("slideenter", true, true);
289-
window.document.dispatchEvent(event);
290-
};
291306

292307
const fireSlideChanged = (previousSlide, currentSlide) => {
293308
fireSlideEnter();
294-
295-
// dispatch for shiny
296-
if (window.jQuery) {
297-
if (previousSlide) {
298-
window.jQuery(previousSlide).trigger("hidden");
299-
}
300-
if (currentSlide) {
301-
window.jQuery(currentSlide).trigger("shown");
302-
}
303-
}
309+
distpatchShinyEvents(previousSlide, currentSlide);
304310
};
305311

306-
// fire slideEnter for tabby tab activations (for htmlwidget resize behavior)
307-
document.addEventListener("tabby", fireSlideEnter, false);
308-
309312
deck.on("slidechanged", function (event) {
310313
fireSlideChanged(event.previousSlide, event.currentSlide);
311314
});
312315
}
313316

317+
function handleTabbyChanges() {
318+
const fireTabChanged = (previousTab, currentTab) => {
319+
fireSlideEnter()
320+
distpatchShinyEvents(previousTab, currentTab);
321+
};
322+
document.addEventListener("tabby", function(event) {
323+
fireTabChanged(event.detail.previousTab, event.detail.tab);
324+
}, false);
325+
}
326+
314327
function workaroundMermaidDistance(deck) {
315328
if (window.document.querySelector("pre.mermaid-js")) {
316329
const slideCount = deck.getTotalSlides();
@@ -390,6 +403,7 @@ window.QuartoSupport = function () {
390403
addFooter(deck);
391404
addChalkboardButtons(deck);
392405
handleTabbyClicks();
406+
handleTabbyChanges();
393407
handleSlideChanges(deck);
394408
workaroundMermaidDistance(deck);
395409
handleWhiteSpaceInColumns(deck);

_freeze/site_libs/revealjs/plugin/reveal-chalkboard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The plugin has several configuration options:
9898
- ```chalkEffect```: a float in the range ```[0.0, 1.0]```, the intesity of the chalk effect on the chalk board. Full effect (default) ```1.0```, no effect ```0.0```.
9999
- ```storage```: Optional variable name for session storage of drawings.
100100
- ```src```: Optional filename for pre-recorded drawings.
101-
- ```readOnly```: Configuation option allowing to prevent changes to existing drawings. If set to ```true``` no changes can be made, if set to false ```false``` changes can be made, if unset or set to ```undefined``` no changes to the drawings can be made after returning to a slide or fragment for which drawings had been recorded before. In any case the recorded drawings for a slide or fragment can be cleared by pressing the 'DEL' key (i.e. by using the ```RevealChalkboard.clear()``` function).
101+
- ```readOnly```: Configuation option allowing to prevent changes to existing drawings. If set to ```true``` no changes can be made, if set to ```false``` changes can be made, if unset or set to ```undefined``` no changes to the drawings can be made after returning to a slide or fragment for which drawings had been recorded before. In any case the recorded drawings for a slide or fragment can be cleared by pressing the 'DEL' key (i.e. by using the ```RevealChalkboard.clear()``` function).
102102
- ```transition```: Gives the duration (in milliseconds) of the transition for a slide change, so that the notes canvas is drawn after the transition is completed.
103103
- ```theme```: Can be set to either ```"chalkboard"``` or ```"whiteboard"```.
104104

_freeze/site_libs/revealjs/plugin/reveal-chalkboard/plugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,7 @@ const initChalkboard = function ( Reveal ) {
444444
container.style.visibility = 'visible';
445445
container.style.pointerEvents = 'none';
446446
container.style['backdrop-filter'] = 'none';
447-
// for older safari
448-
container.style["-webkit-backdrop-filter"] = "none";
447+
container.style['-webkit-backdrop-filter'] = 'none';
449448

450449
var slides = document.querySelector( '.slides' );
451450
var aspectRatio = Reveal.getConfig().width / Reveal.getConfig().height;

docs/authoring/appendices.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To learn more about including document attribution information in the appendix,
1414

1515
## Custom Appendix Sections
1616

17-
Sections of your document can be added to the Appendix that appears at the end of your article by adding the `.appendix` class to any header. For example:
17+
Sections of your document can be added to the Appendix that appears at the end of your article by adding the `.appendix` class to any heading. For example:
1818

1919
``` yaml
2020
## Acknowledgments {.appendix}

docs/authoring/markdown-basics.qmd

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,35 @@ This document provides examples of the most commonly used markdown syntax. See t
4141

4242
## Headings {#headings}
4343

44-
+-----------------+-----------------------------------+
45-
| Markdown Syntax | Output |
46-
+=================+===================================+
47-
| ``` markdown | # Header 1 {.heading-output} |
48-
| # Header 1 | |
49-
| ``` | |
50-
+-----------------+-----------------------------------+
51-
| ``` markdown | ## Header 2 {.heading-output} |
52-
| ## Header 2 | |
53-
| ``` | |
54-
+-----------------+-----------------------------------+
55-
| ``` markdown | ### Header 3 {.heading-output} |
56-
| ### Header 3 | |
57-
| ``` | |
58-
+-----------------+-----------------------------------+
59-
| ``` markdown | #### Header 4 {.heading-output} |
60-
| #### Header 4 | |
61-
| ``` | |
62-
+-----------------+-----------------------------------+
63-
| ``` markdown | ##### Header 5 {.heading-output} |
64-
| ##### Header 5 | |
65-
| ``` | |
66-
+-----------------+-----------------------------------+
67-
| ``` markdown | ###### Header 6 {.heading-output} |
68-
| ###### Header 6 | |
69-
| ``` | |
70-
+-----------------+-----------------------------------+
44+
+------------------+-----------------------------------+
45+
| Markdown Syntax | Output |
46+
+==================+===================================+
47+
| ``` markdown | # Heading 1 {.heading-output} |
48+
| # Heading 1 | |
49+
| ``` | |
50+
+------------------+-----------------------------------+
51+
| ``` markdown | ## Heading 2 {.heading-output} |
52+
| ## Heading 2 | |
53+
| ``` | |
54+
+------------------+-----------------------------------+
55+
| ``` markdown | ### Heading 3 {.heading-output} |
56+
| ### Heading 3 | |
57+
| ``` | |
58+
+------------------+-----------------------------------+
59+
| ``` markdown | #### Heading 4 {.heading-output} |
60+
| #### Heading 4 | |
61+
| ``` | |
62+
+------------------+-----------------------------------+
63+
| ``` markdown | ##### Heading 5 {.heading-output} |
64+
| ##### Heading 5 | |
65+
| ``` | |
66+
+------------------+-----------------------------------+
67+
| ``` markdown | ###### Heading 6 {.heading-output}|
68+
| ###### Heading 6 | |
69+
| ``` | |
70+
+------------------+-----------------------------------+
71+
72+
: {tbl-colwidths="[50, 50]"}
7173

7274
```{=html}
7375
<style type="text/css">

docs/books/book-structure.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ format:
4545

4646
## Titles
4747

48-
Since rendering options are provided in `_quarto.yml`, you'll typically see a simple level-one header at the top of chapters. For example:
48+
Since rendering options are provided in `_quarto.yml`, you'll typically see a simple level-one heading at the top of chapters. For example:
4949

5050
``` {.markdown filename="intro.qmd"}
5151
# Introduction
@@ -59,11 +59,11 @@ title: "Introduction"
5959
---
6060
```
6161

62-
In the absence of a level-one header or a title set in the YAML front matter, the first header in the page will be used as the title.
62+
In the absence of a level-one heading or a title set in the YAML front matter, the first heading in the page will be used as the title.
6363

6464
## Chapter Numbers
6565

66-
All chapters are numbered by default. If you want a chapter to be unnumbered simply add the `.unnumbered` class to its main header. For example, it is common to omit the chapter number for `index.qmd`:
66+
All chapters are numbered by default. If you want a chapter to be unnumbered simply add the `.unnumbered` class to its main heading. For example, it is common to omit the chapter number for `index.qmd`:
6767

6868
```{.markdown filename="index.qmd"}
6969
# Preface {.unnumbered}
@@ -185,7 +185,7 @@ book:
185185
- environments.qmd
186186
```
187187

188-
Note that the markdown files `dice.qmd` and `cards.qmd` contain the part title (as a level one header) as well as some introductory content for the part. If you just need a part title then you can alternatively use this syntax:
188+
Note that the markdown files `dice.qmd` and `cards.qmd` contain the part title (as a level one heading) as well as some introductory content for the part. If you just need a part title then you can alternatively use this syntax:
189189

190190
```{.yaml filename="_quarto.yml"}
191191
book:

docs/dashboards/interactivity/observable.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Inputs.table(filtered)
9494

9595
3. `filtered` is a value that is automatically recomputed when variables declared with `viewof` change (in this case `bill_length_min` and `islands`).
9696

97-
4. Create global sidebars by adding the `.sidebar` class to a level 1 header. Sidebars can include code cells as well as images, narrative, and links.
97+
4. Create global sidebars by adding the `.sidebar` class to a level 1 heading. Sidebars can include code cells as well as images, narrative, and links.
9898

9999
5. Here we define our inputs using `viewof` so that the `filtered` dataset is automatically recomputed when they change.
100100

docs/dashboards/interactivity/shiny-python/_shiny-advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def dataview():
8181

8282
2. The `context: setup` cell option indicates that this code cell should run when the application starts (as opposed to when each new client session starts). Expensive initialization code (e.g. loading data) should be placed in `context: setup`.
8383

84-
3. Create global sidebars by adding the `.sidebar` class to a level 1 header. Sidebars can include code cells as well as images, narrative, and links.
84+
3. Create global sidebars by adding the `.sidebar` class to a level 1 heading. Sidebars can include code cells as well as images, narrative, and links.
8585

8686
4. These checkbox input groups have their contents dynamically driven from the available categories in the `species` and `islands` fields of the dataset.
8787

0 commit comments

Comments
 (0)