The docs have no domain of their own: put the site address in one place

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Read the Quick start in CONTRIBUTING.md and the similar test in tests/unit/repo/test_client_test_install.py. Then check sites/shared/seo.py for DEFAULT_SITE_URL and follow the listed tracked files when adding tests/unit/repo/test_site_url.py. Done when the test names every tracked file containing the address outside docs/<code>/ and sites/README.md explains the three steps for moving to a custom domain.

Written by the indexing model from the issue text.

Description

area:docs difficulty:beginner good first issue priority:3

What happens

The docs live at https://nexypy.github.io/nexy/, a project page under GitHub's domain. Nexy has no domain of its own, and that costs it twice:

  • Search engines ignore our robots.txt. A crawler reads robots.txt only at the root of the host (https://nexypy.github.io/robots.txt), which a project page does not own (see the note in sites/README.md). The sitemap the site builds is never found on its own.
  • Moving to a domain is a 12-file change. The address is written by hand 48 times outside docs/<code>/:
File Times
README.md 32
sites/README.md 3
COM/README.md, pyproject.toml, scripts/make_com_media.py 2 each
.github/ISSUE_TEMPLATE/03_documentation.yml, .github/ISSUE_TEMPLATE/config.yml, CONTRIBUTING.md, sites/shared/seo.py, sites/vanilla/build.py, one blog and one post under COM/ 1 each

Buying the domain is the maintainer's job. Making the move a one-line change is a good first contribution.

Proposal

  1. sites/shared/seo.py already has DEFAULT_SITE_URL: keep it as the one place the address is defined.
  2. Add tests/unit/repo/test_site_url.py: it lists every tracked file that contains the address, outside docs/<code>/, and fails when a new one appears. Moving to a domain becomes one sed plus that test.
  3. In sites/README.md, add a short "Moving to a custom domain" section: set the domain in Settings > Pages, run the sed, run the test.

README.md keeps absolute links: PyPI renders it, and relative links break there.

Done when

  • One test names every file that holds the site address.
  • sites/README.md says how to move the site to a domain in three steps.

Getting started

Read CONTRIBUTING.md (Quick start), then tests/unit/repo/test_client_test_install.py for a test of the same shape. Comment here before you start, so two people do not take it.

Dominant language
Python
Stars
11
Forks
6
Avg merge
2h 14m
Merged PRs (30d)
265

Getting set up

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 NexyPy/nexy

All issues in NexyPy/nexy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.