Skip to content
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
14 changes: 13 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
title: Timer Ninja
description: "A sneaky library for Java Method Timing — Track execution time with a single annotation. Zero boilerplate."
tagline: "Measure Java Method Execution Time with a Single Annotation"
description: "Timer Ninja is a lightweight Java library to measure method execution time, track code performance, and visualize call hierarchies — with just one annotation. No heavy frameworks required."
url: "https://thanglequoc.github.io"
baseurl: "/timer-ninja"
lang: en

# Social / Open Graph
twitter:
card: summary_large_image
social:
name: Timer Ninja
links:
- https://github.com/thanglequoc/timer-ninja

# Build settings
markdown: kramdown
Expand All @@ -16,6 +26,7 @@ sass:
# Plugins
plugins:
- jekyll-seo-tag
- jekyll-sitemap

# Defaults
defaults:
Expand All @@ -24,6 +35,7 @@ defaults:
type: "pages"
values:
layout: "default"
image: /assets/images/mascot.png

# Exclude from build
exclude:
Expand Down
6 changes: 2 additions & 4 deletions docs/_data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
main:
- title: Home
url: /
- title: User Guide
url: /user-guide/
- title: Examples
url: /examples/
- title: Getting Started
url: /getting-started/
- title: Advanced Usage
url: /advanced-usage/
3 changes: 1 addition & 2 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<p class="footer__tagline">Made with stealth by <strong>Timer Ninja</strong> — A sneaky library for Java Method Timing</p>
<ul class="footer__links">
<li><a href="{{ '/' | relative_url }}">Home</a></li>
<li><a href="{{ '/user-guide/' | relative_url }}">User Guide</a></li>
<li><a href="{{ '/examples/' | relative_url }}">Examples</a></li>
<li><a href="{{ '/getting-started/' | relative_url }}">Getting Started</a></li>
<li><a href="{{ '/advanced-usage/' | relative_url }}">Advanced Usage</a></li>
<li><a href="https://github.com/thanglequoc/timer-ninja" target="_blank" rel="noopener">GitHub</a></li>
<li><a href="https://central.sonatype.com/artifact/io.github.thanglequoc/timer-ninja" target="_blank" rel="noopener">Maven Central</a></li>
Expand Down
39 changes: 39 additions & 0 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#46bfc6">

<!-- Google Analytics (GA4) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-14R8KVB7N0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-14R8KVB7N0');
</script>

<title>{% if page.title %}{{ page.title }} — {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>

<!-- Fonts -->
Expand All @@ -22,6 +31,36 @@

{% seo %}

<!-- Additional SEO meta tags -->
<meta name="keywords" content="measure Java method execution time, track Java code execution time, Java method timing, Java performance tracking, Java annotation timing, Java profiling library, AspectJ timing, TimerNinjaTracker">
<link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url | replace: 'index.html', '' }}">

<!-- JSON-LD Structured Data -->
{% if page.url == "/" or page.url == "/index.html" %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "Timer Ninja",
"description": "A lightweight Java library to measure method execution time, track code performance, and visualize call hierarchies with a single annotation.",
"url": "{{ site.url }}{{ site.baseurl }}/",
"codeRepository": "https://github.com/thanglequoc/timer-ninja",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Java"
},
"runtimePlatform": "Java",
"license": "https://www.apache.org/licenses/LICENSE-2.0",
"author": {
"@type": "Person",
"name": "ThangLeQuoc",
"url": "https://github.com/thanglequoc"
},
"keywords": ["Java", "method timing", "execution time", "performance tracking", "AspectJ", "annotation", "profiling"]
}
</script>
{% endif %}

<!-- Theme init (prevent FOUC) -->
<script>
(function() {
Expand Down
Loading
Loading