Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plausible analytics #8

Merged
merged 1 commit into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on: [pull_request, workflow_dispatch]

# This job installs dependencies, builds the book, and makes the html available to download
jobs:
deploy-book:
build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ copyright : "2022" # Copyright year to be placed in the footer
logo : 'images/book-logo-smaller.png'

exclude_patterns : [_build, Thumbs.db, .DS_Store, "**.ipynb_checkpoints", '_unused/**', 'nbs/*']
# only_build_toc_files: true
only_build_toc_files: true

execute:
execute_notebooks: "auto"
Expand Down Expand Up @@ -33,6 +33,8 @@ sphinx:
html_js_files:
# Only needed if plotly is used
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
templates_path:
- _templates

latex:
latex_engine: xelatex
5 changes: 5 additions & 0 deletions _templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- extends "!layout.html" %}
{%- block extrahead %}
{{ super() }}
<script defer data-domain="bioimagebook.github.io" src="https://plausible.io/js/plausible.js"></script>
{%- endblock %}