Check for broken links
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- documentation
Direzione di ricerca
Inizia eseguendo sphinx-build -b linkcheck src _build/ | grep broken e ispeziona i link segnalati nella guida utente. Confronta la configurazione di linkcheck di Sphinx con l’esempio di conf.py di Cylc indicato, quindi determina se i link non funzionanti possono essere corretti e se il controllo dei link dovrebbe essere aggiunto a CI.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
@Fienne found a broken link in the user guide. That reminded me of two tools that can be used for finding issues like this. The second can also be used to prevent, by hooking it up in our CI system.
- W3 checklink: https://validator.w3.org/checklink
It checks anchors, internal, and external links. You need to provide the parameters that can be saved in a cookie locally. It takes a few seconds/minutes, but gives you a pretty detailed report to go through and fix any broken links.
- Sphinx linkcheck
Not sure if it can be configured to inspect external links. It checks anchors and internal links. Comes with Sphinx. It is a builder like the html builder. Here's an example run, grep'ing for the token "broken":
$ sphinx-build -b linkcheck src _build/ | grep broken
(introduction/prerequisites: line 58) broken https://github.com/common-workflow-language/cwltool#install - Anchor 'install' not found
(topics/specifying-software-requirements: line 25) broken https://github.com/common-workflow-language/cwltool#leveraging-softwarerequirements-beta - Anchor 'leveraging-softwarerequirements-beta' not found
(topics/file-formats: line 45) broken https://github.com/common-workflow-language/user_guide/raw/main/_includes/cwl/file-formats/file-formats.bam - 404 Client Error: Not Found for url: https://github.com/common-workflow-language/user_guide/raw/main/_includes/cwl/file-formats/file-formats.bam
(introduction/prerequisites: line 173) broken https://github.com/rabix/benten#install-vs-code-extension - Anchor 'install-vs-code-extension' not found
(topics/custom-types: line 24) broken https://raw.githubusercontent.com/common-workflow-language/user_guide/main/_includes/cwl/custom-types/rich_sparse_otu_table.biom - 404 Client Error: Not Found for url: https://raw.githubusercontent.com/common-workflow-language/user_guide/main/_includes/cwl/custom-types/rich_sparse_otu_table.biom
(introduction/prerequisites: line 176) broken https://www.commonwl.org/#Editors_and_viewers - Anchor 'Editors_and_viewers' not found
I did not check if the links are indeed broken. But we used it in the Cylc project (I believe they still use it, and for external links? → https://github.com/cylc/cylc-doc/blob/5a5aaa111c6756fdf7c4ab9b2f8ec6cabd37ae6e/src/conf.py#L136-L140).
@swzCuroverse maybe a good one for Outreachy? A little harder to work on this as it requires some researching into how Sphinx works (although it should be nerdily fun! 🤓 ).
-Bruno
- Lingua principale
- Common Workflow Language
- Stelle
- 42
- Fork
- 65
- Merge medio
- 9h 13m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di common-workflow-language/user_guide
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 64/100
common-workflow-language/user_guide#397 · 1 commento · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
common-workflow-language/user_guide#485 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Docker and Windows WSLAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
common-workflow-language/user_guide#481 · 1 commento ·
-
Difficoltà 2/5 1-2 giorni Idoneità per principianti 42/100
common-workflow-language/user_guide#469 · 1 commento · 1 reazione ·
Tutte le issue di common-workflow-language/user_guide
Issue simili
-
documentation good first issue hacktoberfest
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
level/task
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
wazuh/wazuh-dashboard-plugins#9452 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 1/5 1-3 ore Idoneità per principianti 77/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Package proposal: EDIAperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
cran-task-views/Agriculture#146 ·