Landing-page JSON-LD description reads "the The free and open source…"

Open Beginner friendly
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

Read src/conf.py around L436 where the JSON-LD description is assembled, then check description_short around L85 to confirm it already begins with "The ". Change the template so the article is not doubled, rebuild the docs, and verify with the curl/grep from the issue that the description reads correctly. Done means the landing page's WebSite JSON-LD has a single "the" and no other output changed.

Written by the indexing model from the issue text.

Description

Since #222, the docs landing page's WebSite JSON-LD has a doubled article:

curl -s https://docs.activitywatch.net/en/latest/ | grep -o '"description": "[^"]*'
# "description": "Documentation for ActivityWatch, the The free and open source automated time-tracker."

Cause: src/conf.py (~L436) builds f"Documentation for {project}, the {description_short}.", and description_short (~L85) already starts with "The ".

Fix: drop the literal "the", or lowercase-strip the leading "The " from description_short. One line, no behaviour change otherwise.

Dominant language
Python
Stars
31
Forks
86
Avg merge
9d 20h
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/docs

All issues in ActivityWatch/docs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.