Skip to content

Commit

Permalink
Another test
Browse files Browse the repository at this point in the history
  • Loading branch information
djvill committed Jun 21, 2023
1 parent 1b2dcb9 commit 4313aa8
Show file tree
Hide file tree
Showing 2 changed files with 1,764 additions and 0 deletions.
93 changes: 93 additions & 0 deletions test.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
title: Phonemic transcription with the DISC alphabet
subtitle: Archive of Pittsburgh Language and Speech (APLS)
author: Dan Villarreal
date: "Last updated `r gsub(' 0', ' ', format(Sys.Date(), '%B %d, %Y'))`"
output:
html_document:
toc: yes
toc_float:
collapsed: no
anchor_sections:
style: "icon"
md_extensions: -smart
includes:
in_header: site-assets/header.html
css: site-assets/css/doc.css
number_sections: yes
pandoc_args: "--shift-heading-level-by=-1"
---

```{r, echo=FALSE}
knitr::opts_chunk$set(echo=FALSE)
```

```{css}
/* Inline DISC examples */
li code:not(.counterex), p code:not(.counterex) {
font-weight: bold;
}
li code.counterex, p code.counterex {
font-weight: normal;
text-decoration: line-through;
}
/* Consonants & vowels tables */
.table-condensed {
max-width: 500px;
font-size: 1.2em;
}
td:nth-child(2) {
font-family: monospace;
}
td:nth-child(4) {
font-family: monospace;
}
/* Syllabification table */
#syll-table.table-condensed {
max-width: 300px;
}
#syll-table td:nth-child(1) {
font-family: monospace;
}
#syll-table td:nth-child(2) {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
/* Extra padding for list elements */
ul {
padding-bottom: 6px;
}
li {
padding-top: 2px;
}
```

[Test 1](/)

[Test 2](/#APLS)


```{js, file="site-assets/js/doc.js"}
/* Common documentation JS */
```

```{js}
/* Add headers above consonants and vowels tables */
var newHead = `
<tr>
<th style='empty-cells:hide; border-bottom:hidden;' colspan='2'/>
<th style='border-bottom:hidden; padding-bottom:0; padding-left:3px; padding-right:3px; text-align:center;' colspan='2'>
<div style='border-bottom: 1px solid #ddd; padding-bottom: 5px;'>Example word</div>
</th>
</tr>
`;
Array.from($("#disc-consonants tr.header"))
.map(a => a.insertAdjacentHTML('beforebegin', newHead));
Array.from($("#disc-vowels tr.header"))
.map(a => a.insertAdjacentHTML('beforebegin', newHead));
```


1,671 changes: 1,671 additions & 0 deletions test.html

Large diffs are not rendered by default.

0 comments on commit 4313aa8

Please sign in to comment.