The docs have no domain of their own: put the site address in one place
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
- Domain
- documentation, testing
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
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.txtonly at the root of the host (https://nexypy.github.io/robots.txt), which a project page does not own (see the note insites/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
sites/shared/seo.pyalready hasDEFAULT_SITE_URL: keep it as the one place the address is defined.- Add
tests/unit/repo/test_site_url.py: it lists every tracked file that contains the address, outsidedocs/<code>/, and fails when a new one appears. Moving to a domain becomes onesedplus that test. - In
sites/README.md, add a short "Moving to a custom domain" section: set the domain in Settings > Pages, run thesed, 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.mdsays 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NexyPy/nexy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:cli difficulty:intermediate enhancement
Difficulty 2/5 Half a day Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area:cli area:docs question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner documentation good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days