forked from debruine/quarto-glossary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
329 additions
and
5,789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
on: | ||
push: | ||
branches: main | ||
|
||
name: Render with Quarto and Publish | ||
|
||
# you need these permissions to publish to GitHub pages | ||
permissions: | ||
contents: write | ||
pages: write | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
- name: Publish to GitHub Pages (and render) | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ | |
.quarto | ||
|
||
/.quarto/ | ||
|
||
/.luarc.json | ||
_site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
# Glossary Extension for Quarto | ||
# Popover Glossary Extension for Quarto | ||
|
||
This extension provides shortcodes for [popover-glossary](https://github.com/maouw/quarto-popover-glossary) in quarto. It uses the [Popper](https://popper.js.org) library to create popovers with glossary definitions. You can use this to mark terms in your text, which can display a popup definition, and to create definition list of terms at the end of a document. | ||
|
||
This extension provides shortcodes for defining terms and creating glossaries | ||
in quarto. You can use this to mark terms in your text, which can display a popup | ||
definition, and to create table of defined terms at the end of a document. | ||
[popover-glossary](https://github.com/maouw/quarto-popover-glossary) is based on [quarto-glossary](https://debruine.github.io/quarto-glossary) by [Lisa DeBruine](https://debruine.github.io/). Most code and documentation, including the majority of this web page, is from [quarto-glossary](https://debruine.github.io/quarto-glossary). | ||
|
||
See <https://debruine.github.io/quarto-glossary> for examples. | ||
See <https://maouw.github.io/quarto-popover-glossary> for examples. | ||
|
||
## Installing | ||
|
||
```sh | ||
quarto install extension debruine/quarto-glossary | ||
quarto install extension maouw/quarto-popover-glossary | ||
``` | ||
|
||
This will install the extension under the `_extensions` subdirectory. | ||
If you're using version control, you will want to check in this directory. | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title: Popover Glossary | ||
author: Altan Orhon | ||
version: 1.0.0 | ||
quarto-required: ">=1.2.0" | ||
contributes: | ||
shortcodes: | ||
- popover-glossary.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* glossary deflist styles */ | ||
.glossary_dl { | ||
font-size: 95%; | ||
} | ||
|
||
.glossary_dl dt { | ||
font-weight: bold; | ||
} | ||
.glossary_dl dd { | ||
margin-left: 1em; | ||
line-height: normal; | ||
text-indent: 2em; | ||
text-align: justify; | ||
border-top: 1px dotted var(--quarto-body-color); | ||
} | ||
|
||
.glossary-ref { | ||
cursor: pointer; | ||
display: inline; | ||
border-style: hidden; | ||
} | ||
|
||
.glossary-def { | ||
/* background-color: var(--quarto-body-color);*/ | ||
background-color: var(--quarto-body-bg); | ||
opacity: 1; | ||
color: var(--quarto-body-color); | ||
font-size: 75%; | ||
display: none; | ||
z-index: 1000; | ||
max-width: 33%; | ||
border-color: var(--quarto-border-color); | ||
border-width: 1px; | ||
border-style: solid; | ||
box-shadow: 2px 2px var(--quarto-body-color); | ||
padding: 0.5em; | ||
outline: 1px dotted var(--quarto-body-color); | ||
outline-offset: -2px; | ||
text-align: justify; | ||
} | ||
|
||
.glossary-def[data-show] { | ||
display: block; | ||
} |
Oops, something went wrong.