open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
29 stars 18 forks source link

stale URL in README #821

Closed ccwienk closed 3 weeks ago

ccwienk commented 3 weeks ago

Bug Description

README file in root-level of https://github.com/open-component-model/ocm contains reference to https://ocm.software/spec/ - which is a stale reference.

Suggestion to prevent future regressions

Use framework with explicit handling of cross-references to detect such stale links (e.g. https://www.sphinx-doc.org/en/master/) and establish build pipeline as part of deployment. Generate README from build, validate all cross-references.

morri-son commented 3 weeks ago

@ccwienk bug fixed with https://github.com/open-component-model/ocm/pull/822.

As it is currently not planned to change the way we create documentation inside of the code repositories, we won't introduce a framework for documentation generation based on source texts, but keep creating markdown files directly.

But your proposal to prevent broken links in the future is very valid. Therefore I created issue https://github.com/open-component-model/ocm-project/issues/214 to add a GitHub action that checks for dead links. All developers are also called to use existing check tools for markdown files inside their IDE and I will stress on that again in one of our next calls.

ccwienk commented 1 week ago

There are again stale URLs in README:

As stated before, I strongly suggest to convert all involved documents to a tool capable of validating cross-references (ideally also external ones), such as sphinx, to avoid future regressions.

morri-son commented 1 week ago

created https://github.com/open-component-model/ocm/pull/837 to get this fixed.