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
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
pages: write
id-token: write
# The build, the checks and the deployment are shared by all the documentation sites.
uses: boxboxjason/hugo-theme/.github/workflows/docs.yml@0a87a434dbb103054c54db9adbde295b6f5d3f00 # main, same commit as docs/go.mod
uses: boxboxjason/hugo-theme/.github/workflows/docs.yml@b0b783694aa719b11bd004274bdf6c0c52b70367 # main, same commit as docs/go.mod
with:
deploy: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
check-external-links: ${{ github.event_name == 'schedule' }}
1 change: 1 addition & 0 deletions docs/content/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Achievements
layout: hextra-home
description: "Achievements is a free VS Code extension that turns your coding activity into achievements, levels and experience, tracked locally and privately."
---

{{< hextra/hero-headline >}}
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Documentation
weight: 1
description: "Documentation of the Achievements extension for VS Code: install it, earn achievements as you code, and configure what it tracks."
---

Achievements is a Visual Studio Code extension that allows you to track your progress in coding, and earn achievements for completing tasks.
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/achievements.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Achievements
weight: 40
description: "The full catalogue of achievements you can unlock in VS Code, with their tiers, requirements and the values needed for each tier."
---

<!-- Code generated by scripts/generate-docs.ts (run `npm run docs:generate`); DO NOT EDIT. -->
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/commands.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Commands
weight: 50
description: "Every command of the Achievements extension for VS Code, with its identifier, to run from the Command Palette or bind to a shortcut."
---

<!-- Code generated by scripts/generate-docs.ts (run `npm run docs:generate`); DO NOT EDIT. -->
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Getting started
weight: 20
description: "Get started with the Achievements extension in VS Code: open the panel, unlock your first achievements and follow your level and experience."
---

These are the steps of the **Get Started with Achievements** walkthrough, also available inside VS Code from **Help > Welcome**.
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/how-it-works.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How it works
weight: 30
description: "How the Achievements VS Code extension tracks your activity: local SQLite storage, no server, read-only mode, devcontainers and network access."
---

- The extension activates on `onStartupFinished` and listens to VS Code and Git events (based on your settings).
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Installation
weight: 10
description: "Install the Achievements extension for VS Code from the Open VSX registry, or download the VSIX from the GitHub releases and install it by hand."
---

## From Open VSX
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/settings.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Settings
weight: 60
description: "Every setting of the Achievements extension for VS Code: type, default value and effect, from tracked events to logging and the status bar."
---

<!-- Code generated by scripts/generate-docs.ts (run `npm run docs:generate`); DO NOT EDIT. -->
Expand Down
2 changes: 1 addition & 1 deletion docs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/boxboxjason/achievements/docs

go 1.26

require github.com/boxboxjason/hugo-theme v0.0.0-20261031000137-0a87a434dbb1 // indirect
require github.com/boxboxjason/hugo-theme v0.0.0-20261031104331-b0b783694aa7 // indirect
4 changes: 2 additions & 2 deletions docs/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/boxboxjason/hugo-theme v0.0.0-20261031000137-0a87a434dbb1 h1:KJnVzikKioz6fxcdW2MfKOD4baWniGVYvYgHM1p+Dnc=
github.com/boxboxjason/hugo-theme v0.0.0-20261031000137-0a87a434dbb1/go.mod h1:ebGD0oRHgFK9/q9krUBEOIi6WHj6nixMPEXoGoN5nnk=
github.com/boxboxjason/hugo-theme v0.0.0-20261031104331-b0b783694aa7 h1:hVpe2ktV+I5Ba7gLYRt7DC51NDspiC7+cTCotLSAr/M=
github.com/boxboxjason/hugo-theme v0.0.0-20261031104331-b0b783694aa7/go.mod h1:ebGD0oRHgFK9/q9krUBEOIi6WHj6nixMPEXoGoN5nnk=
11 changes: 11 additions & 0 deletions docs/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ enableRobotsTXT = true
[[module.mounts]]
source = "layouts"
target = "layouts"
[[module.mounts]]
source = "static"
target = "static"
# The getting started walkthrough shown inside VS Code is rendered on the site too,
# from the same files, and so is the panel animation.
[[module.mounts]]
Expand Down Expand Up @@ -54,5 +57,13 @@ enableRobotsTXT = true
icon = "github"

[params]
description = "Achievements is a free VS Code extension that turns your coding activity into achievements, levels and experience, tracked locally and privately."
# Social preview rendered with hugo-theme's tools/social-card.mjs.
images = ["images/social.png"]
[params.project]
repository = "https://github.com/boxboxjason/achievements"
license = "https://opensource.org/license/mit"
programmingLanguage = "TypeScript"
runtimePlatform = "Visual Studio Code"
[params.editURL]
base = "https://github.com/boxboxjason/achievements/edit/main/docs/content"
Binary file added docs/static/images/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 11 additions & 3 deletions scripts/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ function code(value: string): string {
return "`" + value + "`";
}

function page(title: string, weight: number, intro: string, body: string): string {
return `---\ntitle: ${title}\nweight: ${weight}\n---\n\n${GENERATED_NOTICE}\n\n${intro}\n\n${body.trimEnd()}\n`;
function page(title: string, weight: number, description: string, intro: string, body: string): string {
return `---\ntitle: ${title}\nweight: ${weight}\ndescription: ${JSON.stringify(description)}\n---\n\n${GENERATED_NOTICE}\n\n${intro}\n\n${body.trimEnd()}\n`;
}

function commandsPage(pkg: PackageJson): string {
Expand All @@ -61,6 +61,7 @@ function commandsPage(pkg: PackageJson): string {
return page(
"Commands",
50,
"Every command of the Achievements extension for VS Code, with its identifier, to run from the Command Palette or bind to a shortcut.",
"Run these commands from the Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`), or bind them to keyboard shortcuts.",
["| Command | Identifier |", "| ------- | ---------- |", ...rows].join("\n"),
);
Expand Down Expand Up @@ -90,6 +91,7 @@ function settingsPage(pkg: PackageJson): string {
return page(
"Settings",
60,
"Every setting of the Achievements extension for VS Code: type, default value and effect, from tracked events to logging and the status bar.",
'Open **File > Preferences > Settings** and search for "Achievements", or run **Achievements: Settings**.',
["| Setting | Type | Default | Description |", "| ------- | ---- | ------- | ----------- |", ...rows].join("\n"),
);
Expand Down Expand Up @@ -181,7 +183,13 @@ function achievementsPage(): string {
`Rows with \`<language>\` exist once per tracked language: ${[...languages].sort().map(code).join(", ")}.`,
].join("\n");

return page("Achievements", 40, intro, sections.join("\n\n"));
return page(
"Achievements",
40,
"The full catalogue of achievements you can unlock in VS Code, with their tiers, requirements and the values needed for each tier.",
intro,
sections.join("\n\n"),
);
}

function main(): void {
Expand Down
Loading