diff options
| author | J08nY | 2024-08-28 18:45:50 +0200 |
|---|---|---|
| committer | J08nY | 2024-08-28 18:45:50 +0200 |
| commit | 443801d412f98c56117420c0850116921e25529d (patch) | |
| tree | 1610d9cf391dd91d311bab86ba0ec1dff11382f9 /docs/conf.py | |
| parent | 3a882956572af3ffc92811e8bcac4f87b4ad0d2a (diff) | |
| download | pyecsca-443801d412f98c56117420c0850116921e25529d.tar.gz pyecsca-443801d412f98c56117420c0850116921e25529d.tar.zst pyecsca-443801d412f98c56117420c0850116921e25529d.zip | |
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index d47f4fc..0f9ac1d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,7 +48,8 @@ extensions = [ 'sphinx.ext.linkcode', 'sphinx_paramlinks', 'sphinx_design', - 'nbsphinx' + 'nbsphinx', + 'sphinx_plausible', ] # Add any paths that contain templates here, relative to this directory. @@ -253,3 +254,12 @@ def linkcode_resolve(domain, info): return "https://github.com/J08nY/pyecsca-codegen/tree/master/%s.py" % filename else: return "https://github.com/J08nY/pyecsca/tree/master/%s.py" % filename + + +plausible_domain = "pyecsca.org" +plausible_script = "https://plausible.neuromancer.sk/js/script.js" +plausible_enabled = ( + 'GITHUB_ACTION' in os.environ + and os.environ.get('GITHUB_REPOSITORY', '').lower() == 'J08nY/pyecsca' + and os.environ.get('GITHUB_REF') == 'refs/heads/main' + ) |
