Skip to content

Commit

Permalink
Added contribution popup
Browse files Browse the repository at this point in the history
  • Loading branch information
sitandr committed Sep 8, 2024
1 parent f066e9b commit aa8d5a8
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/mistake-found.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ assignees: sitandr

**Issue**: [what problem have you found]

**Location**: [where in the book the mistake is located]
**Location**: [where in the book the mistake is located, attach the url and specify the example if possible]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ book
.vscode
**/typst-src
**/typst-img
experimental.typ
experimental*
5 changes: 3 additions & 2 deletions book.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[book]
authors = ["sitandr"]
author = "sitandr"
language = "en"
multilingual = false
src = "src"
Expand All @@ -13,7 +13,8 @@ warn_not_specified = true

[output.html]
additional-css = ["./theme/mdbook-pagetoc/style.css"]
additional-js = ["./theme/mdbook-pagetoc/sidebar.js"]
additional-js = ["./theme/mdbook-pagetoc/sidebar.js", "./theme/popup/popup.js"]
git-repository-url = "https://github.com/sitandr/typst-examples-book"

[output.html.redirect]
"/snippets/hidding.html" = "./hiding.html"
4 changes: 1 addition & 3 deletions theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,9 @@
<i id="git-repository-button" class="fa {{git_repository_icon}}"></i>
</a>
{{/if}}
{{#if git_repository_edit_url}}
<a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit">
<a onclick="showPopup()" title="Suggest an edit" aria-label="Suggest an edit">
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{/if}}

</div>
</div>
Expand Down
34 changes: 34 additions & 0 deletions theme/popup/popup.js

Large diffs are not rendered by default.

0 comments on commit aa8d5a8

Please sign in to comment.