Skip to content

Commit bbe25ca

Browse files
committed
Initial
1 parent a06e5ad commit bbe25ca

36 files changed

+329
-5789
lines changed

.github/workflows/quarto-publish.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches: main
4+
5+
name: Render with Quarto and Publish
6+
7+
# you need these permissions to publish to GitHub pages
8+
permissions:
9+
contents: write
10+
pages: write
11+
12+
jobs:
13+
build-deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
- name: Set up Quarto
19+
uses: quarto-dev/quarto-actions/setup@v2
20+
- name: Publish to GitHub Pages (and render)
21+
uses: quarto-dev/quarto-actions/publish@v2
22+
with:
23+
target: gh-pages
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
.quarto
77

88
/.quarto/
9+
10+
/.luarc.json
11+
_site/

CITATION.cff

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ authors:
44
- family-names: DeBruine
55
given-names: Lisa
66
orcid: https://orcid.org/0000-0002-7523-5539
7-
title: "Quarto Glossary"
8-
version: 0.0.9001
9-
date-released: 2023-11-28
7+
- family-names: Orhon
8+
given-names: Altan
9+
orcid: https://orcid.org/0000-0002-4412-5580
10+
title: "Quarto Popover Glossary"
11+
version: 0.0.9002
12+
date-released: 2023-12-06

LICENSE.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# MIT License
22

33
Copyright (c) 2023 Lisa DeBruine
4+
Copyright (c) 2023 Altan Orhon
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
# Glossary Extension for Quarto
1+
# Popover Glossary Extension for Quarto
22

3+
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.
34

4-
This extension provides shortcodes for defining terms and creating glossaries
5-
in quarto. You can use this to mark terms in your text, which can display a popup
6-
definition, and to create table of defined terms at the end of a document.
5+
[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).
76

8-
See <https://debruine.github.io/quarto-glossary> for examples.
7+
See <https://maouw.github.io/quarto-popover-glossary> for examples.
98

109
## Installing
1110

1211
```sh
13-
quarto install extension debruine/quarto-glossary
12+
quarto install extension maouw/quarto-popover-glossary
1413
```
1514

1615
This will install the extension under the `_extensions` subdirectory.
1716
If you're using version control, you will want to check in this directory.
18-
19-
20-

_extensions/glossary/_extension.yml

-7
This file was deleted.

_extensions/glossary/glossary.css

-56
This file was deleted.

_extensions/glossary/glossary.lua

-174
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: Popover Glossary
2+
author: Altan Orhon
3+
version: 1.0.0
4+
quarto-required: ">=1.2.0"
5+
contributes:
6+
shortcodes:
7+
- popover-glossary.lua
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/* glossary deflist styles */
2+
.glossary_dl {
3+
font-size: 95%;
4+
}
5+
6+
.glossary_dl dt {
7+
font-weight: bold;
8+
}
9+
.glossary_dl dd {
10+
margin-left: 1em;
11+
line-height: normal;
12+
text-indent: 2em;
13+
text-align: justify;
14+
border-top: 1px dotted var(--quarto-body-color);
15+
}
16+
17+
.glossary-ref {
18+
cursor: pointer;
19+
display: inline;
20+
border-style: hidden;
21+
}
22+
23+
.glossary-def {
24+
/* background-color: var(--quarto-body-color);*/
25+
background-color: var(--quarto-body-bg);
26+
opacity: 1;
27+
color: var(--quarto-body-color);
28+
font-size: 75%;
29+
display: none;
30+
z-index: 1000;
31+
max-width: 33%;
32+
border-color: var(--quarto-border-color);
33+
border-width: 1px;
34+
border-style: solid;
35+
box-shadow: 2px 2px var(--quarto-body-color);
36+
padding: 0.5em;
37+
outline: 1px dotted var(--quarto-body-color);
38+
outline-offset: -2px;
39+
text-align: justify;
40+
}
41+
42+
.glossary-def[data-show] {
43+
display: block;
44+
}

0 commit comments

Comments
 (0)